// // LevelPickerPopup::onOnlineMode from 0x1400ea370 to 0x1400ea596 (550 bytes) // // 2 xrefs: // > LevelPickerPopup::init @ 0x1400e922f // > @ 0x140914e88 // // 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:26:34 +0000 // void __fastcall LevelPickerPopup::onOnlineMode(__int64 a1) { char v1; // al __int64 *v3; // rcx __int64 v4; // rcx __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // rcx _BYTE *v8; // rax size_t v9; // r8 char v10; // di void *v11; // rcx _QWORD *v12; // rcx __int64 v13; // rdx __int64 *v14; // rcx __int64 v15; // rcx __int64 v16; // rcx void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int128 v18; // [rsp+48h] [rbp-20h] v1 = 0; if ( *(_BYTE *)(a1 + 808) ) { *(_BYTE *)(a1 + 808) = 0; *(_DWORD *)(a1 + 680) = 0; v3 = *(__int64 **)(a1 + 936); if ( v3 ) ButtonSprite::setString(v3, "Online"); v4 = *(_QWORD *)(a1 + 920); if ( v4 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 336LL))(v4, 0); v5 = *(_QWORD *)(a1 + 928); if ( v5 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0); v6 = *(_QWORD *)(a1 + 696); if ( v6 ) LoadingCircle::fadeAndRemove(v6); LevelPickerPopup::buildSavedPage(a1); } else { v7 = *(_QWORD *)(a1 + 912); if ( !v7 ) goto LABEL_16; v8 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v7 + 592) + 600LL) + 8LL))(*(_QWORD *)(v7 + 592) + 600LL); *(_OWORD *)Block = 0; v9 = -1; v18 = 0; do ++v9; while ( v8[v9] ); sub_14003D230(Block, v8, v9); v1 = 3; if ( (_QWORD)v18 ) v10 = 1; else LABEL_16: v10 = 0; if ( (v1 & 1) != 0 && *((_QWORD *)&v18 + 1) > 0xFu ) { v11 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v18 + 1) + 1LL) >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } if ( v10 ) { v12 = *(_QWORD **)(a1 + 912); *(_QWORD *)&v18 = 0; *(_OWORD *)Block = 0; LOBYTE(Block[0]) = 0; *((_QWORD *)&v18 + 1) = 15; CCTextInputNode::setString(v12, Block); } sub_1400405A0((void **)(a1 + 880), &byte_1406ED6E0, 0); v14 = *(__int64 **)(a1 + 936); *(_BYTE *)(a1 + 808) = 1; if ( v14 ) ButtonSprite::setString(v14, "Saved"); v15 = *(_QWORD *)(a1 + 920); if ( v15 ) { LOBYTE(v13) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 336LL))(v15, v13); } v16 = *(_QWORD *)(a1 + 928); if ( v16 ) { LOBYTE(v13) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 336LL))(v16, v13); } LevelPickerPopup::refreshUseID(a1); PagedListPopup::loadPage(a1, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source