// // sub_18004C5B0 from 0x18004c5b0 to 0x18004c777 (455 bytes) // // 8 xrefs: // > sub_18004C7C0 @ 0x18004c9df // > sub_18004CB30 @ 0x18004ce98 // > sub_180050A30 @ 0x180050ab2 // > sub_180052A90 @ 0x180052c23 // > sub_180052E90 @ 0x180053157 // > @ 0x180181684 // > @ 0x1801816c0 // > @ 0x1801f8670 // // 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:15 +0000 // __int64 __fastcall sub_18004C5B0(__int64 a1, __int64 a2) { __int64 v2; // rbx int v5; // edi int v6; // esi __int64 *v7; // r14 int v8; // r14d int *v9; // r15 _QWORD *v10; // rsi int v11; // r14d int *v12; // r15 _QWORD *v13; // rsi int v14; // r14d int *v15; // r15 _QWORD *v16; // rsi _QWORD *v17; // rsi __int64 v18; // rdx __int64 v19; // rdx v2 = *(_QWORD *)(a2 + 32); if ( v2 ) { v5 = 0; v6 = 0; if ( *(int *)(v2 + 8) > 0 ) { v7 = (__int64 *)(v2 + 32); do { if ( *v7 ) sub_180033C90(a1, *v7); ++v6; ++v7; } while ( v6 < *(_DWORD *)(v2 + 8) ); } v8 = 0; if ( *(int *)(v2 + 12) > 0 ) { v9 = (int *)(v2 + 544); v10 = (_QWORD *)(v2 + 800); do { if ( *v10 ) (*((void (__fastcall **)(__int64))*(&off_180166E38 + *v9) + 2))(a1); ++v8; ++v10; ++v9; } while ( v8 < *(_DWORD *)(v2 + 12) ); } v11 = 0; if ( *(int *)(v2 + 16) > 0 ) { v12 = (int *)(v2 + 1312); v13 = (_QWORD *)(v2 + 1568); do { if ( *v13 ) (*(void (__fastcall **)(__int64))(qword_180166E10[*v12] + 24))(a1); ++v11; ++v13; ++v12; } while ( v11 < *(_DWORD *)(v2 + 16) ); } v14 = 0; if ( *(int *)(v2 + 20) > 0 ) { v15 = (int *)(v2 + 2080); v16 = (_QWORD *)(v2 + 2336); do { if ( *v16 ) (*((void (__fastcall **)(__int64))*(&off_180166E20 + *v15) + 3))(a1); ++v14; ++v16; ++v15; } while ( v14 < *(_DWORD *)(v2 + 20) ); } if ( *(int *)(v2 + 24) > 0 ) { v17 = (_QWORD *)(v2 + 2848); do { if ( *v17 ) sub_180050090(a1, *v17); v18 = *(_QWORD *)(v2 + 4896); if ( v18 ) sub_18004F890(a1, v18 + 72LL * v5); ++v5; ++v17; } while ( v5 < *(_DWORD *)(v2 + 24) ); } v19 = *(_QWORD *)(v2 + 4896); if ( v19 ) sub_180033C90(a1, v19); sub_180033C90(a1, v2); } *(_OWORD *)a2 = 0; *(_OWORD *)(a2 + 16) = 0; *(_QWORD *)(a2 + 32) = 0; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source