// // sub_100534780 from 0x100534780 to 0x1005348cc (332 bytes) // // 1 xrefs: // > sub_1005333C8 @ 0x1005336b4 // // 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 // __int64 __fastcall sub_100534780(__int64 result, unsigned __int64 a2, unsigned __int64 a3, unsigned __int8 *a4) { int v5; // w9 __int64 v6; // x10 __int64 v7; // x8 int v8; // w10 __int64 v9; // x11 int v10; // w2 if ( !result && !a2 && !a3 ) return result; if ( !(result | a3) ) { v7 = 0; goto LABEL_16; } v5 = *a4; if ( dword_10085B920 == v5 ) { v6 = 0; LABEL_13: v7 = *((unsigned int *)&unk_10085B8E0 + 2 * v6 + 15); goto LABEL_14; } v6 = 1; if ( dword_10085B928 == v5 ) goto LABEL_13; v6 = 2; if ( dword_10085B930 == v5 ) goto LABEL_13; v6 = 3; if ( dword_10085B938 == v5 ) goto LABEL_13; v6 = 4; if ( dword_10085B940 == v5 ) goto LABEL_13; v6 = 5; if ( dword_10085B948 == v5 ) goto LABEL_13; v7 = 0; LABEL_14: if ( result ) *(_DWORD *)result = v7; LABEL_16: if ( a2 | a3 ) { v8 = a4[1]; if ( dword_10085B8E8 == v8 ) { v9 = 0; } else { v9 = 1; if ( dword_10085B8F0 != v8 ) { v9 = 2; if ( dword_10085B8F8 != v8 ) { v10 = 0; LABEL_23: if ( a2 ) *(_DWORD *)a2 = v10; goto LABEL_25; } } } v10 = *((_DWORD *)&unk_10085B8E0 + 2 * v9 + 1); goto LABEL_23; } v10 = 0; LABEL_25: if ( a3 ) { if ( !(_DWORD)v7 || !v10 || (result = sub_10058C12C(a3, v7), (int)result <= 0) ) *(_DWORD *)a3 = 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source