// // sub_669138 from 0x669138 to 0x6691ec (180 bytes) // // 0 xrefs: // // 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 // int __fastcall sub_669138(_DWORD *a1, int a2) { _DWORD *v3; // r4 _DWORD *v4; // r2 int result; // r0 int v6; // r0 int v7; // r0 v3 = (_DWORD *)a1[101]; v3[2] = 0; v4 = (_DWORD *)a1[101]; if ( (int)a1[73] <= 1 ) { v6 = a1[74]; if ( v4[2] >= (unsigned int)(a1[72] - 1) ) v7 = *(_DWORD *)(v6 + 76); else v7 = *(_DWORD *)(v6 + 12); v4[5] = v7; result = 0; v4[3] = 0; v4[4] = 0; if ( a2 != 2 ) { LABEL_3: if ( a2 == 3 ) { if ( !v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_668C64; } else if ( a2 ) { *(_DWORD *)(*a1 + 20) = 3; return (*(int (__fastcall **)(_DWORD *))*a1)(a1); } else { if ( v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_668E20; } return result; } } else { v4[5] = 1; result = 0; v4[3] = 0; v4[4] = 0; if ( a2 != 2 ) goto LABEL_3; } if ( !v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_668A70; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source