// // sub_100534E44 from 0x100534e44 to 0x100534fd8 (404 bytes) // // 3 xrefs: // > sub_100526FF8 @ 0x100527398 // > sub_100527B50 @ 0x100527f18 // > sub_100534C30 @ 0x100534c8c // // 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_100534E44(_QWORD *a1, __int64 a2, unsigned __int64 a3, int a4) { char *v8; // x0 char *v9; // x21 unsigned __int64 i; // x8 int v11; // w11 int *v12; // x10 int v13; // w11 __int64 v14; // x12 int v15; // w10 __int64 v16; // x12 int v17; // w10 char *v19; // x12 void *v20; // x0 void *v22; // x0 if ( (a3 & 1) != 0 ) return 0; v8 = (char *)sub_100588710(a3, "t1_lib.c", 4057); v9 = v8; if ( !v8 ) return 0; if ( a3 ) { for ( i = 0; i < a3; i += 2LL ) { v12 = (int *)(a2 + 4 * i); v13 = *v12; if ( dword_10085B91C == *v12 ) { v14 = 0; } else { v14 = 1; if ( dword_10085B924 != v13 ) { v14 = 2; if ( dword_10085B92C != v13 ) { v14 = 3; if ( dword_10085B934 != v13 ) { v14 = 4; if ( dword_10085B93C != v13 ) { v14 = 5; if ( dword_10085B944 != v13 ) { v11 = -1; goto LABEL_14; } } } } } } v11 = *((_DWORD *)&unk_10085B8E0 + 2 * v14 + 16); LABEL_14: v15 = v12[1]; if ( dword_10085B8E4 == v15 ) { v16 = 0; } else { v16 = 1; if ( dword_10085B8EC != v15 ) { v16 = 2; if ( dword_10085B8F4 != v15 ) goto LABEL_27; } } v17 = *((_DWORD *)&unk_10085B8E0 + 2 * v16 + 2); if ( v11 == -1 || v17 == -1 ) { LABEL_27: sub_100588C44(v8); return 0; } v19 = &v8[i]; *v19 = v11; v19[1] = v17; } } if ( a4 ) { v20 = (void *)a1[76]; if ( v20 ) sub_100588C44(v20); a1[76] = v9; a1[77] = a3; return 1; } else { v22 = (void *)a1[74]; if ( v22 ) sub_100588C44(v22); a1[74] = v9; a1[75] = a3; return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source