// // sub_1800D81A0 from 0x1800d81a0 to 0x1800d82ea (330 bytes) // // 3 xrefs: // > sub_1800D76D0 @ 0x1800d76e7 // > sub_1800D8740 @ 0x1800d8a70 // > @ 0x1801baa88 // // 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 // unsigned __int64 __fastcall sub_1800D81A0(__int64 a1) { unsigned int v1; // ebx HWND v3; // rcx int v4; // esi HMONITOR v5; // rax unsigned int v6; // ebp int v7; // eax int v8; // ecx float v9; // xmm0_4 int v10; // eax float v11; // xmm2_4 int v12; // ecx float v13; // xmm2_4 float v14; // xmm4_4 float v15; // xmm3_4 float v16; // xmm0_4 struct tagMONITORINFO mi; // [rsp+20h] [rbp-38h] BYREF mi.cbSize = 40; v1 = 0; v3 = *(HWND *)(a1 + 880); v4 = 0; memset(&mi.rcMonitor, 0, 36); v5 = MonitorFromWindow(v3, 2u); v6 = 0; if ( !GetMonitorInfoW(v5, &mi) ) return v1 | ((unsigned __int64)v6 << 32); v7 = *(_DWORD *)(a1 + 712); if ( v7 ) { v8 = *(_DWORD *)(a1 + 716); if ( v8 ) { v9 = (float)v7; v10 = *(_DWORD *)(a1 + 724); v11 = (float)v8; v12 = *(_DWORD *)(a1 + 728); v13 = v11 / v9; v14 = (float)((float)mi.rcMonitor.right - (float)mi.rcMonitor.left) - (float)v10; v15 = (float)((float)mi.rcMonitor.bottom - (float)mi.rcMonitor.top) - (float)v12; v16 = v14 * v13; if ( v14 < (float)(v15 / v13) ) { if ( v15 >= v16 ) { v1 = (int)v14; v4 = (int)v16; } } else { v1 = (int)(float)(v15 / v13); v4 = (int)v15; } v6 = v4 + v12; v1 += v10; return v1 | ((unsigned __int64)v6 << 32); } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source