//
// sub_1800D7300 from 0x1800d7300 to 0x1800d742e (302 bytes)
//
// 2 xrefs:
// > sub_1800D3E80 @ 0x1800d3f98
// > ??> @ 0x1801ba9c8
//
// 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
//
BOOL __fastcall sub_1800D7300(__int64 a1, LONG a2, LONG a3)
{
int v4; // eax
__int64 v5; // rcx
DWORD v6; // esi
unsigned int v7; // ebx
int v8; // eax
DWORD v9; // ebx
struct tagRECT Rect; // [rsp+40h] [rbp-38h] BYREF
Rect.left = a2;
Rect.top = a3;
Rect.right = a2;
Rect.bottom = a3;
v4 = sub_1800D9CB0(14393);
v5 = *(_QWORD *)(a1 + 72);
v6 = 0x40000;
if ( v4 )
{
if ( v5 || *(_DWORD *)(a1 + 20) )
v6 = 262152;
if ( v5 )
{
v7 = -2046820352;
}
else if ( *(_DWORD *)(a1 + 12) )
{
v7 = 114229248;
if ( !*(_DWORD *)(a1 + 8) )
v7 = 113901568;
}
else
{
v7 = -2046164992;
}
v8 = qword_1801AC060(*(_QWORD *)(a1 + 880));
qword_1801AC068(&Rect, v7, 0, v6, v8);
}
else
{
if ( v5 || *(_DWORD *)(a1 + 20) )
v6 = 262152;
if ( v5 )
{
v9 = -2046820352;
}
else if ( *(_DWORD *)(a1 + 12) )
{
v9 = 114229248;
if ( !*(_DWORD *)(a1 + 8) )
v9 = 113901568;
}
else
{
v9 = -2046164992;
}
AdjustWindowRectEx(&Rect, v9, 0, v6);
}
return SetWindowPos(*(HWND *)(a1 + 880), nullptr, Rect.left, Rect.top, 0, 0, 0x15u);
}