// // sub_1800DB550 from 0x1800db550 to 0x1800db6e4 (404 bytes) // // 4 xrefs: // > sub_1800D7750 @ 0x1800d77c2 // > @ 0x180143118 // > @ 0x180143128 // > @ 0x1801bac8c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_1800DB550(__int64 a1, int *a2) { DWORD *v3; // rdi int result; // eax DWORD v5; // edx const char *v6; // r8 int v7[8]; // [rsp+30h] [rbp-118h] BYREF DEVMODEW DevMode; // [rsp+50h] [rbp-F8h] BYREF v3 = sub_1800D3B90(a1, a2); sub_1800DAD10(a1, v7); result = sub_1800D3DC0(v7, v3); if ( result ) { memset(&DevMode, 0, sizeof(DevMode)); DevMode.dmSize = 220; DevMode.dmFields = 6029312; DevMode.dmPelsWidth = *v3; DevMode.dmPelsHeight = v3[1]; v5 = v3[2] + v3[3] + v3[4]; DevMode.dmBitsPerPel = v5; DevMode.dmDisplayFrequency = v3[5]; if ( v5 - 15 > 8 ) v5 = 32; DevMode.dmBitsPerPel = v5; result = ChangeDisplaySettingsExW((LPCWSTR)(a1 + 264), &DevMode, nullptr, 4u, nullptr); if ( result ) { switch ( result ) { case -6: v6 = "The system uses DualView"; break; case -4: v6 = "Invalid flags"; break; case -2: v6 = "Graphics mode not supported"; break; case -5: v6 = "Invalid parameter"; break; case -1: v6 = "Graphics mode failed"; break; case -3: v6 = "Failed to write to registry"; break; default: v6 = "Computer restart required"; if ( result != 1 ) v6 = "Unknown error"; break; } return (unsigned int)sub_1800D3530(0x10008u, "Win32: Failed to set video mode: %s", v6); } else { *(_DWORD *)(a1 + 460) = 1; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source