//
// sub_1005B47B0 from 0x1005b47b0 to 0x1005b485c (172 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::init @ 0x1005b44da
//
// 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:32:40 +0000
//
__int64 __fastcall sub_1005B47B0(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rsi
__int64 v4; // rdi
unsigned int v5; // eax
__int64 v6; // rdi
__int64 v7; // rdi
v2 = *(unsigned int *)(a1 + 1048);
if ( (_DWORD)v2 )
{
v4 = *(_QWORD *)(a1 + 1024);
if ( v4 )
{
if ( !*(_BYTE *)(a1 + 1056) )
{
if ( !*(_BYTE *)(a1 + 1052) )
{
v5 = *(_DWORD *)(a1 + 1044);
if ( v5 != 0 && v5 != (_DWORD)v2 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v4 + 40LL))(
v4,
v5,
*(unsigned int *)(a1 + 1040));
v4 = *(_QWORD *)(a1 + 1024);
v2 = *(unsigned int *)(a1 + 1048);
}
}
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v4 + 32LL))(v4, v2, *(unsigned int *)(a1 + 1040));
v6 = *(_QWORD *)(a1 + 1064);
if ( v6 )
sub_10097D2E0(v6);
v7 = *(_QWORD *)(a1 + 1032);
if ( v7 )
sub_100495650(v7);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
}
}
}
return result;
}