// // sub_10096D370 from 0x10096d370 to 0x10096d500 (400 bytes) // // 1 xrefs: // > sub_10096D590 @ 0x10096d61c // // 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:51 +0000 // __int64 __fastcall sub_10096D370(__int64 a1, int a2) { _QWORD *v2; // r12 __int64 v3; // rcx __int64 v4; // rax int v5; // edx int v6; // ecx int v7; // r8d int v8; // r9d __int64 v9; // r15 _QWORD *v10; // rax _QWORD *v11; // r13 __int64 v12; // rax float v14; // [rsp+0h] [rbp-40h] BYREF _DWORD *v15; // [rsp+8h] [rbp-38h] _QWORD *v16; // [rsp+10h] [rbp-30h] v2 = (_QWORD *)(a1 + 560); v3 = *(_QWORD *)(a1 + 560); if ( !v3 ) goto LABEL_8; v4 = a1 + 560; do { if ( *(_DWORD *)(v3 + 32) >= a2 ) v4 = v3; v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < a2)); } while ( v3 ); if ( (_QWORD *)v4 != v2 && *(_DWORD *)(v4 + 32) <= a2 ) return *(_QWORD *)(v4 + 40); LABEL_8: v15 = sub_10096D1C0(a1, a2); v9 = cocos2d::CCMenu::create(a1, (unsigned int)a2, v5, v6, v7, v8); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v9 + 184LL))(v9, &unk_100BE7730); sub_100278250(&v14, 0.0, 0.0); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v9 + 296LL))(v9, &v14); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v9 + 320LL))(v9, &unk_100BE7738); if ( *(_BYTE *)(a1 + 524) == 1 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1000LL))(v9, 0); v10 = (_QWORD *)*v2; v11 = (_QWORD *)(a1 + 560); LABEL_12: if ( v10 ) { do { v11 = v10; if ( *((_DWORD *)v10 + 8) > a2 ) { v10 = (_QWORD *)*v10; v2 = v11; goto LABEL_12; } if ( *((_DWORD *)v10 + 8) >= a2 ) goto LABEL_20; v10 = (_QWORD *)v10[1]; } while ( v10 ); v2 = v11 + 1; } v16 = v11; v11 = operator new(0x30u); *((_DWORD *)v11 + 8) = a2; v11[5] = 0; *(_OWORD *)v11 = 0; v11[2] = v16; *v2 = v11; v12 = **(_QWORD **)(a1 + 552); if ( v12 ) *(_QWORD *)(a1 + 552) = v12; sub_10001B680(*(__int64 **)(a1 + 560), v11); ++*(_QWORD *)(a1 + 568); LABEL_20: v11[5] = v9; (*(void (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)v15 + 464LL))(v15, v9, 10); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source