{"type": "func", "start": 5370231328, "end": 5370231892, "name": "DailyLevelNode::onSkipLevel", "pseudocode": "// \n// DailyLevelNode::onSkipLevel from 0x140173a20 to 0x140173c54 (564 bytes)\n// \n// 2 xrefs:\n// > DailyLevelNode::init @ 0x1401732f2\n// > <???> @ 0x1409183d4\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:27:32 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall DailyLevelNode::onSkipLevel(__int64 a1)\n{\n  int v1; // edx\n  int v2; // edx\n  __int64 v3; // xmm0_8\n  int v4; // ebx\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // r8\n  __int64 v8; // rax\n  cocos2d::CCObject *v9; // rbx\n  void *v10; // rcx\n  __int128 v11; // [rsp+58h] [rbp-21h] BYREF\n  __int64 v12; // [rsp+68h] [rbp-11h]\n  __int64 v13; // [rsp+70h] [rbp-9h]\n  _BYTE v14[32]; // [rsp+80h] [rbp+7h] BYREF\n  void *Block[2]; // [rsp+A0h] [rbp+27h] BYREF\n  __int64 v16; // [rsp+B0h] [rbp+37h]\n  unsigned __int64 v17; // [rsp+B8h] [rbp+3Fh]\n\n  if ( *(_BYTE *)(a1 + 368) )\n    return;\n  *(_OWORD *)Block = 0;\n  v16 = 0;\n  v17 = 15;\n  LOBYTE(Block[0]) = 0;\n  v1 = *(_DWORD *)(*(_QWORD *)(a1 + 336) + 732LL);\n  if ( !v1 )\n  {\n    v3 = 0x656C20796C696164LL;\n    LOWORD(Block[1]) = 25974;\n    goto LABEL_9;\n  }\n  v2 = v1 - 1;\n  if ( !v2 )\n  {\n    v16 = 12;\n    v3 = 0x6420796C6B656577LL;\n    strcpy((char *)&Block[1], \"emon\");\nLABEL_10:\n    Block[0] = (void *)v3;\n    goto LABEL_11;\n  }\n  if ( v2 == 1 )\n  {\n    v3 = 0x656C20746E657665LL;\n    LOWORD(Block[1]) = 25974;\nLABEL_9:\n    WORD1(Block[1]) = 108;\n    v16 = 11;\n    goto LABEL_10;\n  }\n  v16 = 2;\n  strcpy((char *)Block, \"NA\");\nLABEL_11:\n  v4 = a1 + 320;\n  if ( !a1 )\n    v4 = 0;\n  v5 = cocos2d::CCString::createWithFormat(\n         \"There is a <cy>new</c> %s available.\\nSkip the current level and load the next?\",\n         (const char *)Block);\n  CString = cocos2d::CCString::getCString(v5);\n  v11 = 0;\n  v12 = 0;\n  v13 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( CString[v7] );\n  sub_14003D230(&v11, CString, v7);\n  v8 = sub_14003F4F0((__int64)v14, (__int64)&v11);\n  v9 = FLAlertLayer::create(v4, (int)\"Skip level\", v8, (__int64)\"Cancel\", (__int64)\"Skip\", 1134886912, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v11);\n  (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);\n  if ( v17 > 0xF )\n  {\n    v10 = Block[0];\n    if ( v17 + 1 >= 0x1000 )\n    {\n      v10 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v10);\n  }\n}", "assembly": "; \n; DailyLevelNode::onSkipLevel from 0x140173a20 to 0x140173c54 (564 bytes)\n; \n; 2 xrefs:\n; > DailyLevelNode::init @ 0x1401732f2\n; > <???> @ 0x1409183d4\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:27:32 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140173a20\nmov     [rsp-8+arg_10], rdi                                            ; +0x5, 0x140173a25\npush    rbp                                                            ; +0xa, 0x140173a2a\nlea     rbp, [rsp-57h]                                                 ; +0xb, 0x140173a2b\nsub     rsp, 0D0h                                                      ; +0x10, 0x140173a30\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x140173a37\nxor     rax, rsp                                                       ; +0x1e, 0x140173a3e\nmov     [rbp+57h+var_10], rax                                          ; +0x21, 0x140173a41\nmov     r8, rcx                                                        ; +0x25, 0x140173a45\ncmp     byte ptr [rcx+170h], 0                                         ; +0x28, 0x140173a48\njnz     loc_140173C33                                                  ; +0x2f, 0x140173a4f\nxorps   xmm0, xmm0                                                     ; +0x35, 0x140173a55\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x38, 0x140173a58\nxor     edi, edi                                                       ; +0x3c, 0x140173a5c\nmov     [rbp+57h+var_20], rdi                                          ; +0x3e, 0x140173a5e\nmov     r9d, 0Fh                                                       ; +0x42, 0x140173a62\nmov     [rbp+57h+var_18], r9                                           ; +0x48, 0x140173a68\nmov     byte ptr [rbp+57h+Block], dil                                  ; +0x4c, 0x140173a6c\nmov     rcx, [rcx+150h]                                                ; +0x50, 0x140173a70\nmov     edx, [rcx+2DCh]                                                ; +0x57, 0x140173a77\ntest    edx, edx                                                       ; +0x5d, 0x140173a7d\njz      short loc_140173ADD                                            ; +0x5f, 0x140173a7f\nsub     edx, 1                                                         ; +0x61, 0x140173a81\njz      short loc_140173ABE                                            ; +0x64, 0x140173a84\ncmp     edx, 1                                                         ; +0x66, 0x140173a86\njz      short loc_140173AA2                                            ; +0x69, 0x140173a89\nmov     [rbp+57h+var_20], 2                                            ; +0x6b, 0x140173a8b\nmov     eax, 414Eh                                                     ; +0x73, 0x140173a93\nmov     word ptr [rbp+57h+Block], ax                                   ; +0x78, 0x140173a98\nmov     byte ptr [rbp+57h+Block+2], dil                                ; +0x7c, 0x140173a9c\njmp     short loc_140173B0B                                            ; +0x80, 0x140173aa0\nmovsd   xmm0, cs:qword_1407453C8                                       ; +0x82, 0x140173aa2\nmovzx   eax, cs:word_1407453D0                                         ; +0x8a, 0x140173aaa\nmov     word ptr [rbp+57h+Block+8], ax                                 ; +0x91, 0x140173ab1\nmovzx   eax, cs:byte_1407453D2                                         ; +0x95, 0x140173ab5\njmp     short loc_140173AF7                                            ; +0x9c, 0x140173abc\nmov     [rbp+57h+var_20], 0Ch                                          ; +0x9e, 0x140173abe\nmovsd   xmm0, cs:qword_1407453B8                                       ; +0xa6, 0x140173ac6\nmov     eax, cs:dword_1407453C0                                        ; +0xae, 0x140173ace\nmov     dword ptr [rbp+57h+Block+8], eax                               ; +0xb4, 0x140173ad4\nmov     byte ptr [rbp+57h+Block+0Ch], 0                                ; +0xb7, 0x140173ad7\njmp     short loc_140173B06                                            ; +0xbb, 0x140173adb\nmovsd   xmm0, cs:qword_1407453A0                                       ; +0xbd, 0x140173add\nmovzx   eax, cs:word_1407453A8                                         ; +0xc5, 0x140173ae5\nmov     word ptr [rbp+57h+Block+8], ax                                 ; +0xcc, 0x140173aec\nmovzx   eax, cs:byte_1407453AA                                         ; +0xd0, 0x140173af0\nmov     byte ptr [rbp+57h+Block+0Bh], 0                                ; +0xd7, 0x140173af7\nmov     byte ptr [rbp+57h+Block+0Ah], al                               ; +0xdb, 0x140173afb\nmov     [rbp+57h+var_20], 0Bh                                          ; +0xde, 0x140173afe\nmovsd   [rbp+57h+Block], xmm0                                          ; +0xe6, 0x140173b06\nlea     rbx, [r8+140h]                                                 ; +0xeb, 0x140173b0b\ntest    r8, r8                                                         ; +0xf2, 0x140173b12\ncmovz   rbx, rdi                                                       ; +0xf5, 0x140173b15\nlea     rdx, [rbp+57h+Block]                                           ; +0xf9, 0x140173b19\nlea     rcx, aThereIsACyNewC; \"There is a <cy>new</c> %s available.\\nS\"... ; +0xfd, 0x140173b1d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x104, 0x140173b24\nmov     rcx, rax                                                       ; +0x10a, 0x140173b2a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x10d, 0x140173b2d\nxorps   xmm0, xmm0                                                     ; +0x113, 0x140173b33\nmovups  [rbp+57h+var_78], xmm0                                         ; +0x116, 0x140173b36\nmov     [rbp+57h+var_68], rdi                                          ; +0x11a, 0x140173b3a\nmov     [rbp+57h+var_60], rdi                                          ; +0x11e, 0x140173b3e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x122, 0x140173b42\nnop     dword ptr [rax+00000000h]                                      ; +0x129, 0x140173b49\ninc     r8                                                             ; +0x130, 0x140173b50\ncmp     byte ptr [rax+r8], 0                                           ; +0x133, 0x140173b53\njnz     short loc_140173B50                                            ; +0x138, 0x140173b58\nmov     rdx, rax                                                       ; +0x13a, 0x140173b5a\nlea     rcx, [rbp+57h+var_78]                                          ; +0x13d, 0x140173b5d\ncall    sub_14003D230                                                  ; +0x141, 0x140173b61\nlea     rax, [rbp+57h+var_78]                                          ; +0x146, 0x140173b66\nmov     [rbp+57h+var_80], rax                                          ; +0x14a, 0x140173b6a\nlea     rdx, [rbp+57h+var_78]                                          ; +0x14e, 0x140173b6e\nlea     rcx, [rbp+57h+var_50]                                          ; +0x152, 0x140173b72\ncall    sub_14003F4F0                                                  ; +0x156, 0x140173b76\nmovss   xmm0, cs:flt_140835080                                         ; +0x15b, 0x140173b7b\nmovss   [rsp+0D0h+var_90], xmm0                                        ; +0x163, 0x140173b83\nxorps   xmm1, xmm1                                                     ; +0x169, 0x140173b89\nmovss   [rsp+0D0h+var_98], xmm1                                        ; +0x16c, 0x140173b8c\nmov     [rsp+0D0h+var_A0], 0                                           ; +0x172, 0x140173b92\nmovss   xmm0, cs:dword_1408359CC                                       ; +0x177, 0x140173b97\nmovss   [rsp+0D0h+var_A8], xmm0                                        ; +0x17f, 0x140173b9f\nlea     rcx, aSkip; \"Skip\"                                             ; +0x185, 0x140173ba5\nmov     [rsp+0D0h+Reserved], rcx                                       ; +0x18c, 0x140173bac\nlea     r9, aCancel; \"Cancel\"                                          ; +0x191, 0x140173bb1\nmov     r8, rax                                                        ; +0x198, 0x140173bb8\nlea     rdx, aSkipLevel; \"Skip level\"                                  ; +0x19b, 0x140173bbb\nmov     rcx, rbx                                                       ; +0x1a2, 0x140173bc2\ncall    FLAlertLayer__create                                           ; +0x1a5, 0x140173bc5\nmov     rbx, rax                                                       ; +0x1aa, 0x140173bca\nlea     rcx, [rbp+57h+var_78]                                          ; +0x1ad, 0x140173bcd\ncall    sub_14003D310                                                  ; +0x1b1, 0x140173bd1\nmov     rcx, [rbx]                                                     ; +0x1b6, 0x140173bd6\nmov     rdx, [rcx+428h]                                                ; +0x1b9, 0x140173bd9\nmov     rcx, rbx                                                       ; +0x1c0, 0x140173be0\ncall    rdx                                                            ; +0x1c3, 0x140173be3\nnop                                                                    ; +0x1c5, 0x140173be5\nmov     rdx, [rbp+57h+var_18]                                          ; +0x1c6, 0x140173be6\ncmp     rdx, 0Fh                                                       ; +0x1ca, 0x140173bea\njbe     short loc_140173C33                                            ; +0x1ce, 0x140173bee\ninc     rdx                                                            ; +0x1d0, 0x140173bf0\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x1d3, 0x140173bf3\nmov     rax, rcx                                                       ; +0x1d7, 0x140173bf7\ncmp     rdx, 1000h                                                     ; +0x1da, 0x140173bfa\njb      short loc_140173C2E                                            ; +0x1e1, 0x140173c01\nadd     rdx, 27h ; '''                                                 ; +0x1e3, 0x140173c03\nmov     rcx, [rcx-8]                                                   ; +0x1e7, 0x140173c07\nsub     rax, rcx                                                       ; +0x1eb, 0x140173c0b\nsub     rax, 8                                                         ; +0x1ee, 0x140173c0e\ncmp     rax, 1Fh                                                       ; +0x1f2, 0x140173c12\njbe     short loc_140173C2E                                            ; +0x1f6, 0x140173c16\nmov     [rsp+0D0h+Reserved], rdi; Reserved                             ; +0x1f8, 0x140173c18\nxor     r9d, r9d; LineNo                                               ; +0x1fd, 0x140173c1d\nxor     r8d, r8d; FileName                                             ; +0x200, 0x140173c20\nxor     edx, edx; FunctionName                                         ; +0x203, 0x140173c23\nxor     ecx, ecx; Expression                                           ; +0x205, 0x140173c25\ncall    cs:_invoke_watson                                              ; +0x207, 0x140173c27\nalign 2                                                                ; +0x20d, 0x140173c2d\ncall    j_j_free                                                       ; +0x20e, 0x140173c2e\nmov     rcx, [rbp+57h+var_10]                                          ; +0x213, 0x140173c33\nxor     rcx, rsp; StackCookie                                          ; +0x217, 0x140173c37\ncall    __security_check_cookie                                        ; +0x21a, 0x140173c3a\nlea     r11, [rsp+0D0h+var_s0]                                         ; +0x21f, 0x140173c3f\nmov     rbx, [r11+18h]                                                 ; +0x227, 0x140173c47\nmov     rdi, [r11+20h]                                                 ; +0x22b, 0x140173c4b\nmov     rsp, r11                                                       ; +0x22f, 0x140173c4f\npop     rbp                                                            ; +0x232, 0x140173c52\nretn                                                                   ; +0x233, 0x140173c53", "xrefs": ["DailyLevelNode::init @ 0x1401732f2", "<???> @ 0x1409183d4"], "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"}