{"type": "func", "start": 5371008736, "end": 5371009261, "name": "GameLevelManager::onGetContentStatusCompleted", "pseudocode": "// \n// GameLevelManager::onGetContentStatusCompleted from 0x1402316e0 to 0x1402318ed (525 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a5f9\n// > <???> @ 0x14091bf08\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:30 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::onGetContentStatusCompleted(__int64 a1, __int64 *a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  const void *v7; // rcx\n  unsigned __int64 v8; // rdi\n  size_t v9; // r8\n  cocos2d::CCArray *v10; // rdi\n  cocos2d::CCString *v11; // rax\n  cocos2d::CCString *v12; // rax\n  cocos2d::CCString *v13; // rax\n  cocos2d::CCString *v14; // rax\n  cocos2d::CCString *v15; // rax\n  void (__fastcall ***v16)(_QWORD); // rcx\n  __int128 Buf2; // [rsp+20h] [rbp-68h] BYREF\n  __int64 v18; // [rsp+30h] [rbp-58h]\n  __int64 v19; // [rsp+38h] [rbp-50h]\n  __int64 *v20; // [rsp+40h] [rbp-48h]\n  _QWORD *v21; // [rsp+48h] [rbp-40h]\n\n  v20 = a2;\n  v21 = a3;\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  *(_BYTE *)(a1 + 1008) = 1;\n  Buf2 = 0;\n  v18 = 2;\n  v19 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v7 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v7 = (const void *)*a2;\n  v8 = a2[2];\n  v9 = v8;\n  if ( v8 > 2 )\n    v9 = 2;\n  if ( memcmp(v7, &Buf2, v9) || v8 != 2 )\n  {\n    v10 = sub_1400D2840(a2, byte_14070ECF8);\n    if ( cocos2d::CCArray::count(v10) )\n    {\n      v11 = cocos2d::CCArray::stringAtIndex(v10, 0);\n      *(_DWORD *)(a1 + 988) = cocos2d::CCString::intValue(v11);\n    }\n    if ( cocos2d::CCArray::count(v10) >= 2 )\n    {\n      v12 = cocos2d::CCArray::stringAtIndex(v10, 1u);\n      *(_DWORD *)(a1 + 992) = cocos2d::CCString::intValue(v12);\n    }\n    if ( cocos2d::CCArray::count(v10) >= 3 )\n    {\n      v13 = cocos2d::CCArray::stringAtIndex(v10, 2u);\n      *(_DWORD *)(a1 + 996) = cocos2d::CCString::intValue(v13);\n    }\n    if ( cocos2d::CCArray::count(v10) >= 4 )\n    {\n      v14 = cocos2d::CCArray::stringAtIndex(v10, 3u);\n      *(_DWORD *)(a1 + 1000) = cocos2d::CCString::intValue(v14);\n    }\n    if ( cocos2d::CCArray::count(v10) >= 5 )\n    {\n      v15 = cocos2d::CCArray::stringAtIndex(v10, 4u);\n      *(_DWORD *)(a1 + 1004) = cocos2d::CCString::intValue(v15);\n    }\n    if ( !*(_BYTE *)(a1 + 1028) && cocos2d::CCArray::count(v10) >= 4 )\n    {\n      *(_DWORD *)(a1 + 1012) = *(_DWORD *)(a1 + 988);\n      *(_DWORD *)(a1 + 1016) = *(_DWORD *)(a1 + 992);\n      *(_DWORD *)(a1 + 1020) = *(_DWORD *)(a1 + 996);\n      *(_DWORD *)(a1 + 1024) = *(_DWORD *)(a1 + 1000);\n      *(_BYTE *)(a1 + 1028) = 1;\n    }\n    v16 = *(void (__fastcall ****)(_QWORD))(a1 + 1568);\n    if ( v16 )\n      (**v16)(v16);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetContentStatusCompleted from 0x1402316e0 to 0x1402318ed (525 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a5f9\n; > <???> @ 0x14091bf08\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:30 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402316e0\npush    rbp                                                            ; +0x2, 0x1402316e2\npush    rsi                                                            ; +0x3, 0x1402316e3\npush    rdi                                                            ; +0x4, 0x1402316e4\npush    r14                                                            ; +0x5, 0x1402316e5\nsub     rsp, 60h                                                       ; +0x7, 0x1402316e7\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1402316eb\nxor     rax, rsp                                                       ; +0x12, 0x1402316f2\nmov     [rsp+88h+var_38], rax                                          ; +0x15, 0x1402316f5\nmov     r14, r8                                                        ; +0x1a, 0x1402316fa\nmov     rsi, rdx                                                       ; +0x1d, 0x1402316fd\nmov     rbx, rcx                                                       ; +0x20, 0x140231700\nmov     [rsp+88h+var_48], rdx                                          ; +0x23, 0x140231703\nmov     [rsp+88h+var_40], r8                                           ; +0x28, 0x140231708\nmov     rdx, r8                                                        ; +0x2d, 0x14023170d\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x30, 0x140231710\njbe     short loc_14023171A                                            ; +0x35, 0x140231715\nmov     rdx, [r8]                                                      ; +0x37, 0x140231717\ncall    GameLevelManager__removeDLFromActive                           ; +0x3a, 0x14023171a\nmov     byte ptr [rbx+3F0h], 1                                         ; +0x3f, 0x14023171f\nxorps   xmm0, xmm0                                                     ; +0x46, 0x140231726\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x49, 0x140231729\nmov     ebp, 2                                                         ; +0x4e, 0x14023172e\nmov     [rsp+88h+var_58], rbp                                          ; +0x53, 0x140231733\nmov     [rsp+88h+var_50], 0Fh                                          ; +0x58, 0x140231738\nmov     eax, 312Dh                                                     ; +0x61, 0x140231741\nmov     word ptr [rsp+88h+Buf2], ax                                    ; +0x66, 0x140231746\nmov     byte ptr [rsp+88h+Buf2+2], 0                                   ; +0x6b, 0x14023174b\nmov     rcx, rsi                                                       ; +0x70, 0x140231750\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x73, 0x140231753\njbe     short loc_14023175D                                            ; +0x78, 0x140231758\nmov     rcx, [rsi]; Buf1                                               ; +0x7a, 0x14023175a\nmov     rdi, [rsi+10h]                                                 ; +0x7d, 0x14023175d\nmov     r8, rdi                                                        ; +0x81, 0x140231761\ncmp     rdi, rbp                                                       ; +0x84, 0x140231764\ncmova   r8, rbp; Size                                                  ; +0x87, 0x140231767\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0x8b, 0x14023176b\ncall    memcmp                                                         ; +0x90, 0x140231770\ntest    eax, eax                                                       ; +0x95, 0x140231775\njnz     short loc_140231782                                            ; +0x97, 0x140231777\ncmp     rdi, rbp                                                       ; +0x99, 0x140231779\njz      loc_1402318C4                                                  ; +0x9c, 0x14023177c\nlea     rdx, byte_14070ECF8                                            ; +0xa2, 0x140231782\nmov     rcx, rsi                                                       ; +0xa9, 0x140231789\ncall    sub_1400D2840                                                  ; +0xac, 0x14023178c\nmov     rdi, rax                                                       ; +0xb1, 0x140231791\nmov     rcx, rax                                                       ; +0xb4, 0x140231794\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xb7, 0x140231797\ncmp     eax, 1                                                         ; +0xbd, 0x14023179d\njb      short loc_1402317BC                                            ; +0xc0, 0x1402317a0\nxor     edx, edx                                                       ; +0xc2, 0x1402317a2\nmov     rcx, rdi                                                       ; +0xc4, 0x1402317a4\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xc7, 0x1402317a7\nmov     rcx, rax                                                       ; +0xcd, 0x1402317ad\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xd0, 0x1402317b0\nmov     [rbx+3DCh], eax                                                ; +0xd6, 0x1402317b6\nmov     rcx, rdi                                                       ; +0xdc, 0x1402317bc\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdf, 0x1402317bf\ncmp     eax, ebp                                                       ; +0xe5, 0x1402317c5\njb      short loc_1402317E6                                            ; +0xe7, 0x1402317c7\nmov     edx, 1                                                         ; +0xe9, 0x1402317c9\nmov     rcx, rdi                                                       ; +0xee, 0x1402317ce\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xf1, 0x1402317d1\nmov     rcx, rax                                                       ; +0xf7, 0x1402317d7\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xfa, 0x1402317da\nmov     [rbx+3E0h], eax                                                ; +0x100, 0x1402317e0\nmov     rcx, rdi                                                       ; +0x106, 0x1402317e6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x109, 0x1402317e9\ncmp     eax, 3                                                         ; +0x10f, 0x1402317ef\njb      short loc_14023180E                                            ; +0x112, 0x1402317f2\nmov     edx, ebp                                                       ; +0x114, 0x1402317f4\nmov     rcx, rdi                                                       ; +0x116, 0x1402317f6\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x119, 0x1402317f9\nmov     rcx, rax                                                       ; +0x11f, 0x1402317ff\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x122, 0x140231802\nmov     [rbx+3E4h], eax                                                ; +0x128, 0x140231808\nmov     rcx, rdi                                                       ; +0x12e, 0x14023180e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x131, 0x140231811\ncmp     eax, 4                                                         ; +0x137, 0x140231817\njb      short loc_140231839                                            ; +0x13a, 0x14023181a\nmov     edx, 3                                                         ; +0x13c, 0x14023181c\nmov     rcx, rdi                                                       ; +0x141, 0x140231821\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x144, 0x140231824\nmov     rcx, rax                                                       ; +0x14a, 0x14023182a\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x14d, 0x14023182d\nmov     [rbx+3E8h], eax                                                ; +0x153, 0x140231833\nmov     rcx, rdi                                                       ; +0x159, 0x140231839\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x15c, 0x14023183c\ncmp     eax, 5                                                         ; +0x162, 0x140231842\njb      short loc_140231864                                            ; +0x165, 0x140231845\nmov     edx, 4                                                         ; +0x167, 0x140231847\nmov     rcx, rdi                                                       ; +0x16c, 0x14023184c\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x16f, 0x14023184f\nmov     rcx, rax                                                       ; +0x175, 0x140231855\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x178, 0x140231858\nmov     [rbx+3ECh], eax                                                ; +0x17e, 0x14023185e\ncmp     byte ptr [rbx+404h], 0                                         ; +0x184, 0x140231864\njnz     short loc_1402318B2                                            ; +0x18b, 0x14023186b\nmov     rcx, rdi                                                       ; +0x18d, 0x14023186d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x190, 0x140231870\ncmp     eax, 4                                                         ; +0x196, 0x140231876\njb      short loc_1402318B2                                            ; +0x199, 0x140231879\nmov     eax, [rbx+3DCh]                                                ; +0x19b, 0x14023187b\nmov     [rbx+3F4h], eax                                                ; +0x1a1, 0x140231881\nmov     eax, [rbx+3E0h]                                                ; +0x1a7, 0x140231887\nmov     [rbx+3F8h], eax                                                ; +0x1ad, 0x14023188d\nmov     eax, [rbx+3E4h]                                                ; +0x1b3, 0x140231893\nmov     [rbx+3FCh], eax                                                ; +0x1b9, 0x140231899\nmov     eax, [rbx+3E8h]                                                ; +0x1bf, 0x14023189f\nmov     [rbx+400h], eax                                                ; +0x1c5, 0x1402318a5\nmov     byte ptr [rbx+404h], 1                                         ; +0x1cb, 0x1402318ab\nmov     rcx, [rbx+620h]                                                ; +0x1d2, 0x1402318b2\ntest    rcx, rcx                                                       ; +0x1d9, 0x1402318b9\njz      short loc_1402318C4                                            ; +0x1dc, 0x1402318bc\nmov     rax, [rcx]                                                     ; +0x1de, 0x1402318be\ncall    qword ptr [rax]                                                ; +0x1e1, 0x1402318c1\nnop                                                                    ; +0x1e3, 0x1402318c3\nmov     rcx, rsi                                                       ; +0x1e4, 0x1402318c4\ncall    sub_14003D310                                                  ; +0x1e7, 0x1402318c7\nnop                                                                    ; +0x1ec, 0x1402318cc\nmov     rcx, r14                                                       ; +0x1ed, 0x1402318cd\ncall    sub_14003D310                                                  ; +0x1f0, 0x1402318d0\nmov     rcx, [rsp+88h+var_38]                                          ; +0x1f5, 0x1402318d5\nxor     rcx, rsp; StackCookie                                          ; +0x1fa, 0x1402318da\ncall    __security_check_cookie                                        ; +0x1fd, 0x1402318dd\nadd     rsp, 60h                                                       ; +0x202, 0x1402318e2\npop     r14                                                            ; +0x206, 0x1402318e6\npop     rdi                                                            ; +0x208, 0x1402318e8\npop     rsi                                                            ; +0x209, 0x1402318e9\npop     rbp                                                            ; +0x20a, 0x1402318ea\npop     rbx                                                            ; +0x20b, 0x1402318eb\nretn                                                                   ; +0x20c, 0x1402318ec", "xrefs": ["GameLevelManager::handleIt @ 0x14021a5f9", "<???> @ 0x14091bf08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}