// // sub_18007C130 from 0x18007c130 to 0x18007c2a6 (374 bytes) // // 3 xrefs: // > @ 0x1801ac290 // > @ 0x1801ae0c0 // > @ 0x1801f9ec4 // // 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 // __int64 __fastcall sub_18007C130(__int64 **a1, unsigned int a2, __int64 a3, __int64 a4, int a5, int a6) { __int64 *v7; // rbx __int64 v10; // rax unsigned int v11; // edi int v12; // eax __int64 v13; // rax __int64 v14; // rax int v15; // ecx __int64 v17; // rdx int v18; // [rsp+50h] [rbp+8h] BYREF v7 = *a1; if ( a6 == 1 ) { if ( !*((_BYTE *)v7 + 49) || a2 ) { v11 = 0; if ( a3 && a4 ) { if ( v7[84] ) { **(_DWORD **)(a4 + 8) = *((unsigned __int16 *)v7 + 140); v12 = sub_18007C870(*((unsigned __int16 *)v7 + 140)); if ( v12 != 1 ) *(_DWORD *)(a4 + 32) = v12; } else { sub_180097620(*(_QWORD *)(v7[85] + 96), &a6, 0, 0); v13 = v7[85]; if ( !v13 ) return 6; v14 = *(_QWORD *)(v13 + 96); if ( !*(_QWORD *)(v14 + 296) || a6 ) return 6; *(_QWORD *)(v14 + 176) = v14; v11 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int, int))(*(_QWORD *)(v7[85] + 96) + 296LL))( *(_QWORD *)(v7[85] + 96) + 176LL, a2, a3, a4, a5, 1); if ( *((_WORD *)v7 + 140) ) v15 = *((unsigned __int16 *)v7 + 140); else v15 = *(_DWORD *)(v7[21] + 1748); if ( **(_DWORD **)(a4 + 8) != v15 ) return 6; } } } else { v10 = *v7; *((_BYTE *)v7 + 49) = 0; (*(void (__fastcall **)(__int64 *, __int64, _QWORD))(v10 + 40))(v7, 1, 0); return a2 + 9; } } else { v17 = **(_QWORD **)(a4 + 24); v18 = **(_DWORD **)(a4 + 8); return (unsigned int)sub_18007C8F0(v7, v17, &v18, a2); } return v11; }