//
// sub_180044D30 from 0x180044d30 to 0x180044e09 (217 bytes)
//
// 2 xrefs:
// > sub_180043FB0 @ 0x18004408e
// > ??> @ 0x1801f81cc
//
// 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 10:53:12 +0000
//
__int64 __fastcall sub_180044D30(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v6; // rdx
unsigned int (__fastcall *v8)(__int64, _QWORD); // rax
__int64 v10; // rax
int v11; // eax
__int64 v12; // rdx
unsigned int (__fastcall *v13)(__int64, _QWORD); // rax
v6 = *(_QWORD *)(a4 + 8);
v8 = *(unsigned int (__fastcall **)(__int64, _QWORD))(v6 + 32);
if ( v8 && v8(a4, *(_QWORD *)(v6 + 104)) )
{
*a3 = 0;
LABEL_4:
**(_DWORD **)a4 = 4;
return 0;
}
if ( !*a3
|| (v10 = *(_QWORD *)(a4 + 8), *(_DWORD *)(v10 + 4112)) && *(_DWORD *)(v10 + 6864) > 0x14u
|| (v11 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD *, _QWORD))v10)(a4, a2, a3, *(_QWORD *)(v10 + 104)),
v11 == 2) )
{
**(_DWORD **)a4 = 7;
return 0;
}
else
{
if ( !*a3 )
{
if ( v11 == 1 )
goto LABEL_4;
v12 = *(_QWORD *)(a4 + 8);
v13 = *(unsigned int (__fastcall **)(__int64, _QWORD))(v12 + 32);
if ( v13 )
{
if ( v13(a4, *(_QWORD *)(v12 + 104)) )
goto LABEL_4;
}
}
return 1;
}
}