// // sub_1008FC760 from 0x1008fc760 to 0x1008fcc8e (1326 bytes) // // 2 xrefs: // > sub_1008FC720 @ 0x1008fc732 // > sub_1008FC740 @ 0x1008fc752 // // 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:38:00 +0000 // void __fastcall sub_1008FC760(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rax __int64 v5; // rax __int64 v6; // rcx __int64 v7; // rcx __int64 v8; // rax char *v9; // rdi __int64 v10; // rax __int128 *v11; // rax __int64 v12; // rax int v13; // r12d __int64 v14; // rax char *v15; // rdi __int64 v16; // rax int v17; // eax __int64 v18; // rdi __int64 v19; // rdi __int64 v20; // rdi __int64 v21; // rdi _QWORD *v22; // rax __int64 v23; // r13 __int64 v24; // rax __int128 *v25; // rax __int128 v26; // [rsp+18h] [rbp-E8h] BYREF char *v27; // [rsp+28h] [rbp-D8h] __int128 v28; // [rsp+30h] [rbp-D0h] BYREF char *v29; // [rsp+40h] [rbp-C0h] __int128 v30; // [rsp+48h] [rbp-B8h] BYREF char *v31; // [rsp+58h] [rbp-A8h] __int128 v32; // [rsp+60h] [rbp-A0h] BYREF void *v33; // [rsp+70h] [rbp-90h] __int128 v34; // [rsp+80h] [rbp-80h] BYREF void *__p; // [rsp+90h] [rbp-70h] __int128 v36; // [rsp+A0h] [rbp-60h] BYREF void *v37; // [rsp+B0h] [rbp-50h] int v38; // [rsp+BCh] [rbp-44h] __int128 v39; // [rsp+C0h] [rbp-40h] BYREF void *v40; // [rsp+D0h] [rbp-30h] if ( *(_BYTE *)(a1 + 1056) ) return; v3 = GJAccountManager::sharedState(a1, a2); if ( *(_DWORD *)(v3 + 352) <= *(_DWORD *)(v3 + 356) ) { GJAccountManager::sharedState(a1, a2); sub_1000A24A0(); return; } v4 = *(_QWORD *)(a1 + 1064); if ( (*(_BYTE *)(v4 + 376) & 1) != 0 ) { sub_10001AD30(&v39, *(const void **)(v4 + 392), *(_QWORD *)(v4 + 384)); v4 = *(_QWORD *)(a1 + 1064); if ( (*(_BYTE *)(v4 + 400) & 1) != 0 ) goto LABEL_6; } else { v40 = *(void **)(v4 + 392); v39 = *(_OWORD *)(v4 + 376); if ( (*(_BYTE *)(v4 + 400) & 1) != 0 ) { LABEL_6: sub_10001AD30(&v32, *(const void **)(v4 + 416), *(_QWORD *)(v4 + 408)); goto LABEL_10; } } v5 = v4 + 400; v33 = *(void **)(v5 + 16); v32 = *(_OWORD *)v5; while ( 1 ) { LABEL_10: while ( (v39 & 1) == 0 ) { if ( !(_BYTE)v39 ) goto LABEL_17; v6 = (unsigned __int8)v39 >> 1; if ( *((_BYTE *)&v39 + v6) != 32 ) goto LABEL_19; v7 = v6 - 1; LOBYTE(v39) = 2 * v7; *((_BYTE *)&v39 + v7 + 1) = 0; } if ( !*((_QWORD *)&v39 + 1) ) { LABEL_17: v27 = (char *)operator new(0x38u); *(_QWORD *)&v26 = 57; *((_QWORD *)&v26 + 1) = 54; strcpy(v27, "This sound pack has no name. Set one before uploading."); v8 = sub_100493AB0(0, (__int64)"Error", &v26, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8); if ( (v26 & 1) == 0 ) goto LABEL_49; v9 = v27; goto LABEL_48; } if ( *((char *)v40 + *((_QWORD *)&v39 + 1) - 1) != 32 ) break; --*((_QWORD *)&v39 + 1); *((_BYTE *)v40 + *((_QWORD *)&v39 + 1)) = 0; } LABEL_19: v10 = *(_QWORD *)(a1 + 1064); if ( (*(_BYTE *)(v10 + 472) & 1) != 0 ) { sub_10001AD30(&v36, *(const void **)(v10 + 488), *(_QWORD *)(v10 + 480)); } else { v11 = (__int128 *)(v10 + 472); v37 = *((void **)v11 + 2); v36 = *v11; } if ( (v36 & 1) != 0 ) { if ( *((_QWORD *)&v36 + 1) ) goto LABEL_24; LABEL_28: v29 = (char *)operator new(0x20u); *(_QWORD *)&v28 = 33; *((_QWORD *)&v28 + 1) = 28; strcpy(v29, "This sound pack has no data."); v16 = sub_100493AB0(0, (__int64)"Error", &v28, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 1312LL))(v16); if ( (v28 & 1) == 0 ) goto LABEL_46; v15 = v29; goto LABEL_45; } if ( !((unsigned __int8)v36 >> 1) ) goto LABEL_28; LABEL_24: v12 = *(_QWORD *)(a1 + 1064); v13 = *(_DWORD *)(v12 + 356); if ( *(_DWORD *)(v12 + 352) <= 0 || v13 <= 0 ) { v31 = (char *)operator new(0x48u); *(_QWORD *)&v30 = 73; *((_QWORD *)&v30 + 1) = 66; strcpy(v31, "This sound pack is empty. Add at least one sound before uploading."); v14 = sub_100493AB0(0, (__int64)"Error", &v30, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14); if ( (v30 & 1) == 0 ) goto LABEL_46; v15 = v31; goto LABEL_45; } v38 = *(_DWORD *)(v12 + 352); v17 = 0; if ( *(_BYTE *)(a1 + 1104) == 1 ) v17 = 4 - *(unsigned __int8 *)(a1 + 1105); *(_DWORD *)(a1 + 1108) = v17; *(_DWORD *)(a1 + 1120) = a2; *(_BYTE *)(a1 + 1056) = 1; v18 = *(_QWORD *)(a1 + 1032); if ( v18 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 344LL))(v18, 0); v19 = *(_QWORD *)(a1 + 1040); if ( v19 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v19 + 344LL))(v19, 0); v20 = *(_QWORD *)(a1 + 1048); if ( v20 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 344LL))(v20, 0); v21 = *(_QWORD *)(a1 + 1112); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v21 + 344LL))(v21, 0); v22 = LoadingCircle::create(); *(_QWORD *)(a1 + 1024) = v22; v22[69] = *(_QWORD *)(a1 + 584); LoadingCircle::show((__int64)v22); *(_QWORD *)(GameLevelManager::sharedState() + 1320) = a1 + 1016; v23 = GameLevelManager::sharedState(); v24 = *(_QWORD *)(a1 + 1064); if ( (*(_BYTE *)(v24 + 424) & 1) != 0 ) { sub_10001AD30(&v34, *(const void **)(v24 + 440), *(_QWORD *)(v24 + 432)); } else { v25 = (__int128 *)(v24 + 424); __p = *((void **)v25 + 2); v34 = *v25; } sub_10055B650(v23, &v39, &v32, (__int64)&v36, v38, v13); if ( (v34 & 1) != 0 ) { v15 = (char *)__p; LABEL_45: operator delete(v15); } LABEL_46: if ( (v36 & 1) == 0 ) goto LABEL_49; v9 = (char *)v37; LABEL_48: operator delete(v9); LABEL_49: if ( (v32 & 1) != 0 ) operator delete(v33); if ( (v39 & 1) != 0 ) operator delete(v40); }
GD Web Decomp Icon

GD Web Decomp

Raw Source