// // sub_981B70 from 0x981b70 to 0x981c52 (226 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_981B70(int a1, int a2, int a3, int a4, int a5) { int v8; // r0 const char *v10; // r5 int result; // r0 bool v12; // zf int v13; // r5 int v14; // r0 bool v15; // zf v8 = *(_DWORD *)(a2 + 8); if ( a5 == 1 ) { v10 = *(const char **)(a1 + 4); if ( strcmp(v10, *(const char **)(v8 + 4)) ) { if ( !strcmp(v10, *(const char **)(*(_DWORD *)a2 + 4)) ) goto LABEL_12; return (*(int (__fastcall **)(_DWORD, int, int, int, int))(**(_DWORD **)(a1 + 8) + 24))( *(_DWORD *)(a1 + 8), a2, a3, a4, a5); } LABEL_8: result = *(_DWORD *)(a2 + 4); if ( result == a3 ) { result = *(_DWORD *)(a2 + 28); if ( result != 1 ) *(_DWORD *)(a2 + 28) = a4; } return result; } if ( a1 == v8 ) goto LABEL_8; if ( a1 != *(_DWORD *)a2 ) return (*(int (__fastcall **)(_DWORD, int, int, int, int))(**(_DWORD **)(a1 + 8) + 24))( *(_DWORD *)(a1 + 8), a2, a3, a4, a5); LABEL_12: result = *(_DWORD *)(a2 + 16); v12 = result == a3; if ( result != a3 ) { result = *(_DWORD *)(a2 + 20); v12 = result == a3; } if ( !v12 ) { *(_DWORD *)(a2 + 32) = a4; result = *(_DWORD *)(a2 + 44); if ( result == 4 ) return result; v13 = 0; *(_WORD *)(a2 + 52) = 0; (*(void (__fastcall **)(_DWORD, int, int, int, int, int))(**(_DWORD **)(a1 + 8) + 20))( *(_DWORD *)(a1 + 8), a2, a3, a3, 1, a5); if ( *(_BYTE *)(a2 + 53) ) { if ( *(_BYTE *)(a2 + 52) ) goto LABEL_29; v13 = 1; } *(_DWORD *)(a2 + 20) = a3; ++*(_DWORD *)(a2 + 40); v14 = *(_DWORD *)(a2 + 36); v15 = v14 == 1; if ( v14 == 1 ) v15 = *(_DWORD *)(a2 + 24) == 2; if ( v15 ) { *(_BYTE *)(a2 + 54) = 1; if ( !v13 ) { LABEL_30: result = 4; goto LABEL_31; } } else if ( v13 != 1 ) { goto LABEL_30; } LABEL_29: result = 3; LABEL_31: *(_DWORD *)(a2 + 44) = result; return result; } if ( a4 == 1 ) { result = 1; *(_DWORD *)(a2 + 32) = 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source