// // sub_1800D8180 from 0x1800d8180 to 0x1800d8337 (439 bytes) // // 7 xrefs: // > sub_1800DBBB0 @ 0x1800dbcb7 // > @ 0x18014c0ac // > @ 0x18014c0c8 // > @ 0x18014c0e0 // > @ 0x18014c0f4 // > @ 0x18014c104 // > @ 0x1801c49c8 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:33 +0000 // int __fastcall sub_1800D8180(__int64 a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5) { LONG bottom; // r13d int v10; // eax __int64 v11; // rcx DWORD v12; // edi unsigned int v13; // ebx int v14; // eax int result; // eax DWORD v16; // ebx struct tagRECT rc; // [rsp+30h] [rbp-78h] BYREF struct tagRECT yBottom; // [rsp+40h] [rbp-68h] BYREF GetClientRect(*(HWND *)(a1 + 880), &yBottom); bottom = yBottom.bottom; SetRect(&rc, 0, 0, yBottom.right, yBottom.bottom); v10 = sub_1800E1C00(14393); v11 = *(_QWORD *)(a1 + 72); v12 = 0x40000; if ( v10 ) { if ( v11 || *(_DWORD *)(a1 + 20) ) v12 = 262152; if ( v11 ) { v13 = -2046820352; } else if ( *(_DWORD *)(a1 + 12) ) { v13 = 114229248; if ( !*(_DWORD *)(a1 + 8) ) v13 = 113901568; } else { v13 = -2046164992; } v14 = qword_1801B60E0(*(_QWORD *)(a1 + 880)); result = qword_1801B60E8(&rc, v13, 0, v12, v14); } else { if ( v11 || *(_DWORD *)(a1 + 20) ) v12 = 262152; if ( v11 ) { v16 = -2046820352; } else if ( *(_DWORD *)(a1 + 12) ) { v16 = 114229248; if ( !*(_DWORD *)(a1 + 8) ) v16 = 113901568; } else { v16 = -2046164992; } result = AdjustWindowRectEx(&rc, v16, 0, v12); } if ( a2 ) { result = -rc.left; *a2 = -rc.left; } if ( a3 ) { result = -rc.top; *a3 = -rc.top; } if ( a4 ) { result = rc.right - yBottom.right; *a4 = rc.right - yBottom.right; } if ( a5 ) { result = rc.bottom - bottom; *a5 = rc.bottom - bottom; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source