// // GJGameLevel::getListSnapshot from 0x140267680 to 0x140267a0a (906 bytes) // // 3 xrefs: // > GJLevelList::addLevelToList @ 0x140272c5e // > GJLevelList::getListLevelsArray @ 0x1402730da // > @ 0x14091c9d0 // // 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:50 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall GJGameLevel::getListSnapshot(__int64 a1) { int v2; // ebp __int64 v3; // rax __int64 v4; // rdi int v5; // ebx float v6; // xmm0_4 void **v7; // rdx int v8; // ebx float v9; // xmm0_4 void **v10; // rdx int v11; // ebx float v12; // xmm0_4 int v13; // ebx float v14; // xmm0_4 int v15; // ebx float v16; // xmm0_4 float v17; // xmm0_4 int v18; // ebx float v19; // xmm0_4 void *Src[4]; // [rsp+20h] [rbp-68h] BYREF void *v22[4]; // [rsp+40h] [rbp-48h] BYREF void *v23; // [rsp+90h] [rbp+8h] v2 = 0; v23 = operator new(0x840u); v3 = GJGameLevel::GJGameLevel((__int64)v23); v4 = v3; if ( v3 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 72LL))(v3) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4); } else { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1); v4 = 0; } } v5 = *(_DWORD *)(a1 + 328) - *(_DWORD *)(a1 + 332); *(_DWORD *)(v4 + 336) = v5; v6 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 332) = (int)v6; *(_DWORD *)(v4 + 328) = v5 + (int)v6; sub_14003F4F0((__int64)Src, a1 + 344); if ( (void **)(v4 + 344) != Src ) { v7 = Src; if ( Src[3] > (void *)0xF ) v7 = (void **)Src[0]; sub_1400405A0((void **)(v4 + 344), v7, (size_t)Src[2]); } sub_14003D310((__int64)Src); *(_DWORD *)(v4 + 972) = *(_DWORD *)(a1 + 972); *(_DWORD *)(v4 + 1336) = *(_DWORD *)(a1 + 1336); v8 = *(_DWORD *)(a1 + 660) - *(_DWORD *)(a1 + 664); *(_DWORD *)(v4 + 668) = v8; v9 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 664) = (int)v9; *(_DWORD *)(v4 + 660) = v8 + (int)v9; sub_14003F4F0((__int64)v22, a1 + 440); if ( (void **)(v4 + 440) != v22 ) { v10 = v22; if ( v22[3] > (void *)0xF ) v10 = (void **)v22[0]; sub_1400405A0((void **)(v4 + 440), v10, (size_t)v22[2]); } sub_14003D310((__int64)v22); *(_DWORD *)(v4 + 964) = *(_DWORD *)(a1 + 964); *(_DWORD *)(v4 + 716) = *(_DWORD *)(a1 + 716); *(_DWORD *)(v4 + 676) = *(_DWORD *)(a1 + 676); *(_DWORD *)(v4 + 680) = *(_DWORD *)(a1 + 680); *(_DWORD *)(v4 + 1220) = *(_DWORD *)(a1 + 1220); *(_DWORD *)(v4 + 708) = *(_DWORD *)(a1 + 708); *(_DWORD *)(v4 + 712) = *(_DWORD *)(a1 + 712); v11 = *(_DWORD *)(a1 + 1004) - *(_DWORD *)(a1 + 1008); *(_DWORD *)(v4 + 1012) = v11; v12 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 1008) = (int)v12; *(_DWORD *)(v4 + 1004) = v11 + (int)v12; *(_DWORD *)(v4 + 1016) = *(_DWORD *)(a1 + 1016); *(_BYTE *)(v4 + 1032) = *(_BYTE *)(a1 + 1032); *(_DWORD *)(v4 + 976) = *(_DWORD *)(a1 + 976); *(_DWORD *)(v4 + 980) = *(_DWORD *)(a1 + 980); v13 = *(_DWORD *)(a1 + 1020) - *(_DWORD *)(a1 + 1024); *(_DWORD *)(v4 + 1028) = v13; v14 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 1024) = (int)v14; *(_DWORD *)(v4 + 1020) = v13 + (int)v14; *(_DWORD *)(v4 + 1036) = *(_DWORD *)(a1 + 1036); v15 = *(_DWORD *)(a1 + 1040) - *(_DWORD *)(a1 + 1044); *(_DWORD *)(v4 + 1048) = v15; v16 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 1044) = (int)v16; *(_DWORD *)(v4 + 1040) = v15 + (int)v16; LOBYTE(v2) = *(_DWORD *)(a1 + 1060) != *(_DWORD *)(a1 + 1064); *(_DWORD *)(v4 + 1068) = v2; v17 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 1064) = (int)v17; *(_DWORD *)(v4 + 1060) = v2 + (int)v17; v18 = *(_DWORD *)(a1 + 692) - *(_DWORD *)(a1 + 696); *(_DWORD *)(v4 + 700) = v18; v19 = (float)((float)rand() / 32767.0) * 1000.0; *(_DWORD *)(v4 + 696) = (int)v19; *(_DWORD *)(v4 + 692) = v18 + (int)v19; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source