{"type": "func", "start": 5371325280, "end": 5371325546, "name": "GameManager::setIntGameVariable", "pseudocode": "// \n// GameManager::setIntGameVariable from 0x14027eb60 to 0x14027ec6a (266 bytes)\n// \n// 4 xrefs:\n// > EditorUI::setupCreateMenu @ 0x1401ca854\n// > EditorUI::setupCreateMenu @ 0x1401ca87d\n// > GameManager::firstLoad @ 0x140285881\n// > <???> @ 0x14091cfe8\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\nvoid __fastcall GameManager::setIntGameVariable(__int64 a1, _BYTE *a2, unsigned int a3)\n{\n  size_t v5; // r8\n  __int64 v6; // rbx\n  struct cocos2d::CCString *v7; // rax\n  void *v8; // rcx\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  v5 = -1;\n  do\n    ++v5;\n  while ( a2[v5] );\n  sub_140044D80(Block, a2, v5);\n  v6 = *(_QWORD *)(a1 + 432);\n  v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a3);\n  cocos2d::CCDictionary::setObject(v6, v7, Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n}", "assembly": "; \n; GameManager::setIntGameVariable from 0x14027eb60 to 0x14027ec6a (266 bytes)\n; \n; 4 xrefs:\n; > EditorUI::setupCreateMenu @ 0x1401ca854\n; > EditorUI::setupCreateMenu @ 0x1401ca87d\n; > GameManager::firstLoad @ 0x140285881\n; > <???> @ 0x14091cfe8\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; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14027eb60\npush    rdi                                                            ; +0x5, 0x14027eb65\nsub     rsp, 60h                                                       ; +0x6, 0x14027eb66\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14027eb6a\nxor     rax, rsp                                                       ; +0x11, 0x14027eb71\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14027eb74\nmov     edi, r8d                                                       ; +0x19, 0x14027eb79\nmov     rbx, rcx                                                       ; +0x1c, 0x14027eb7c\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x14027eb7f\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x22, 0x14027eb82\nmovdqa  xmm1, cs:xmmword_140836540                                     ; +0x27, 0x14027eb87\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x2f, 0x14027eb8f\nmov     eax, cs:dword_140757618                                        ; +0x35, 0x14027eb95\nmov     word ptr [rsp+68h+Block], ax                                   ; +0x3b, 0x14027eb9b\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x40, 0x14027eba0\nmov     byte ptr [rsp+68h+Block+2], al                                 ; +0x47, 0x14027eba7\nmov     byte ptr [rsp+68h+Block+3], 0                                  ; +0x4b, 0x14027ebab\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x50, 0x14027ebb0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x14027ebb7\ninc     r8; Size                                                       ; +0x60, 0x14027ebc0\ncmp     byte ptr [rdx+r8], 0                                           ; +0x63, 0x14027ebc3\njnz     short loc_14027EBC0                                            ; +0x68, 0x14027ebc8\nlea     rcx, [rsp+68h+Block]; Src                                      ; +0x6a, 0x14027ebca\ncall    sub_140044D80                                                  ; +0x6f, 0x14027ebcf\nmov     rbx, [rbx+1B0h]                                                ; +0x74, 0x14027ebd4\nmov     edx, edi                                                       ; +0x7b, 0x14027ebdb\nlea     rcx, word_1406ED6F8                                            ; +0x7d, 0x14027ebdd\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x84, 0x14027ebe4\nmov     rdx, rax                                                       ; +0x8a, 0x14027ebea\nlea     r8, [rsp+68h+Block]                                            ; +0x8d, 0x14027ebed\nmov     rcx, rbx                                                       ; +0x92, 0x14027ebf2\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x95, 0x14027ebf5\nnop                                                                    ; +0x9b, 0x14027ebfb\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x9c, 0x14027ebfc\ncmp     rdx, 0Fh                                                       ; +0xa1, 0x14027ec01\njbe     short loc_14027EC4F                                            ; +0xa5, 0x14027ec05\ninc     rdx                                                            ; +0xa7, 0x14027ec07\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xaa, 0x14027ec0a\nmov     rax, rcx                                                       ; +0xaf, 0x14027ec0f\ncmp     rdx, 1000h                                                     ; +0xb2, 0x14027ec12\njb      short loc_14027EC4A                                            ; +0xb9, 0x14027ec19\nadd     rdx, 27h ; '''                                                 ; +0xbb, 0x14027ec1b\nmov     rcx, [rcx-8]                                                   ; +0xbf, 0x14027ec1f\nsub     rax, rcx                                                       ; +0xc3, 0x14027ec23\nsub     rax, 8                                                         ; +0xc6, 0x14027ec26\ncmp     rax, 1Fh                                                       ; +0xca, 0x14027ec2a\njbe     short loc_14027EC4A                                            ; +0xce, 0x14027ec2e\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xd0, 0x14027ec30\nxor     r9d, r9d; LineNo                                               ; +0xd9, 0x14027ec39\nxor     r8d, r8d; FileName                                             ; +0xdc, 0x14027ec3c\nxor     edx, edx; FunctionName                                         ; +0xdf, 0x14027ec3f\nxor     ecx, ecx; Expression                                           ; +0xe1, 0x14027ec41\ncall    cs:_invoke_watson                                              ; +0xe3, 0x14027ec43\nalign 2                                                                ; +0xe9, 0x14027ec49\ncall    j_j_free                                                       ; +0xea, 0x14027ec4a\nmov     rcx, [rsp+68h+var_18]                                          ; +0xef, 0x14027ec4f\nxor     rcx, rsp; StackCookie                                          ; +0xf4, 0x14027ec54\ncall    __security_check_cookie                                        ; +0xf7, 0x14027ec57\nmov     rbx, [rsp+68h+arg_18]                                          ; +0xfc, 0x14027ec5c\nadd     rsp, 60h                                                       ; +0x104, 0x14027ec64\npop     rdi                                                            ; +0x108, 0x14027ec68\nretn                                                                   ; +0x109, 0x14027ec69", "xrefs": ["EditorUI::setupCreateMenu @ 0x1401ca854", "EditorUI::setupCreateMenu @ 0x1401ca87d", "GameManager::firstLoad @ 0x140285881", "<???> @ 0x14091cfe8"], "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"}