{"type": "func", "start": 5371217568, "end": 5371217798, "name": "GJGameLevel::getLastBuildPageForTab", "pseudocode": "// \n// GJGameLevel::getLastBuildPageForTab from 0x1402646a0 to 0x140264786 (230 bytes)\n// \n// 2 xrefs:\n// > EditorUI::setupCreateMenu @ 0x1401f077d\n// > <???> @ 0x14091c880\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:49 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJGameLevel::getLastBuildPageForTab(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // rax\n  size_t v4; // r8\n  cocos2d::CCString *v5; // rax\n  unsigned int v6; // ebx\n  void *v7; // r8\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-28h]\n\n  v2 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v2);\n  *(_OWORD *)Block = 0;\n  v10 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003D230(Block, CString, v4);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 320), Block);\n  v6 = cocos2d::CCString::intValue(v5);\n  if ( *((_QWORD *)&v10 + 1) > 0xFu )\n  {\n    v7 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n  return v6;\n}", "assembly": "; \n; GJGameLevel::getLastBuildPageForTab from 0x1402646a0 to 0x140264786 (230 bytes)\n; \n; 2 xrefs:\n; > EditorUI::setupCreateMenu @ 0x1401f077d\n; > <???> @ 0x14091c880\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:49 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402646a0\nsub     rsp, 60h                                                       ; +0x2, 0x1402646a2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402646a6\nxor     rax, rsp                                                       ; +0xd, 0x1402646ad\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402646b0\nmov     rbx, rcx                                                       ; +0x15, 0x1402646b5\nlea     rcx, word_1406ED6F8                                            ; +0x18, 0x1402646b8\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1f, 0x1402646bf\nmov     rcx, rax                                                       ; +0x25, 0x1402646c5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x28, 0x1402646c8\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x1402646ce\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x31, 0x1402646d1\nxorps   xmm1, xmm1                                                     ; +0x36, 0x1402646d6\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x39, 0x1402646d9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3f, 0x1402646df\ninc     r8                                                             ; +0x46, 0x1402646e6\ncmp     byte ptr [rax+r8], 0                                           ; +0x49, 0x1402646e9\njnz     short loc_1402646E6                                            ; +0x4e, 0x1402646ee\nmov     rdx, rax                                                       ; +0x50, 0x1402646f0\nlea     rcx, [rsp+68h+Block]                                           ; +0x53, 0x1402646f3\ncall    sub_14003D230                                                  ; +0x58, 0x1402646f8\nnop                                                                    ; +0x5d, 0x1402646fd\nlea     rdx, [rsp+68h+Block]                                           ; +0x5e, 0x1402646fe\nmov     rcx, [rbx+140h]                                                ; +0x63, 0x140264703\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x6a, 0x14026470a\nmov     rcx, rax                                                       ; +0x70, 0x140264710\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x73, 0x140264713\nmov     ebx, eax                                                       ; +0x79, 0x140264719\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x7b, 0x14026471b\ncmp     rdx, 0Fh                                                       ; +0x80, 0x140264720\njbe     short loc_140264771                                            ; +0x84, 0x140264724\ninc     rdx                                                            ; +0x86, 0x140264726\nmov     r8, [rsp+68h+Block]                                            ; +0x89, 0x140264729\nmov     rcx, r8                                                        ; +0x8e, 0x14026472e\ncmp     rdx, 1000h                                                     ; +0x91, 0x140264731\njb      short loc_140264769                                            ; +0x98, 0x140264738\nadd     rdx, 27h ; '''                                                 ; +0x9a, 0x14026473a\nmov     r8, [r8-8]                                                     ; +0x9e, 0x14026473e\nsub     rcx, r8                                                        ; +0xa2, 0x140264742\nsub     rcx, 8                                                         ; +0xa5, 0x140264745\ncmp     rcx, 1Fh                                                       ; +0xa9, 0x140264749\njbe     short loc_140264769                                            ; +0xad, 0x14026474d\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xaf, 0x14026474f\nxor     r9d, r9d; LineNo                                               ; +0xb8, 0x140264758\nxor     r8d, r8d; FileName                                             ; +0xbb, 0x14026475b\nxor     edx, edx; FunctionName                                         ; +0xbe, 0x14026475e\nxor     ecx, ecx; Expression                                           ; +0xc0, 0x140264760\ncall    cs:_invoke_watson                                              ; +0xc2, 0x140264762\ndb 0CCh                                                                ; +0xc8, 0x140264768\nmov     rcx, r8; Block                                                 ; +0xc9, 0x140264769\ncall    j_j_free                                                       ; +0xcc, 0x14026476c\nmov     eax, ebx                                                       ; +0xd1, 0x140264771\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd3, 0x140264773\nxor     rcx, rsp; StackCookie                                          ; +0xd8, 0x140264778\ncall    __security_check_cookie                                        ; +0xdb, 0x14026477b\nadd     rsp, 60h                                                       ; +0xe0, 0x140264780\npop     rbx                                                            ; +0xe4, 0x140264784\nretn                                                                   ; +0xe5, 0x140264785", "xrefs": ["EditorUI::setupCreateMenu @ 0x1401f077d", "<???> @ 0x14091c880"], "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"}