// // sub_9813BC from 0x9813bc to 0x98156c (432 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_9813BC(int a1, _UNKNOWN **lpsrc, _DWORD **a3) { _DWORD *v6; // r0 int v7; // r5 _DWORD *v8; // r0 _DWORD *v9; // r8 _UNKNOWN **v10; // r0 void *v11; // r0 const void *v12; // r0 const void *v13; // r0 void *v14; // r0 const void *v15; // r0 void *v16; // r6 const void *v17; // r0 void *v18; // r4 _DWORD v20[14]; // [sp+0h] [bp-48h] BYREF if ( lpsrc == &`typeinfo for'decltype(nullptr) ) { v6 = nullptr; goto LABEL_6; } if ( sub_981360((const char **)a1, (const char **)lpsrc) != 1 ) { if ( lpsrc ) { v7 = 0; v8 = _dynamic_cast( lpsrc, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__pointer_type_info, 0); v9 = v8; if ( !v8 ) return v7; if ( *a3 ) *a3 = (_DWORD *)**a3; if ( (v8[2] & ~*(_DWORD *)(a1 + 8)) == 0 ) { if ( *(_DWORD *)(a1 + 12) == v8[3] || sub_9815AC() ) return 1; v10 = *(_UNKNOWN ***)(a1 + 12); if ( v10 == &`typeinfo for'void ) { v12 = (const void *)v9[3]; if ( v12 ) return _dynamic_cast( v12, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__function_type_info, 0) == nullptr; return 1; } if ( v10 ) { v11 = _dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__pointer_type_info, 0); if ( v11 ) { if ( (*(_BYTE *)(a1 + 8) & 1) != 0 ) return sub_981638((int)v11, (void *)v9[3]); } else { v13 = *(const void **)(a1 + 12); if ( v13 ) { v14 = _dynamic_cast( v13, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__pointer_to_member_type_info, 0); if ( v14 ) { if ( (*(_BYTE *)(a1 + 8) & 1) != 0 ) return sub_9816F8((int)v14, (void *)v9[3]); } else { v15 = *(const void **)(a1 + 12); if ( v15 ) { v7 = 0; v16 = _dynamic_cast( v15, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__class_type_info, 0); if ( !v16 ) return v7; v17 = (const void *)v9[3]; if ( v17 ) { v7 = 0; v18 = _dynamic_cast( v17, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info, (const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__class_type_info, 0); if ( !v18 ) return v7; memset(&v20[1], 0, 0x34u); v20[0] = v18; v20[2] = v16; v20[3] = -1; v20[12] = 1; (*(void (__fastcall **)(void *, _DWORD *, _DWORD, int))(*(_DWORD *)v18 + 28))(v18, v20, *a3, 1); if ( v20[6] == 1 ) { if ( !*a3 ) return 1; v6 = (_DWORD *)v20[4]; goto LABEL_6; } } } } } } } } } return 0; } if ( *a3 ) { v6 = (_DWORD *)**a3; LABEL_6: *a3 = v6; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source