// // GameManager::loadIconAsync from 0x10036a4e0 to 0x10036a752 (626 bytes) // // 1 xrefs: // > SimplePlayer::asyncLoadIcon @ 0x100359cdf // // 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::loadIconAsync(__int64 a1, __int64 a2, unsigned int a3, __int64 a4, __int64 a5) { char v7; // r13 __int64 v8; // rax __int64 v9; // r12 signed int v10; // r14d __int64 **v11; // rbx __int64 *v12; // rax __int64 **v13; // r12 __int64 **v14; // r13 int v15; // eax __int64 *v16; // rax __int64 v17; // rcx __int64 *v18; // r15 __int64 v19; // rax __int64 v20; // r12 __int64 *v21; // rax __int64 **v22; // r13 int v23; // eax _DWORD *v24; // r15 __int64 v25; // rax __int64 v26; // rax std::string::pointer data; // rsi std::string v28; // [rsp+10h] [rbp-60h] BYREF __int128 v29; // [rsp+28h] [rbp-48h] BYREF void *__p; // [rsp+38h] [rbp-38h] __int64 v31; // [rsp+40h] [rbp-30h] v31 = a1; GameManager::sheetNameForIcon(&v29, a2, (unsigned int)a2, a3); v7 = v29 & 1; if ( (v29 & 1) != 0 ) { if ( !*((_QWORD *)&v29 + 1) ) goto LABEL_35; } else if ( !((unsigned __int8)v29 >> 1) ) { goto LABEL_35; } v8 = (int)a3; v9 = v31; v10 = *(_DWORD *)(*(_QWORD *)(v31 + 1232) + 4 * v8) + a2 - 1; GameManager::addIconDelegate(v31, a5, (unsigned int)v10); v11 = (__int64 **)(v9 + 1216); v12 = *(__int64 **)(v9 + 1216); v13 = v11; v14 = v11; LABEL_7: if ( !v12 ) { LABEL_12: v16 = (__int64 *)operator new(0x28u); v17 = v31; v18 = v16; *((_DWORD *)v16 + 7) = v10; *((_BYTE *)v16 + 32) = 0; *(_OWORD *)v16 = 0; v16[2] = (__int64)v14; *v13 = v16; v19 = **(_QWORD **)(v17 + 1208); v20 = v17; if ( v19 ) *(_QWORD *)(v17 + 1208) = v19; sub_10001B680(*(__int64 **)(v17 + 1216), v18); ++*(_QWORD *)(v20 + 1224); if ( *((_BYTE *)v18 + 32) != 1 ) goto LABEL_17; LABEL_15: v7 = v29 & 1; goto LABEL_35; } while ( 1 ) { v14 = (__int64 **)v12; v15 = *((_DWORD *)v12 + 7); if ( v10 < v15 ) { v12 = *v14; v13 = v14; goto LABEL_7; } if ( v10 <= v15 ) break; v12 = v14[1]; if ( !v12 ) { v13 = v14 + 1; goto LABEL_12; } } v20 = v31; if ( *((_BYTE *)v14 + 32) == 1 ) goto LABEL_15; LABEL_17: v21 = *v11; v22 = v11; LABEL_19: if ( v21 ) { while ( 1 ) { v22 = (__int64 **)v21; v23 = *((_DWORD *)v21 + 7); if ( v10 < v23 ) { v21 = *v22; v11 = v22; goto LABEL_19; } if ( v10 <= v23 ) break; v21 = v22[1]; if ( !v21 ) { v11 = v22 + 1; goto LABEL_24; } } *((_BYTE *)v22 + 32) = 1; v7 = v29 & 1; if ( (v29 & 1) != 0 ) goto LABEL_29; LABEL_27: v28.__r_.__value_.__r.__words[2] = (std::string::size_type)__p; *(_OWORD *)&v28.__r_.__value_.__l.0 = v29; goto LABEL_30; } LABEL_24: v24 = operator new(0x28u); v24[7] = v10; *((_BYTE *)v24 + 32) = 0; *(_OWORD *)v24 = 0; *((_QWORD *)v24 + 2) = v22; *v11 = (__int64 *)v24; v25 = **(_QWORD **)(v20 + 1208); if ( v25 ) *(_QWORD *)(v20 + 1208) = v25; sub_10001B680(*(__int64 **)(v20 + 1216), (__int64 *)v24); ++*(_QWORD *)(v20 + 1224); *((_BYTE *)v24 + 32) = 1; v7 = v29 & 1; if ( (v29 & 1) == 0 ) goto LABEL_27; LABEL_29: sub_10001AD30(&v28, __p, *((unsigned __int64 *)&v29 + 1)); LABEL_30: std::string::append(&v28, ".png"); v26 = cocos2d::CCTextureCache::sharedTextureCache(&v28); if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 ) data = v28.__r_.__value_.__l.__data_; else data = v28.__r_.__value_.__s.__data_; cocos2d::CCTextureCache::addImageAsync(v26, data, v20, GameManager::finishedLoadingIconAsync, 0, (unsigned int)v10, 0); if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v28.__r_.__value_.__l.__data_); LABEL_35: if ( v7 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source