// // GJLevelList::parseListLevels from 0x1402728a0 to 0x140272b48 (680 bytes) // // 4 xrefs: // > GameLevelManager::updateSavedLevelList @ 0x140230c9a // > GJLevelList::create @ 0x1402723ef // > GJLevelList::dataLoaded @ 0x140273d43 // > @ 0x14091cb44 // // 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 11:28:54 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall GJLevelList::parseListLevels(__int64 a1, void **a2) { __int64 *v2; // rbx void **v4; // rcx __int64 v5; // rsi unsigned __int64 v6; // rdx unsigned __int64 v7; // rdi __int64 v8; // rcx unsigned __int64 v9; // rdx __int64 v10; // r8 __int64 v11; // r9 __int64 v12; // r14 __int64 v13; // r15 unsigned __int64 v14; // rcx size_t v15; // r8 size_t v16; // rcx __int64 *v17; // rax const char *v18; // rcx int v19; // eax _BYTE *v20; // rdx unsigned __int8 *v21; // r9 __int64 v22; // rcx char *v23; // rcx char *v24; // rcx void *v25; // rcx int v26; // [rsp+30h] [rbp-29h] BYREF void **v27; // [rsp+38h] [rbp-21h] char *String[2]; // [rsp+40h] [rbp-19h] BYREF __int64 v29; // [rsp+50h] [rbp-9h] unsigned __int64 v30; // [rsp+58h] [rbp-1h] void *Block[2]; // [rsp+60h] [rbp+7h] BYREF __int64 v32; // [rsp+70h] [rbp+17h] unsigned __int64 v33; // [rsp+78h] [rbp+1Fh] v2 = (__int64 *)a2; v27 = a2; v4 = (void **)(a1 + 504); if ( v4 != a2 ) { if ( (unsigned __int64)a2[3] > 0xF ) a2 = (void **)*a2; sub_1400405A0(v4, a2, v2[2]); } v5 = a1 + 320; if ( *(_QWORD *)v5 != *(_QWORD *)(v5 + 8) ) *(_QWORD *)(v5 + 8) = *(_QWORD *)v5; v6 = v2[2]; if ( v6 ) { *(_OWORD *)Block = 0; v32 = 1; v33 = 15; LOWORD(Block[0]) = 44; v7 = 0; v8 = (__int64)v2; if ( (unsigned __int64)v2[3] > 0xF ) v8 = *v2; v12 = sub_140045BF0(v8, v6, 0, (unsigned __int8 *)Block, 1); v13 = *((unsigned int *)v2 + 4); while ( 1 ) { *(_OWORD *)String = 0; v29 = 0; v30 = 0; v14 = v2[2]; if ( v14 < v7 ) sub_14003F4D0(v14, v9, v10, v11); v15 = v12 - v7; v16 = v14 - v7; if ( v16 < v12 - v7 ) v15 = v16; v17 = v2; if ( (unsigned __int64)v2[3] > 0xF ) v17 = (__int64 *)*v2; sub_14003D230(String, (char *)v17 + v7, v15); if ( v29 || v7 != v13 ) { v18 = (const char *)String; if ( v30 > 0xF ) v18 = String[0]; v19 = atoi(v18); v26 = v19; v20 = *(_BYTE **)(v5 + 8); if ( v20 == *(_BYTE **)(v5 + 16) ) { sub_140069B30((const void **)v5, v20, &v26); } else { *(_DWORD *)v20 = v19; *(_QWORD *)(v5 + 8) += 4LL; } } if ( v12 == -1 ) break; v7 = v12 + 1; v21 = (unsigned __int8 *)Block; if ( v33 > 0xF ) v21 = (unsigned __int8 *)Block[0]; v22 = (__int64)v2; if ( (unsigned __int64)v2[3] > 0xF ) v22 = *v2; v12 = sub_140045BF0(v22, v2[2], v12 + 1, v21, v32); v9 = v30; if ( v30 > 0xF ) { v23 = String[0]; if ( v30 + 1 >= 0x1000 ) { v23 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v23 - 8) > 0x1F ) goto LABEL_35; } j_j_free(v23); } } if ( v30 > 0xF ) { v24 = String[0]; if ( v30 + 1 >= 0x1000 ) { v24 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v24 - 8) > 0x1F ) LABEL_35: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v24); } if ( v33 > 0xF ) { v25 = Block[0]; if ( v33 + 1 >= 0x1000 ) { v25 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v25 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v25); } } sub_14003D310((__int64)v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source