// // GameManager::finishedLoadingIconAsync from 0x10036ae60 to 0x10036b212 (946 bytes) // // 1 xrefs: // > GameManager::loadIconAsync @ 0x10036a70e // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:29:00 +0000 // void __fastcall GameManager::finishedLoadingIconAsync(__int64 a1, __int64 a2, double a3) { int v3; // r14d _DWORD *v4; // rax unsigned int v5; // ecx unsigned int v6; // r15d __int64 v7; // rdx __int64 v8; // rax _QWORD *v9; // rbx __int64 *v10; // r13 int v11; // eax __int64 *v12; // r15 __int64 v13; // rax __int64 *v14; // r15 __int64 *v15; // r12 __int64 v16; // rax __int64 *v17; // rbx __int64 *v18; // r12 int v19; // eax char *v20; // r13 __int64 v21; // rax __int64 v22; // rax __int64 *v23; // rbx int v24; // eax char *v25; // r13 __int64 v26; // rax char *v27; // r13 __int64 v28; // rdx int v29; // eax char *v30; // rbx __int64 v31; // rax __int64 v32; // rsi unsigned __int64 i; // [rsp-48h] [rbp-48h] unsigned int v34; // [rsp-38h] [rbp-38h] unsigned int v35; // [rsp-34h] [rbp-34h] if ( a2 ) { v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v4 = *(_DWORD **)(a1 + 1232); v5 = 0; if ( v4[1] > v3 ) goto LABEL_10; v5 = 1; if ( v4[2] > v3 ) goto LABEL_10; v5 = 2; if ( v4[3] > v3 || (v5 = 3, v4[4] > v3) || (v5 = 4, v4[5] > v3) || (v5 = 5, v4[6] > v3) || (v5 = 6, v4[7] > v3) || (v6 = 0, v5 = 7, v7 = 0, v4[8] > v3) ) { LABEL_10: v6 = v3 - v4[v5] + 1; v7 = v5; } v34 = v7; GameManager::loadIcon(a1, v6, v7, 0xFFFFFFFFLL, a3); v8 = *(_QWORD *)(a1 + 1216); v35 = v6; if ( v8 ) { while ( 1 ) { while ( 1 ) { v10 = (__int64 *)v8; v11 = *(_DWORD *)(v8 + 28); if ( v3 >= v11 ) break; v8 = *v10; v9 = v10; if ( !*v10 ) goto LABEL_18; } if ( v3 <= v11 ) break; v8 = v10[1]; if ( !v8 ) { v9 = v10 + 1; goto LABEL_18; } } } else { v9 = (_QWORD *)(a1 + 1216); v10 = (__int64 *)(a1 + 1216); LABEL_18: v12 = v10; v10 = (__int64 *)operator new(0x28u); *((_DWORD *)v10 + 7) = v3; *((_BYTE *)v10 + 32) = 0; *(_OWORD *)v10 = 0; v10[2] = (__int64)v12; *v9 = v10; v13 = **(_QWORD **)(a1 + 1208); if ( v13 ) *(_QWORD *)(a1 + 1208) = v13; sub_10001B680(*(__int64 **)(a1 + 1216), v10); ++*(_QWORD *)(a1 + 1224); } *((_BYTE *)v10 + 32) = 0; v14 = (__int64 *)(a1 + 1264); for ( i = 0; ; ++i ) { v16 = *v14; v17 = (__int64 *)(a1 + 1264); v18 = (__int64 *)(a1 + 1264); LABEL_26: if ( v16 ) { do { v18 = (__int64 *)v16; v19 = *(_DWORD *)(v16 + 32); if ( v3 < v19 ) { v16 = *v18; v17 = v18; goto LABEL_26; } if ( v3 <= v19 ) goto LABEL_34; v16 = v18[1]; } while ( v16 ); v17 = v18 + 1; } v20 = (char *)operator new(0x40u); *((_DWORD *)v20 + 8) = v3; *(_OWORD *)(v20 + 40) = 0; *((_QWORD *)v20 + 7) = 0; *(_OWORD *)v20 = 0; *((_QWORD *)v20 + 2) = v18; *v17 = (__int64)v20; v21 = **(_QWORD **)(a1 + 1256); if ( v21 ) *(_QWORD *)(a1 + 1256) = v21; sub_10001B680(*(__int64 **)(a1 + 1264), (__int64 *)v20); ++*(_QWORD *)(a1 + 1272); v18 = (__int64 *)v20; LABEL_34: v22 = *v14; if ( (v18[6] - v18[5]) >> 3 <= i ) break; v23 = (__int64 *)(a1 + 1264); v15 = (__int64 *)(a1 + 1264); LABEL_37: if ( v22 ) { do { v15 = (__int64 *)v22; v24 = *(_DWORD *)(v22 + 32); if ( v3 < v24 ) { v22 = *v15; v23 = v15; goto LABEL_37; } if ( v3 <= v24 ) goto LABEL_23; v22 = v15[1]; } while ( v22 ); v23 = v15 + 1; } v25 = (char *)operator new(0x40u); *((_DWORD *)v25 + 8) = v3; *(_OWORD *)(v25 + 40) = 0; *((_QWORD *)v25 + 7) = 0; *(_OWORD *)v25 = 0; *((_QWORD *)v25 + 2) = v15; *v23 = (__int64)v25; v26 = **(_QWORD **)(a1 + 1256); if ( v26 ) *(_QWORD *)(a1 + 1256) = v26; sub_10001B680(*(__int64 **)(a1 + 1264), (__int64 *)v25); ++*(_QWORD *)(a1 + 1272); v15 = (__int64 *)v25; LABEL_23: SimplePlayer::iconFinishedLoading(*(_BYTE **)(v15[5] + 8 * i), v35, v34); } v27 = (char *)(a1 + 1264); v28 = v34; if ( v22 ) { while ( 1 ) { while ( 1 ) { v27 = (char *)v22; v29 = *(_DWORD *)(v22 + 32); if ( v3 >= v29 ) break; v22 = *(_QWORD *)v27; v14 = (__int64 *)v27; if ( !*(_QWORD *)v27 ) goto LABEL_51; } if ( v3 <= v29 ) break; v22 = *((_QWORD *)v27 + 1); if ( !v22 ) { v14 = (__int64 *)(v27 + 8); goto LABEL_51; } } v32 = v35; } else { LABEL_51: v30 = v27; v27 = (char *)operator new(0x40u); *((_DWORD *)v27 + 8) = v3; *(_OWORD *)(v27 + 40) = 0; *((_QWORD *)v27 + 7) = 0; *(_OWORD *)v27 = 0; *((_QWORD *)v27 + 2) = v30; *v14 = (__int64)v27; v31 = **(_QWORD **)(a1 + 1256); if ( v31 ) *(_QWORD *)(a1 + 1256) = v31; sub_10001B680(*(__int64 **)(a1 + 1264), (__int64 *)v27); ++*(_QWORD *)(a1 + 1272); v32 = v35; v28 = v34; } *((_QWORD *)v27 + 6) = *((_QWORD *)v27 + 5); GameManager::unloadIcon(a1, v32, v28, 0xFFFFFFFFLL); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source