// // sub_1005B1EA0 from 0x1005b1ea0 to 0x1005b1fd0 (304 bytes) // // 2 xrefs: // > SetupArtSwitchPopup::init @ 0x1005b1d18 // > SetupArtSwitchPopup::selectArtClosed @ 0x1005b2065 // // 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:32:39 +0000 // char *__fastcall sub_1005B1EA0(char *a1, __int64 a2, int a3) { char v3; // al char *v5; // rdi __int64 v6; // rax const char *CString; // r12 size_t v8; // rax size_t v9; // r15 char *v10; // r14 size_t v11; // r13 char *v12; // r14 if ( a3 == 2 ) { v5 = "mgIcon_%02d_001.png"; } else if ( a3 == 1 ) { v5 = "gIcon_%02d_001.png"; } else { if ( a3 ) { qmemcpy(a1, "\"mgIcon_00_001.png", 18); v12 = a1 + 18; goto LABEL_17; } v5 = "bgIcon_%02d_001.png"; } v6 = sub_10088E820(v5, v3); CString = (const char *)cocos2d::CCString::getCString(v6); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; v10 = (char *)operator new(v11); *((_QWORD *)a1 + 2) = v10; *(_QWORD *)a1 = v11 + 1; *((_QWORD *)a1 + 1) = v9; } else { *a1 = 2 * v8; v10 = a1 + 1; if ( !v8 ) goto LABEL_15; } memmove(v10, CString, v9); LABEL_15: v12 = &v10[v9]; LABEL_17: *v12 = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source