//
// sub_100941460 from 0x100941460 to 0x1009414df (127 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bc4f10
//
// 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 12:38:31 +0000
//
char __fastcall sub_100941460(__int64 a1, __int64 a2, int a3, int a4)
{
void (__fastcall ***v4)(_QWORD); // rax
__int64 v5; // rbx
__int64 v7; // rax
if ( a4 != 1 )
return 0;
if ( a3 == 39 )
{
if ( !*(_QWORD *)(a2 + 552) )
goto LABEL_12;
v7 = *(_QWORD *)(a1 + 8);
if ( !v7 )
goto LABEL_12;
v5 = a1;
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 8LL))(*(_QWORD *)(a1 + 8));
goto LABEL_11;
}
if ( a3 != 37 )
return 0;
if ( !*(_QWORD *)(a2 + 560) )
goto LABEL_12;
v4 = *(void (__fastcall ****)(_QWORD))(a1 + 8);
if ( !v4 )
goto LABEL_12;
v5 = a1;
(**v4)(*(_QWORD *)(a1 + 8));
LABEL_11:
a1 = v5;
LABEL_12:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 784) + 1360LL))(a1 - 784, 0);
return 1;
}