// // sub_1008C9540 from 0x1008c9540 to 0x1008c9681 (321 bytes) // // 1 xrefs: // > sub_1008C8B30 @ 0x1008c9235 // // 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:37:33 +0000 // void __fastcall sub_1008C9540(__int64 a1) { __int64 v2; // rsi char v3; // r13 void *v4; // r12 const char *v5; // r15 const char *v6; // rdi int v7; // r14d __int64 v8; // rsi char v9; // r13 void *v10; // r12 int v11; // r15d __int64 v12; // rdi __int64 *v13; // rax __int64 v14; // rdi void *v15[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v2 = *(_QWORD *)(a1 + 1024); if ( !v2 ) goto LABEL_12; CCTextInputNode::getString(v15, v2); v3 = (char)v15[0]; v4 = __p; v5 = (char *)v15 + 1; v6 = (const char *)__p; if ( ((__int64)v15[0] & 1) == 0 ) v6 = (char *)v15 + 1; v7 = atoi(v6); if ( (v3 & 1) != 0 ) operator delete(v4); if ( v7 > 0 ) { v8 = *(_QWORD *)(a1 + 1032); if ( v8 ) { CCTextInputNode::getString(v15, v8); v9 = (char)v15[0]; v10 = __p; if ( ((__int64)v15[0] & 1) != 0 ) v5 = (const char *)__p; v11 = atoi(v5); if ( (v9 & 1) != 0 ) operator delete(v10); } else { v11 = 0; } v13 = (__int64 *)GameLevelManager::sharedState(); sub_100554850(v13, v7, v11); *(_DWORD *)(a1 + 1048) = v7; *(_DWORD *)(a1 + 1052) = v11; *(_DWORD *)(a1 + 1056) = 0; v14 = *(_QWORD *)(a1 + 1040); if ( v14 ) (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v14 + 928LL))(v14, "Fetching..."); cocos2d::CCNode::unschedule(a1, (__int64)sub_1008C97C0, 0); cocos2d::CCNode::schedule_1(a1, (__int64)sub_1008C97C0, 0, COERCE_DOUBLE(1041865114)); } else { LABEL_12: v12 = *(_QWORD *)(a1 + 1040); if ( v12 ) (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, "Enter a valid level ID."); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source