// // ThreadOptionsPopup::FLAlert_Clicked from 0x1400f5a80 to 0x1400f6114 (1684 bytes) // // 2 xrefs: // > @ 0x14072ae48 // > @ 0x140915260 // // 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:38 +0000 // // Hidden C++ exception states: #wind=11 void __fastcall ThreadOptionsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, char a3) { __int64 v5; // rbx __int64 v6; // rcx char updated; // si void *v8; // rcx __int64 v9; // rax __int64 v10; // rbx __int64 v11; // rcx char v12; // si void *v13; // rcx __int64 v14; // rax char v15; // r14 const char *v16; // rdx int v17; // ebx size_t v18; // r8 __int64 v19; // rcx char v20; // si void *v21; // r8 __int64 v22; // rsi __int64 v23; // rax __int64 v24; // rbx __int64 v25; // rcx char v26; // si void *v27; // rcx __int64 v28; // rax cocos2d::CCString *v29; // rax const char *CString; // rax __int64 v31; // rbx size_t v32; // r8 __int64 v33; // rcx char v34; // si void *v35; // r8 __int64 v36; // rax void *v37; // [rsp+30h] [rbp-30h] void *v38; // [rsp+30h] [rbp-30h] void *v39; // [rsp+30h] [rbp-30h] void *v40; // [rsp+30h] [rbp-30h] void *v41; // [rsp+30h] [rbp-30h] void *v42; // [rsp+30h] [rbp-30h] void *v43; // [rsp+30h] [rbp-30h] void *v44; // [rsp+30h] [rbp-30h] void *v45; // [rsp+30h] [rbp-30h] void *v46; // [rsp+30h] [rbp-30h] void *Block[2]; // [rsp+38h] [rbp-28h] BYREF __int64 v48; // [rsp+48h] [rbp-18h] unsigned __int64 v49; // [rsp+50h] [rbp-10h] if ( !a3 ) return; if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 ) { *(_OWORD *)Block = 0; v5 = 0; v48 = 0; v49 = 15; LOBYTE(Block[0]) = 0; v6 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v37 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v37); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v6 = *(_QWORD *)&qword_14090BFB0; } updated = GameLevelManager::updateThread(v6, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 1, Block); if ( v49 <= 0xF ) goto LABEL_9; v8 = Block[0]; if ( v49 + 1 < 0x1000 || (v8 = *((void **)Block[0] - 1), (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) <= 0x1F) ) { j_j_free(v8); LABEL_9: if ( updated ) { if ( a1 != 1008 ) v5 = a1 - 8; v9 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v38 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v38); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v9 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v9 + 1392) = v5; *(_DWORD *)(a1 + 24) = 1; } return; } LABEL_67: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 13 ) { *(_OWORD *)Block = 0; v10 = 0; v48 = 0; v49 = 15; LOBYTE(Block[0]) = 0; v11 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v11 = *(_QWORD *)&qword_14090BFB0; } v12 = GameLevelManager::updateThread(v11, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 18, Block); if ( v49 > 0xF ) { v13 = Block[0]; if ( v49 + 1 >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) goto LABEL_67; } j_j_free(v13); } if ( v12 ) { if ( a1 != 1008 ) v10 = a1 - 8; v14 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v40 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v40); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v14 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v14 + 1392) = v10; *(_DWORD *)(a1 + 24) = 18; } } else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 11 ) { v15 = *(_BYTE *)(*(_QWORD *)(a1 + 8) + 328LL); v16 = "unlock"; if ( !v15 ) v16 = "lock"; *(_OWORD *)Block = 0; v17 = 0; v48 = 0; v49 = 0; v18 = -1; do ++v18; while ( v16[v18] ); sub_14003D230(Block, v16, v18); v19 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v41 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v41); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v19 = *(_QWORD *)&qword_14090BFB0; } v20 = GameLevelManager::adminThreadAction(v19, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), Block, 0); if ( v49 > 0xF ) { v21 = Block[0]; if ( v49 + 1 >= 0x1000 ) { v21 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v21 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v21); } if ( v20 ) { v22 = a1 - 8; if ( a1 == 1008 ) v22 = 0; v23 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v42 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v42); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v23 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v23 + 1392) = v22; LOBYTE(v17) = v15 != 0; *(_DWORD *)(a1 + 24) = v17 + 101; } } else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 3 ) { *(_OWORD *)Block = 0; v24 = 0; v48 = 0; v49 = 15; LOBYTE(Block[0]) = 0; v25 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v43 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v43); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v25 = *(_QWORD *)&qword_14090BFB0; } v26 = GameLevelManager::updateThread(v25, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 5, Block); if ( v49 > 0xF ) { v27 = Block[0]; if ( v49 + 1 >= 0x1000 ) { v27 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v27 - 8) > 0x1F ) goto LABEL_67; } j_j_free(v27); } if ( v26 ) { if ( a1 != 1008 ) v24 = a1 - 8; v28 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v44 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v44); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v28 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v28 + 1392) = v24; *(_DWORD *)(a1 + 24) = 5; } } else { if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) != 9 ) return; v29 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 60LL)); CString = cocos2d::CCString::getCString(v29); *(_OWORD *)Block = 0; v31 = 0; v48 = 0; v49 = 0; v32 = -1; do ++v32; while ( CString[v32] ); sub_14003D230(Block, CString, v32); v33 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v45 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v45); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v33 = *(_QWORD *)&qword_14090BFB0; } v34 = GameLevelManager::updateThread(v33, *(unsigned int *)(*(_QWORD *)(a1 + 8) + 56LL), 11, Block); if ( v49 > 0xF ) { v35 = Block[0]; if ( v49 + 1 >= 0x1000 ) { v35 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v35 - 8) > 0x1F ) goto LABEL_67; } j_j_free(v35); } if ( v34 ) { if ( a1 != 1008 ) v31 = a1 - 8; v36 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v46 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v46); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v36 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v36 + 1392) = v31; *(_DWORD *)(a1 + 24) = 11; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source