{"type": "func", "start": 5370987152, "end": 5370988268, "name": "GameLevelManager::onGetLevelSaveDataCompleted", "pseudocode": "// \n// GameLevelManager::onGetLevelSaveDataCompleted from 0x14022c290 to 0x14022c6ec (1116 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a421\n// > <???> @ 0x14091bdf4\n// > <???> @ 0x14091be00\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:28 +0000\n// \n\n// Hidden C++ exception states: #wind=6\nvoid __fastcall GameLevelManager::onGetLevelSaveDataCompleted(__int64 a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rdx\n  const void *v7; // rcx\n  unsigned __int64 v8; // rbp\n  size_t v9; // r8\n  __int64 v10; // rcx\n  int v11; // edi\n  __int64 v12; // r8\n  unsigned __int64 v13; // rbx\n  const void **v14; // rax\n  unsigned __int64 v15; // r9\n  unsigned __int64 v16; // rdx\n  __int64 v17; // r8\n  size_t v18; // r8\n  const void **v19; // rdx\n  cocos2d::CCArray *v20; // r15\n  unsigned int v21; // esi\n  cocos2d::CCString *v22; // rax\n  cocos2d::CCString *v23; // rax\n  int v24; // ebp\n  __int64 SavedLevel; // rax\n  __int64 v26; // rdi\n  int v27; // ecx\n  BOOL v28; // ebx\n  float v29; // xmm0_4\n  __int64 v30; // rcx\n  __int64 v31; // rcx\n  __int64 v32; // rcx\n  int v33; // eax\n  int v34; // eax\n  float v35; // xmm0_4\n  void *v36; // [rsp+30h] [rbp-E8h]\n  __int128 Buf2; // [rsp+38h] [rbp-E0h] BYREF\n  __int64 v38; // [rsp+48h] [rbp-D0h]\n  __int64 v39; // [rsp+50h] [rbp-C8h]\n  void *v40; // [rsp+58h] [rbp-C0h]\n  const void **v41; // [rsp+60h] [rbp-B8h]\n  _QWORD *v42; // [rsp+68h] [rbp-B0h]\n  __int128 v43; // [rsp+70h] [rbp-A8h] BYREF\n  __int64 v44; // [rsp+80h] [rbp-98h]\n  __int64 v45; // [rsp+88h] [rbp-90h]\n  __int64 v46[4]; // [rsp+90h] [rbp-88h] BYREF\n\n  v41 = a2;\n  v42 = a3;\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  GameLevelManager::removeDLFromActive(a1, v6);\n  Buf2 = 0;\n  v38 = 2;\n  v39 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v7 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v7 = *a2;\n  v8 = (unsigned __int64)a2[2];\n  v9 = v8;\n  if ( v8 > 2 )\n    v9 = 2;\n  v11 = memcmp(v7, &Buf2, v9);\n  v13 = -1;\n  if ( !v11 )\n  {\n    if ( v8 >= 2 )\n      v11 = v8 > 2;\n    else\n      v11 = -1;\n  }\n  if ( v11 )\n  {\n    v14 = a2;\n    v15 = (unsigned __int64)a2[3];\n    if ( v15 > 0xF )\n      v14 = (const void **)*a2;\n    do\n      ++v13;\n    while ( *((_BYTE *)v14 + v13) );\n    if ( v13 > 0x28 )\n    {\n      v16 = v8 - 40;\n      v43 = 0;\n      v44 = 0;\n      v45 = 0;\n      if ( v8 < 0x14 )\n        sub_14003F4D0(v10, v16, v12, v15);\n      v17 = -40;\n      if ( v8 - 20 < v16 )\n        v17 = -20;\n      v18 = v8 + v17;\n      v19 = a2;\n      if ( v15 > 0xF )\n        v19 = (const void **)*a2;\n      sub_14003D230(&v43, (char *)v19 + 20, v18);\n      cocos2d::ZipUtils::decompressString(v46, &v43, 0, 11);\n      v20 = sub_1400D2840(v46, byte_14070ECF8);\n      if ( cocos2d::CCArray::count(v20) > 1 )\n      {\n        v21 = 1;\n        do\n        {\n          v22 = cocos2d::CCArray::stringAtIndex(v20, v21 - 1);\n          cocos2d::CCString::intValue(v22);\n          v23 = cocos2d::CCArray::stringAtIndex(v20, v21);\n          v24 = cocos2d::CCString::intValue(v23);\n          if ( (unsigned int)(v24 - 1) <= 9 )\n          {\n            SavedLevel = GameLevelManager::getSavedLevel(a1);\n            v26 = SavedLevel;\n            if ( SavedLevel )\n            {\n              *(_DWORD *)(SavedLevel + 1028) = v24;\n              v27 = (int)(float)((float)((float)rand() / 32767.0) * 1000.0);\n              *(_DWORD *)(v26 + 1024) = v27;\n              *(_DWORD *)(v26 + 1020) = v27 + v24;\n              v28 = v24 == 10;\n              *(_DWORD *)(v26 + 1012) = v28;\n              v29 = (float)((float)rand() / 32767.0) * 1000.0;\n              *(_DWORD *)(v26 + 1008) = (int)v29;\n              *(_DWORD *)(v26 + 1004) = v28 + (int)v29;\n              v30 = qword_14090BFE0;\n              if ( !qword_14090BFE0 )\n              {\n                v36 = operator new(0x3E8u);\n                qword_14090BFE0 = sub_1402D6480(v36);\n                (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n                v30 = qword_14090BFE0;\n              }\n              if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v30, v26)\n                && *(_DWORD *)(v26 + 1020) - *(_DWORD *)(v26 + 1024) >= 8\n                && *(_DWORD *)(v26 + 880) - *(_DWORD *)(v26 + 884) < 50\n                && *(_DWORD *)(v26 + 892) - *(_DWORD *)(v26 + 896) < 50 )\n              {\n                v32 = qword_14090BFE0;\n                if ( !qword_14090BFE0 )\n                {\n                  v40 = operator new(0x3E8u);\n                  qword_14090BFE0 = sub_1402D6480(v40);\n                  (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n                  v32 = qword_14090BFE0;\n                }\n                GameStatsManager::uncompleteLevel(v32, v26);\n                *(_DWORD *)(v26 + 924) = 0;\n                v33 = (int)(float)((float)((float)rand() / 32767.0) * 1000.0);\n                *(_DWORD *)(v26 + 928) = v33;\n                *(_DWORD *)(v26 + 932) = v33;\n                *(_DWORD *)(v26 + 944) = 0;\n                v34 = (int)(float)((float)((float)rand() / 32767.0) * 1000.0);\n                *(_DWORD *)(v26 + 940) = v34;\n                *(_DWORD *)(v26 + 936) = v34;\n                *(_DWORD *)(v26 + 956) = 0;\n                v35 = (float)((float)rand() / 32767.0) * 1000.0;\n                *(_DWORD *)(v26 + 952) = (int)v35;\n                *(_DWORD *)(v26 + 948) = (int)v35;\n                *(_DWORD *)(v26 + 1416) = 0;\n                *(_DWORD *)(v26 + 1464) = 0;\n                *(_BYTE *)(v26 + 921) = 1;\n              }\n              GameLevelManager::updateLevelRewards(v31, (_DWORD *)v26);\n            }\n          }\n          v21 += 2;\n        }\n        while ( v21 < cocos2d::CCArray::count(v20) );\n      }\n      sub_14003D310((__int64)v46);\n      sub_14003D310((__int64)&v43);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onGetLevelSaveDataCompleted from 0x14022c290 to 0x14022c6ec (1116 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a421\n; > <???> @ 0x14091bdf4\n; > <???> @ 0x14091be00\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:28 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14022c290\nmov     [rax+20h], rbx                                                 ; +0x3, 0x14022c293\npush    rbp                                                            ; +0x7, 0x14022c297\npush    rsi                                                            ; +0x8, 0x14022c298\npush    rdi                                                            ; +0x9, 0x14022c299\npush    r12                                                            ; +0xa, 0x14022c29a\npush    r13                                                            ; +0xc, 0x14022c29c\npush    r14                                                            ; +0xe, 0x14022c29e\npush    r15                                                            ; +0x10, 0x14022c2a0\nsub     rsp, 0E0h                                                      ; +0x12, 0x14022c2a2\nmovaps  xmmword ptr [rax-48h], xmm6                                    ; +0x19, 0x14022c2a9\nmovaps  xmmword ptr [rax-58h], xmm7                                    ; +0x1d, 0x14022c2ad\nmov     rax, cs:__security_cookie                                      ; +0x21, 0x14022c2b1\nxor     rax, rsp                                                       ; +0x28, 0x14022c2b8\nmov     [rsp+118h+var_68], rax                                         ; +0x2b, 0x14022c2bb\nmov     r12, r8                                                        ; +0x33, 0x14022c2c3\nmov     r14, rdx                                                       ; +0x36, 0x14022c2c6\nmov     r13, rcx                                                       ; +0x39, 0x14022c2c9\nmov     [rsp+118h+var_B8], rdx                                         ; +0x3c, 0x14022c2cc\nmov     [rsp+118h+var_B0], r8                                          ; +0x41, 0x14022c2d1\nxor     r15d, r15d                                                     ; +0x46, 0x14022c2d6\nmov     rdx, r8                                                        ; +0x49, 0x14022c2d9\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x4c, 0x14022c2dc\njbe     short loc_14022C2E6                                            ; +0x51, 0x14022c2e1\nmov     rdx, [r8]                                                      ; +0x53, 0x14022c2e3\ncall    GameLevelManager__removeDLFromActive                           ; +0x56, 0x14022c2e6\nxorps   xmm0, xmm0                                                     ; +0x5b, 0x14022c2eb\nmovups  [rsp+118h+Buf2], xmm0                                          ; +0x5e, 0x14022c2ee\nmov     r9d, 2                                                         ; +0x63, 0x14022c2f3\nmov     [rsp+118h+var_D0], r9                                          ; +0x69, 0x14022c2f9\nmov     ecx, 0Fh                                                       ; +0x6e, 0x14022c2fe\nmov     [rsp+118h+var_C8], rcx                                         ; +0x73, 0x14022c303\nmovzx   eax, word ptr cs:a1; \"-1\"                                      ; +0x78, 0x14022c308\nmov     word ptr [rsp+118h+Buf2], ax                                   ; +0x7f, 0x14022c30f\nmov     byte ptr [rsp+118h+Buf2+2], 0                                  ; +0x84, 0x14022c314\nlea     rdx, [rsp+118h+Buf2]; Buf2                                     ; +0x89, 0x14022c319\nmov     rcx, r14                                                       ; +0x8e, 0x14022c31e\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x91, 0x14022c321\njbe     short loc_14022C32B                                            ; +0x96, 0x14022c326\nmov     rcx, [r14]; Buf1                                               ; +0x98, 0x14022c328\nmov     rbp, [r14+10h]                                                 ; +0x9b, 0x14022c32b\nmov     r8, rbp                                                        ; +0x9f, 0x14022c32f\ncmp     r9, rbp                                                        ; +0xa2, 0x14022c332\ncmovb   r8, r9; Size                                                   ; +0xa5, 0x14022c335\ncall    memcmp                                                         ; +0xa9, 0x14022c339\nmov     edi, eax                                                       ; +0xae, 0x14022c33e\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xb0, 0x14022c340\ntest    eax, eax                                                       ; +0xb7, 0x14022c347\njnz     short loc_14022C35C                                            ; +0xb9, 0x14022c349\ncmp     rbp, 2                                                         ; +0xbb, 0x14022c34b\njnb     short loc_14022C355                                            ; +0xbf, 0x14022c34f\nmov     edi, ebx                                                       ; +0xc1, 0x14022c351\njmp     short loc_14022C35C                                            ; +0xc3, 0x14022c353\nmov     edi, r15d                                                      ; +0xc5, 0x14022c355\nsetnbe  dil                                                            ; +0xc8, 0x14022c358\nmov     edx, 0Fh                                                       ; +0xcc, 0x14022c35c\ntest    edi, edi                                                       ; +0xd1, 0x14022c361\njz      loc_14022C6A0                                                  ; +0xd3, 0x14022c363\nmov     rax, r14                                                       ; +0xd9, 0x14022c369\nmov     r9, [r14+18h]                                                  ; +0xdc, 0x14022c36c\ncmp     r9, rdx                                                        ; +0xe0, 0x14022c370\njbe     short loc_14022C380                                            ; +0xe3, 0x14022c373\nmov     rax, [r14]                                                     ; +0xe5, 0x14022c375\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xe8, 0x14022c378\ninc     rbx                                                            ; +0xf0, 0x14022c380\ncmp     byte ptr [rax+rbx], 0                                          ; +0xf3, 0x14022c383\njnz     short loc_14022C380                                            ; +0xf7, 0x14022c387\ncmp     rbx, 28h ; '('                                                 ; +0xf9, 0x14022c389\njbe     loc_14022C6A0                                                  ; +0xfd, 0x14022c38d\nlea     rdx, [rbp-28h]                                                 ; +0x103, 0x14022c393\nxorps   xmm0, xmm0                                                     ; +0x107, 0x14022c397\nmovups  [rsp+118h+var_A8], xmm0                                        ; +0x10a, 0x14022c39a\nmov     [rsp+118h+var_98], r15                                         ; +0x10f, 0x14022c39f\nmov     [rsp+118h+var_90], r15                                         ; +0x117, 0x14022c3a7\ncmp     rbp, 14h                                                       ; +0x11f, 0x14022c3af\njb      loc_14022C6E6                                                  ; +0x123, 0x14022c3b3\nlea     rax, [rbp-14h]                                                 ; +0x129, 0x14022c3b9\nmov     r8, 0FFFFFFFFFFFFFFD8h                                         ; +0x12d, 0x14022c3bd\nmov     r10, 0FFFFFFFFFFFFFFECh                                        ; +0x134, 0x14022c3c4\ncmp     rax, rdx                                                       ; +0x13b, 0x14022c3cb\ncmovb   r8, r10                                                        ; +0x13e, 0x14022c3ce\nadd     r8, rbp                                                        ; +0x142, 0x14022c3d2\nmov     rdx, r14                                                       ; +0x145, 0x14022c3d5\ncmp     r9, 0Fh                                                        ; +0x148, 0x14022c3d8\njbe     short loc_14022C3E1                                            ; +0x14c, 0x14022c3dc\nmov     rdx, [r14]                                                     ; +0x14e, 0x14022c3de\nadd     rdx, 14h                                                       ; +0x151, 0x14022c3e1\nlea     rcx, [rsp+118h+var_A8]                                         ; +0x155, 0x14022c3e5\ncall    sub_14003D230                                                  ; +0x15a, 0x14022c3ea\nnop                                                                    ; +0x15f, 0x14022c3ef\nmov     r9d, 0Bh                                                       ; +0x160, 0x14022c3f0\nxor     r8d, r8d                                                       ; +0x166, 0x14022c3f6\nlea     rdx, [rsp+118h+var_A8]                                         ; +0x169, 0x14022c3f9\nlea     rcx, [rsp+118h+var_88]                                         ; +0x16e, 0x14022c3fe\ncall    cs:?decompressString@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@_NH@Z; cocos2d::ZipUtils::decompressString(std::string const &,bool,int) ; +0x176, 0x14022c406\nnop                                                                    ; +0x17c, 0x14022c40c\nlea     rdx, byte_14070ECF8                                            ; +0x17d, 0x14022c40d\nlea     rcx, [rsp+118h+var_88]                                         ; +0x184, 0x14022c414\ncall    sub_1400D2840                                                  ; +0x18c, 0x14022c41c\nmov     r15, rax                                                       ; +0x191, 0x14022c421\nmov     rcx, rax                                                       ; +0x194, 0x14022c424\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x197, 0x14022c427\ncmp     eax, 1                                                         ; +0x19d, 0x14022c42d\njbe     loc_14022C687                                                  ; +0x1a0, 0x14022c430\nmov     esi, 1                                                         ; +0x1a6, 0x14022c436\nmovss   xmm6, cs:dword_140835BDC                                       ; +0x1ab, 0x14022c43b\nmovss   xmm7, cs:dword_140835AA4                                       ; +0x1b3, 0x14022c443\nnop     dword ptr [rax+rax+00h]                                        ; +0x1bb, 0x14022c44b\nlea     edx, [rsi-1]                                                   ; +0x1c0, 0x14022c450\nmov     rcx, r15                                                       ; +0x1c3, 0x14022c453\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x1c6, 0x14022c456\nmov     rcx, rax                                                       ; +0x1cc, 0x14022c45c\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1cf, 0x14022c45f\nmov     ebx, eax                                                       ; +0x1d5, 0x14022c465\nmov     edx, esi                                                       ; +0x1d7, 0x14022c467\nmov     rcx, r15                                                       ; +0x1d9, 0x14022c469\ncall    cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x1dc, 0x14022c46c\nmov     rcx, rax                                                       ; +0x1e2, 0x14022c472\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1e5, 0x14022c475\nmov     ebp, eax                                                       ; +0x1eb, 0x14022c47b\nlea     ecx, [rax-1]                                                   ; +0x1ed, 0x14022c47d\ncmp     ecx, 9                                                         ; +0x1f0, 0x14022c480\nja      loc_14022C673                                                  ; +0x1f3, 0x14022c483\nmov     edx, ebx                                                       ; +0x1f9, 0x14022c489\nmov     rcx, r13                                                       ; +0x1fb, 0x14022c48b\ncall    GameLevelManager__getSavedLevel                                ; +0x1fe, 0x14022c48e\nmov     rdi, rax                                                       ; +0x203, 0x14022c493\ntest    rax, rax                                                       ; +0x206, 0x14022c496\njz      loc_14022C673                                                  ; +0x209, 0x14022c499\nmov     [rax+404h], ebp                                                ; +0x20f, 0x14022c49f\ncall    cs:rand                                                        ; +0x215, 0x14022c4a5\nmovd    xmm0, eax                                                      ; +0x21b, 0x14022c4ab\ncvtdq2ps xmm0, xmm0                                                    ; +0x21f, 0x14022c4af\ndivss   xmm0, xmm6                                                     ; +0x222, 0x14022c4b2\nmulss   xmm0, xmm7                                                     ; +0x226, 0x14022c4b6\ncvttss2si ecx, xmm0                                                    ; +0x22a, 0x14022c4ba\nmov     [rdi+400h], ecx                                                ; +0x22e, 0x14022c4be\nlea     eax, [rcx+rbp]                                                 ; +0x234, 0x14022c4c4\nmov     [rdi+3FCh], eax                                                ; +0x237, 0x14022c4c7\nxor     ebx, ebx                                                       ; +0x23d, 0x14022c4cd\ncmp     ebp, 0Ah                                                       ; +0x23f, 0x14022c4cf\nsetz    bl                                                             ; +0x242, 0x14022c4d2\nmov     [rdi+3F4h], ebx                                                ; +0x245, 0x14022c4d5\ncall    cs:rand                                                        ; +0x24b, 0x14022c4db\nmovd    xmm0, eax                                                      ; +0x251, 0x14022c4e1\ncvtdq2ps xmm0, xmm0                                                    ; +0x255, 0x14022c4e5\ndivss   xmm0, xmm6                                                     ; +0x258, 0x14022c4e8\nmulss   xmm0, xmm7                                                     ; +0x25c, 0x14022c4ec\ncvttss2si eax, xmm0                                                    ; +0x260, 0x14022c4f0\nmov     [rdi+3F0h], eax                                                ; +0x264, 0x14022c4f4\nadd     eax, ebx                                                       ; +0x26a, 0x14022c4fa\nmov     [rdi+3ECh], eax                                                ; +0x26c, 0x14022c4fc\nmov     rcx, cs:qword_14090BFE0                                        ; +0x272, 0x14022c502\ntest    rcx, rcx                                                       ; +0x279, 0x14022c509\njnz     short loc_14022C540                                            ; +0x27c, 0x14022c50c\nmov     ecx, 3E8h; Size                                                ; +0x27e, 0x14022c50e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x283, 0x14022c513\nmov     [rsp+118h+var_E8], rax                                         ; +0x288, 0x14022c518\nmov     rcx, rax                                                       ; +0x28d, 0x14022c51d\ncall    sub_1402D6480                                                  ; +0x290, 0x14022c520\nnop                                                                    ; +0x295, 0x14022c525\nmov     cs:qword_14090BFE0, rax                                        ; +0x296, 0x14022c526\nmov     rcx, [rax]                                                     ; +0x29d, 0x14022c52d\nmov     rdx, [rcx+48h]                                                 ; +0x2a0, 0x14022c530\nmov     rcx, rax                                                       ; +0x2a4, 0x14022c534\ncall    rdx                                                            ; +0x2a7, 0x14022c537\nmov     rcx, cs:qword_14090BFE0                                        ; +0x2a9, 0x14022c539\nmov     rdx, rdi                                                       ; +0x2b0, 0x14022c540\ncall    GameStatsManager__hasCompletedLevel                            ; +0x2b3, 0x14022c543\ntest    al, al                                                         ; +0x2b8, 0x14022c548\njz      loc_14022C66B                                                  ; +0x2ba, 0x14022c54a\nmov     eax, [rdi+3FCh]                                                ; +0x2c0, 0x14022c550\nsub     eax, [rdi+400h]                                                ; +0x2c6, 0x14022c556\ncmp     eax, 8                                                         ; +0x2cc, 0x14022c55c\njl      loc_14022C66B                                                  ; +0x2cf, 0x14022c55f\nmov     eax, [rdi+370h]                                                ; +0x2d5, 0x14022c565\nsub     eax, [rdi+374h]                                                ; +0x2db, 0x14022c56b\ncmp     eax, 32h ; '2'                                                 ; +0x2e1, 0x14022c571\njge     loc_14022C66B                                                  ; +0x2e4, 0x14022c574\nmov     eax, [rdi+37Ch]                                                ; +0x2ea, 0x14022c57a\nsub     eax, [rdi+380h]                                                ; +0x2f0, 0x14022c580\ncmp     eax, 32h ; '2'                                                 ; +0x2f6, 0x14022c586\njge     loc_14022C66B                                                  ; +0x2f9, 0x14022c589\nmov     rcx, cs:qword_14090BFE0                                        ; +0x2ff, 0x14022c58f\ntest    rcx, rcx                                                       ; +0x306, 0x14022c596\njnz     short loc_14022C5CD                                            ; +0x309, 0x14022c599\nmov     ecx, 3E8h; Size                                                ; +0x30b, 0x14022c59b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x310, 0x14022c5a0\nmov     [rsp+118h+var_C0], rax                                         ; +0x315, 0x14022c5a5\nmov     rcx, rax                                                       ; +0x31a, 0x14022c5aa\ncall    sub_1402D6480                                                  ; +0x31d, 0x14022c5ad\nnop                                                                    ; +0x322, 0x14022c5b2\nmov     cs:qword_14090BFE0, rax                                        ; +0x323, 0x14022c5b3\nmov     rcx, [rax]                                                     ; +0x32a, 0x14022c5ba\nmov     rdx, [rcx+48h]                                                 ; +0x32d, 0x14022c5bd\nmov     rcx, rax                                                       ; +0x331, 0x14022c5c1\ncall    rdx                                                            ; +0x334, 0x14022c5c4\nmov     rcx, cs:qword_14090BFE0                                        ; +0x336, 0x14022c5c6\nmov     rdx, rdi                                                       ; +0x33d, 0x14022c5cd\ncall    GameStatsManager__uncompleteLevel                              ; +0x340, 0x14022c5d0\nxor     ebx, ebx                                                       ; +0x345, 0x14022c5d5\nmov     [rdi+39Ch], ebx                                                ; +0x347, 0x14022c5d7\ncall    cs:rand                                                        ; +0x34d, 0x14022c5dd\nmovd    xmm0, eax                                                      ; +0x353, 0x14022c5e3\ncvtdq2ps xmm0, xmm0                                                    ; +0x357, 0x14022c5e7\ndivss   xmm0, xmm6                                                     ; +0x35a, 0x14022c5ea\nmulss   xmm0, xmm7                                                     ; +0x35e, 0x14022c5ee\ncvttss2si eax, xmm0                                                    ; +0x362, 0x14022c5f2\nmov     [rdi+3A0h], eax                                                ; +0x366, 0x14022c5f6\nmov     [rdi+3A4h], eax                                                ; +0x36c, 0x14022c5fc\nmov     [rdi+3B0h], ebx                                                ; +0x372, 0x14022c602\ncall    cs:rand                                                        ; +0x378, 0x14022c608\nmovd    xmm0, eax                                                      ; +0x37e, 0x14022c60e\ncvtdq2ps xmm0, xmm0                                                    ; +0x382, 0x14022c612\ndivss   xmm0, xmm6                                                     ; +0x385, 0x14022c615\nmulss   xmm0, xmm7                                                     ; +0x389, 0x14022c619\ncvttss2si eax, xmm0                                                    ; +0x38d, 0x14022c61d\nmov     [rdi+3ACh], eax                                                ; +0x391, 0x14022c621\nmov     [rdi+3A8h], eax                                                ; +0x397, 0x14022c627\nmov     [rdi+3BCh], ebx                                                ; +0x39d, 0x14022c62d\ncall    cs:rand                                                        ; +0x3a3, 0x14022c633\nmovd    xmm0, eax                                                      ; +0x3a9, 0x14022c639\ncvtdq2ps xmm0, xmm0                                                    ; +0x3ad, 0x14022c63d\ndivss   xmm0, xmm6                                                     ; +0x3b0, 0x14022c640\nmulss   xmm0, xmm7                                                     ; +0x3b4, 0x14022c644\ncvttss2si eax, xmm0                                                    ; +0x3b8, 0x14022c648\nmov     [rdi+3B8h], eax                                                ; +0x3bc, 0x14022c64c\nmov     [rdi+3B4h], eax                                                ; +0x3c2, 0x14022c652\nmov     [rdi+588h], ebx                                                ; +0x3c8, 0x14022c658\nmov     [rdi+5B8h], ebx                                                ; +0x3ce, 0x14022c65e\nmov     byte ptr [rdi+399h], 1                                         ; +0x3d4, 0x14022c664\nmov     rdx, rdi                                                       ; +0x3db, 0x14022c66b\ncall    GameLevelManager__updateLevelRewards                           ; +0x3de, 0x14022c66e\nadd     esi, 2                                                         ; +0x3e3, 0x14022c673\nmov     rcx, r15                                                       ; +0x3e6, 0x14022c676\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e9, 0x14022c679\ncmp     esi, eax                                                       ; +0x3ef, 0x14022c67f\njb      loc_14022C450                                                  ; +0x3f1, 0x14022c681\nlea     rcx, [rsp+118h+var_88]                                         ; +0x3f7, 0x14022c687\ncall    sub_14003D310                                                  ; +0x3ff, 0x14022c68f\nnop                                                                    ; +0x404, 0x14022c694\nlea     rcx, [rsp+118h+var_A8]                                         ; +0x405, 0x14022c695\ncall    sub_14003D310                                                  ; +0x40a, 0x14022c69a\nnop                                                                    ; +0x40f, 0x14022c69f\nmov     rcx, r14                                                       ; +0x410, 0x14022c6a0\ncall    sub_14003D310                                                  ; +0x413, 0x14022c6a3\nnop                                                                    ; +0x418, 0x14022c6a8\nmov     rcx, r12                                                       ; +0x419, 0x14022c6a9\ncall    sub_14003D310                                                  ; +0x41c, 0x14022c6ac\nmov     rcx, [rsp+118h+var_68]                                         ; +0x421, 0x14022c6b1\nxor     rcx, rsp; StackCookie                                          ; +0x429, 0x14022c6b9\ncall    __security_check_cookie                                        ; +0x42c, 0x14022c6bc\nlea     r11, [rsp+118h+var_38]                                         ; +0x431, 0x14022c6c1\nmov     rbx, [r11+58h]                                                 ; +0x439, 0x14022c6c9\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x43d, 0x14022c6cd\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x442, 0x14022c6d2\nmov     rsp, r11                                                       ; +0x447, 0x14022c6d7\npop     r15                                                            ; +0x44a, 0x14022c6da\npop     r14                                                            ; +0x44c, 0x14022c6dc\npop     r13                                                            ; +0x44e, 0x14022c6de\npop     r12                                                            ; +0x450, 0x14022c6e0\npop     rdi                                                            ; +0x452, 0x14022c6e2\npop     rsi                                                            ; +0x453, 0x14022c6e3\npop     rbp                                                            ; +0x454, 0x14022c6e4\nretn                                                                   ; +0x455, 0x14022c6e5\ncall    sub_14003F4D0                                                  ; +0x456, 0x14022c6e6\nalign 4                                                                ; +0x45b, 0x14022c6eb", "xrefs": ["GameLevelManager::handleIt @ 0x14021a421", "<???> @ 0x14091bdf4", "<???> @ 0x14091be00"], "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"}