// // sub_1008F13A0 from 0x1008f13a0 to 0x1008f1550 (432 bytes) // // 5 xrefs: // > sub_1008F0AC0 @ 0x1008f0fca // > sub_1008F0AC0 @ 0x1008f101c // > sub_1008F0AC0 @ 0x1008f1078 // > EditorSoundBrowserLayer::loadEditorSoundsFinished @ 0x1008f1977 // > EditorSoundBrowserLayer::loadEditorSoundsFailed @ 0x1008f1a4a // // 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:37:56 +0000 // void __fastcall sub_1008F13A0(__int64 a1) { int v2; // r12d int v3; // r14d __int64 v4; // rdi int v5; // r15d __int64 v6; // rdi char *v7; // rax const std::string::value_type *CString; // rax std::string::pointer data; // rsi bool v10; // r14 __int64 v11; // rdi __int64 v12; // rdi __int64 v13; // rdi std::string v14; // [rsp+0h] [rbp-40h] BYREF if ( !*(_QWORD *)(a1 + 1064) ) return; v2 = *(_DWORD *)(a1 + 1052); v3 = 10 * v2 + 1; v4 = *(_QWORD *)(a1 + 1104); v5 = 0; if ( v4 ) { if ( !(unsigned int)sub_1007FEF90(v4) ) v3 = 0; v6 = *(_QWORD *)(a1 + 1104); v2 = *(_DWORD *)(a1 + 1052); if ( v6 ) v5 = sub_1007FEF90(v6); } memset(&v14, 0, sizeof(v14)); if ( v5 + 10 * v2 ) { if ( *(_DWORD *)(a1 + 1048) > 1u ) v7 = sub_10088E820("Page %d", *(_DWORD *)(a1 + 1052) + 1); else v7 = sub_10088E820("%d-%d of %d", v3, v5 + 10 * v2, *(_DWORD *)(a1 + 1112)); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v7); std::string::assign(&v14, CString); } else { std::string::assign(&v14, "No results"); } if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) data = v14.__r_.__value_.__l.__data_; else data = v14.__r_.__value_.__s.__data_; (*(void (__fastcall **)(_QWORD, std::string::pointer))(**(_QWORD **)(a1 + 1064) + 928LL))( *(_QWORD *)(a1 + 1064), data); if ( *(_DWORD *)(a1 + 1048) <= 1u ) { v10 = *(_DWORD *)(a1 + 1112) > 10 * *(_DWORD *)(a1 + 1052) + 10; v11 = *(_QWORD *)(a1 + 1072); if ( !v11 ) goto LABEL_24; goto LABEL_23; } v12 = *(_QWORD *)(a1 + 1104); if ( v12 ) { v10 = (int)sub_1007FEF90(v12) >= 10; v11 = *(_QWORD *)(a1 + 1072); if ( !v11 ) goto LABEL_24; goto LABEL_23; } v10 = 0; v11 = *(_QWORD *)(a1 + 1072); if ( v11 ) LABEL_23: (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v11 + 344LL))(v11, *(_DWORD *)(a1 + 1052) > 0); LABEL_24: v13 = *(_QWORD *)(a1 + 1080); if ( v13 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v13 + 344LL))(v13, v10); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source