{"type": "func", "start": 5371325552, "end": 5371325788, "name": "GameManager::getIntGameVariable", "pseudocode": "// \n// GameManager::getIntGameVariable from 0x14027ec70 to 0x14027ed5c (236 bytes)\n// \n// 4 xrefs:\n// > EditorUI::setupCreateMenu @ 0x1401ca810\n// > EditorUI::setupCreateMenu @ 0x1401ca828\n// > GameManager::firstLoad @ 0x140284e9b\n// > <???> @ 0x14091cff4\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:59 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GameManager::getIntGameVariable(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  cocos2d::CCString *v4; // rax\n  unsigned int v5; // ebx\n  void *v6; // r8\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140836540);\n  LODWORD(Block[0]) = 6256231;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_140044D80(Block, a2, v3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 432), Block);\n  v5 = cocos2d::CCString::intValue(v4);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  return v5;\n}", "assembly": "; \n; GameManager::getIntGameVariable from 0x14027ec70 to 0x14027ed5c (236 bytes)\n; \n; 4 xrefs:\n; > EditorUI::setupCreateMenu @ 0x1401ca810\n; > EditorUI::setupCreateMenu @ 0x1401ca828\n; > GameManager::firstLoad @ 0x140284e9b\n; > <???> @ 0x14091cff4\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:59 +0000\n; \npush    rbx                                                            ; +0x0, 0x14027ec70\nsub     rsp, 60h                                                       ; +0x2, 0x14027ec72\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14027ec76\nxor     rax, rsp                                                       ; +0xd, 0x14027ec7d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x14027ec80\nmov     rbx, rcx                                                       ; +0x15, 0x14027ec85\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14027ec88\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x14027ec8b\nmovdqa  xmm1, cs:xmmword_140836540                                     ; +0x20, 0x14027ec90\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x28, 0x14027ec98\nmov     eax, cs:dword_140757618                                        ; +0x2e, 0x14027ec9e\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x34, 0x14027eca4\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x39, 0x14027eca9\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0x40, 0x14027ecb0\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0x44, 0x14027ecb4\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x49, 0x14027ecb9\ninc     r8; Size                                                       ; +0x50, 0x14027ecc0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x53, 0x14027ecc3\njnz     short loc_14027ECC0                                            ; +0x58, 0x14027ecc8\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0x5a, 0x14027ecca\ncall    sub_140044D80                                                  ; +0x5f, 0x14027eccf\nlea     rdx, [rsp+68h+Block]                                           ; +0x64, 0x14027ecd4\nmov     rcx, [rbx+1B0h]                                                ; +0x69, 0x14027ecd9\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 &) ; +0x70, 0x14027ece0\nmov     rcx, rax                                                       ; +0x76, 0x14027ece6\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x79, 0x14027ece9\nmov     ebx, eax                                                       ; +0x7f, 0x14027ecef\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x81, 0x14027ecf1\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14027ecf6\njbe     short loc_14027ED47                                            ; +0x8a, 0x14027ecfa\ninc     rdx                                                            ; +0x8c, 0x14027ecfc\nmov     r8, [rsp+68h+Block]                                            ; +0x8f, 0x14027ecff\nmov     rcx, r8                                                        ; +0x94, 0x14027ed04\ncmp     rdx, 1000h                                                     ; +0x97, 0x14027ed07\njb      short loc_14027ED3F                                            ; +0x9e, 0x14027ed0e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14027ed10\nmov     r8, [r8-8]                                                     ; +0xa4, 0x14027ed14\nsub     rcx, r8                                                        ; +0xa8, 0x14027ed18\nsub     rcx, 8                                                         ; +0xab, 0x14027ed1b\ncmp     rcx, 1Fh                                                       ; +0xaf, 0x14027ed1f\njbe     short loc_14027ED3F                                            ; +0xb3, 0x14027ed23\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb5, 0x14027ed25\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x14027ed2e\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x14027ed31\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x14027ed34\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x14027ed36\ncall    cs:_invoke_watson                                              ; +0xc8, 0x14027ed38\ndb 0CCh                                                                ; +0xce, 0x14027ed3e\nmov     rcx, r8; Block                                                 ; +0xcf, 0x14027ed3f\ncall    j_j_free                                                       ; +0xd2, 0x14027ed42\nmov     eax, ebx                                                       ; +0xd7, 0x14027ed47\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd9, 0x14027ed49\nxor     rcx, rsp; StackCookie                                          ; +0xde, 0x14027ed4e\ncall    __security_check_cookie                                        ; +0xe1, 0x14027ed51\nadd     rsp, 60h                                                       ; +0xe6, 0x14027ed56\npop     rbx                                                            ; +0xea, 0x14027ed5a\nretn                                                                   ; +0xeb, 0x14027ed5b", "xrefs": ["EditorUI::setupCreateMenu @ 0x1401ca810", "EditorUI::setupCreateMenu @ 0x1401ca828", "GameManager::firstLoad @ 0x140284e9b", "<???> @ 0x14091cff4"], "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"}