// // sub_981C52 from 0x981c52 to 0x981ce4 (146 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:06:08 +0000 // int __fastcall sub_981C52(int result, int a2, int a3, int a4, int a5) { int v7; // r1 const char *v9; // r5 bool v10; // zf v7 = *(_DWORD *)(a2 + 8); if ( a5 == 1 ) { v9 = *(const char **)(result + 4); if ( strcmp(v9, *(const char **)(v7 + 4)) ) { result = strcmp(v9, *(const char **)(*(_DWORD *)a2 + 4)); if ( result ) return result; LABEL_7: result = *(_DWORD *)(a2 + 16); v10 = result == a3; if ( result != a3 ) { result = *(_DWORD *)(a2 + 20); v10 = result == a3; } if ( v10 ) { if ( a4 == 1 ) { result = 1; *(_DWORD *)(a2 + 32) = 1; } } else { *(_DWORD *)(a2 + 32) = a4; *(_DWORD *)(a2 + 20) = a3; ++*(_DWORD *)(a2 + 40); if ( *(_DWORD *)(a2 + 36) == 1 && *(_DWORD *)(a2 + 24) == 2 ) *(_BYTE *)(a2 + 54) = 1; *(_DWORD *)(a2 + 44) = 4; return 4; } return result; } } else if ( result != v7 ) { if ( result != *(_DWORD *)a2 ) return result; goto LABEL_7; } result = *(_DWORD *)(a2 + 4); if ( result == a3 ) { result = *(_DWORD *)(a2 + 28); if ( result != 1 ) *(_DWORD *)(a2 + 28) = a4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source