{"type": "func", "start": 5371324464, "end": 5371324852, "name": "GameManager::setUGV", "pseudocode": "// \n// GameManager::setUGV from 0x14027e830 to 0x14027e9b4 (388 bytes)\n// \n// 42 xrefs:\n// > CreatorLayer::dialogClosed @ 0x140139743\n// > GameManager::dataLoaded @ 0x1402848cc\n// > GameManager::dataLoaded @ 0x1402848de\n// > GameManager::firstLoad @ 0x1402858bb\n// > GameManager::applicationWillEnterForeground @ 0x140286c2c\n// > GameManager::applicationWillEnterForeground @ 0x140286e0d\n// > GameManager::applicationWillEnterForeground @ 0x140286fda\n// > GameManager::applicationWillEnterForeground @ 0x1402871a3\n// > GameManager::applicationWillEnterForeground @ 0x1402871f8\n// > GameManager::applicationWillEnterForeground @ 0x14028724d\n// > GameManager::applicationWillEnterForeground @ 0x1402872a2\n// > TOSPopup::onClose @ 0x1403a99b1\n// > GJShopLayer::showReactMessage @ 0x1403b4905\n// > LevelAreaLayer::showDialog @ 0x1403de5dd\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0967\n// > LevelSelectLayer::init @ 0x14044177f\n// > LevelPage::onTheTower @ 0x1404457a8\n// > LevelPage::onSecretDoor @ 0x140446329\n// > LevelPage::dialogClosed @ 0x140446ccf\n// > PlayLayer::destroyPlayer @ 0x14051332a\n// > SecretRewardsLayer::dialogClosed @ 0x14056c3b6\n// > SecretRewardsLayer::dialogClosed @ 0x14056c41b\n// > SecretRewardsLayer::dialogClosed @ 0x14056c480\n// > SecretRewardsLayer::dialogClosed @ 0x14056c4e6\n// > SecretRewardsLayer::showDialog01 @ 0x14056ee9d\n// > SecretRewardsLayer::showDialog03 @ 0x14056fba0\n// > SecretRewardsLayer::showDialogMechanic @ 0x140571095\n// > SecretRewardsLayer::showDialogDiamond @ 0x140571ef9\n// > SecretLayer::getThreadMessage @ 0x140576306\n// > SecretLayer2::showSecretLevel @ 0x1405793bf\n// > SecretLayer2::dialogClosed @ 0x14057a0e5\n// > SecretLayer2::getThreadMessage @ 0x14057d3e1\n// > SecretLayer3::onClick @ 0x140581f8d\n// > SecretLayer3::onClick @ 0x14058231e\n// > SecretLayer3::onClick @ 0x140582692\n// > SecretLayer3::onClick @ 0x140582c1d\n// > SecretLayer3::onClick @ 0x140582c6b\n// > SecretLayer3::dialogClosed @ 0x140584b9e\n// > SecretLayer3::dialogClosed @ 0x140584dfa\n// > SecretLayer4::showFirstDialog @ 0x1405880d1\n// > SecretLayer5::showFirstDialog @ 0x14058d237\n// > <???> @ 0x14091cfd0\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=2\nvoid __fastcall GameManager::setUGV(__int64 a1, _BYTE *a2, unsigned __int8 a3)\n{\n  unsigned int v3; // esi\n  size_t v5; // rbx\n  size_t v6; // r8\n  void **v7; // rdx\n  __int64 v8; // rbx\n  struct cocos2d::CCString *v9; // rax\n  void *v10; // rcx\n  void *v11; // rcx\n  void *Src[2]; // [rsp+30h] [rbp-68h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-58h]\n  void *Block[2]; // [rsp+50h] [rbp-48h] BYREF\n  __int128 v15; // [rsp+60h] [rbp-38h]\n\n  v3 = a3;\n  *(_OWORD *)Src = 0;\n  si128 = _mm_load_si128((const __m128i *)&xmmword_140836550);\n  strcpy((char *)Src, \"ugv_\");\n  v5 = -1;\n  v6 = -1;\n  do\n    ++v6;\n  while ( a2[v6] );\n  sub_140044D80(Src, a2, v6);\n  v7 = Src;\n  if ( si128.m128i_i64[1] > 0xFuLL )\n    v7 = (void **)Src[0];\n  *(_OWORD *)Block = 0;\n  v15 = 0;\n  do\n    ++v5;\n  while ( *((_BYTE *)v7 + v5) );\n  sub_14003D230(Block, v7, v5);\n  v8 = *(_QWORD *)(a1 + 456);\n  v9 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v3);\n  cocos2d::CCDictionary::setObject(v8, v9, Block);\n  if ( *((_QWORD *)&v15 + 1) > 0xFu )\n  {\n    v10 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 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  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v11 = Src[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v11 = *((void **)Src[0] - 1);\n      if ( (unsigned __int64)((char *)Src[0] - (char *)v11 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v11);\n  }\n}", "assembly": "; \n; GameManager::setUGV from 0x14027e830 to 0x14027e9b4 (388 bytes)\n; \n; 42 xrefs:\n; > CreatorLayer::dialogClosed @ 0x140139743\n; > GameManager::dataLoaded @ 0x1402848cc\n; > GameManager::dataLoaded @ 0x1402848de\n; > GameManager::firstLoad @ 0x1402858bb\n; > GameManager::applicationWillEnterForeground @ 0x140286c2c\n; > GameManager::applicationWillEnterForeground @ 0x140286e0d\n; > GameManager::applicationWillEnterForeground @ 0x140286fda\n; > GameManager::applicationWillEnterForeground @ 0x1402871a3\n; > GameManager::applicationWillEnterForeground @ 0x1402871f8\n; > GameManager::applicationWillEnterForeground @ 0x14028724d\n; > GameManager::applicationWillEnterForeground @ 0x1402872a2\n; > TOSPopup::onClose @ 0x1403a99b1\n; > GJShopLayer::showReactMessage @ 0x1403b4905\n; > LevelAreaLayer::showDialog @ 0x1403de5dd\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0967\n; > LevelSelectLayer::init @ 0x14044177f\n; > LevelPage::onTheTower @ 0x1404457a8\n; > LevelPage::onSecretDoor @ 0x140446329\n; > LevelPage::dialogClosed @ 0x140446ccf\n; > PlayLayer::destroyPlayer @ 0x14051332a\n; > SecretRewardsLayer::dialogClosed @ 0x14056c3b6\n; > SecretRewardsLayer::dialogClosed @ 0x14056c41b\n; > SecretRewardsLayer::dialogClosed @ 0x14056c480\n; > SecretRewardsLayer::dialogClosed @ 0x14056c4e6\n; > SecretRewardsLayer::showDialog01 @ 0x14056ee9d\n; > SecretRewardsLayer::showDialog03 @ 0x14056fba0\n; > SecretRewardsLayer::showDialogMechanic @ 0x140571095\n; > SecretRewardsLayer::showDialogDiamond @ 0x140571ef9\n; > SecretLayer::getThreadMessage @ 0x140576306\n; > SecretLayer2::showSecretLevel @ 0x1405793bf\n; > SecretLayer2::dialogClosed @ 0x14057a0e5\n; > SecretLayer2::getThreadMessage @ 0x14057d3e1\n; > SecretLayer3::onClick @ 0x140581f8d\n; > SecretLayer3::onClick @ 0x14058231e\n; > SecretLayer3::onClick @ 0x140582692\n; > SecretLayer3::onClick @ 0x140582c1d\n; > SecretLayer3::onClick @ 0x140582c6b\n; > SecretLayer3::dialogClosed @ 0x140584b9e\n; > SecretLayer3::dialogClosed @ 0x140584dfa\n; > SecretLayer4::showFirstDialog @ 0x1405880d1\n; > SecretLayer5::showFirstDialog @ 0x14058d237\n; > <???> @ 0x14091cfd0\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, 0x14027e830\npush    rsi                                                            ; +0x2, 0x14027e832\npush    rdi                                                            ; +0x3, 0x14027e833\nsub     rsp, 80h                                                       ; +0x4, 0x14027e834\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x14027e83b\nxor     rax, rsp                                                       ; +0x12, 0x14027e842\nmov     [rsp+98h+var_28], rax                                          ; +0x15, 0x14027e845\nmovzx   esi, r8b                                                       ; +0x1a, 0x14027e84a\nmov     rdi, rcx                                                       ; +0x1e, 0x14027e84e\nxorps   xmm0, xmm0                                                     ; +0x21, 0x14027e851\nmovups  xmmword ptr [rsp+98h+Src], xmm0                                ; +0x24, 0x14027e854\nmovdqa  xmm1, cs:xmmword_140836550                                     ; +0x29, 0x14027e859\nmovdqu  [rsp+98h+var_58], xmm1                                         ; +0x31, 0x14027e861\nmov     dword ptr [rsp+98h+Src], 5F766775h                             ; +0x37, 0x14027e867\nmov     byte ptr [rsp+98h+Src+4], 0                                    ; +0x3f, 0x14027e86f\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x44, 0x14027e874\nmov     r8, rbx                                                        ; +0x4b, 0x14027e87b\nxchg    ax, ax                                                         ; +0x4e, 0x14027e87e\ninc     r8; Size                                                       ; +0x50, 0x14027e880\ncmp     byte ptr [rdx+r8], 0                                           ; +0x53, 0x14027e883\njnz     short loc_14027E880                                            ; +0x58, 0x14027e888\nlea     rcx, [rsp+98h+Src]; Src                                        ; +0x5a, 0x14027e88a\ncall    sub_140044D80                                                  ; +0x5f, 0x14027e88f\nlea     rdx, [rsp+98h+Src]                                             ; +0x64, 0x14027e894\ncmp     qword ptr [rsp+98h+var_58+8], 0Fh                              ; +0x69, 0x14027e899\ncmova   rdx, [rsp+98h+Src]                                             ; +0x6f, 0x14027e89f\nxorps   xmm0, xmm0                                                     ; +0x75, 0x14027e8a5\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x78, 0x14027e8a8\nxorps   xmm1, xmm1                                                     ; +0x7d, 0x14027e8ad\nmovdqu  [rsp+98h+var_38], xmm1                                         ; +0x80, 0x14027e8b0\ninc     rbx                                                            ; +0x86, 0x14027e8b6\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x89, 0x14027e8b9\njnz     short loc_14027E8B6                                            ; +0x8d, 0x14027e8bd\nmov     r8, rbx                                                        ; +0x8f, 0x14027e8bf\nlea     rcx, [rsp+98h+Block]                                           ; +0x92, 0x14027e8c2\ncall    sub_14003D230                                                  ; +0x97, 0x14027e8c7\nnop                                                                    ; +0x9c, 0x14027e8cc\nmov     rbx, [rdi+1C8h]                                                ; +0x9d, 0x14027e8cd\nmov     edx, esi                                                       ; +0xa4, 0x14027e8d4\nlea     rcx, word_1406ED6F8                                            ; +0xa6, 0x14027e8d6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xad, 0x14027e8dd\nmov     rdx, rax                                                       ; +0xb3, 0x14027e8e3\nlea     r8, [rsp+98h+Block]                                            ; +0xb6, 0x14027e8e6\nmov     rcx, rbx                                                       ; +0xbb, 0x14027e8eb\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 &) ; +0xbe, 0x14027e8ee\nnop                                                                    ; +0xc4, 0x14027e8f4\nmov     rdx, qword ptr [rsp+98h+var_38+8]                              ; +0xc5, 0x14027e8f5\ncmp     rdx, 0Fh                                                       ; +0xca, 0x14027e8fa\njbe     short loc_14027E949                                            ; +0xce, 0x14027e8fe\ninc     rdx                                                            ; +0xd0, 0x14027e900\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0xd3, 0x14027e903\nmov     rax, rcx                                                       ; +0xd8, 0x14027e908\ncmp     rdx, 1000h                                                     ; +0xdb, 0x14027e90b\njb      short loc_14027E943                                            ; +0xe2, 0x14027e912\nadd     rdx, 27h ; '''                                                 ; +0xe4, 0x14027e914\nmov     rcx, [rcx-8]                                                   ; +0xe8, 0x14027e918\nsub     rax, rcx                                                       ; +0xec, 0x14027e91c\nsub     rax, 8                                                         ; +0xef, 0x14027e91f\ncmp     rax, 1Fh                                                       ; +0xf3, 0x14027e923\njbe     short loc_14027E943                                            ; +0xf7, 0x14027e927\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0xf9, 0x14027e929\nxor     r9d, r9d; LineNo                                               ; +0x102, 0x14027e932\nxor     r8d, r8d; FileName                                             ; +0x105, 0x14027e935\nxor     edx, edx; FunctionName                                         ; +0x108, 0x14027e938\nxor     ecx, ecx; Expression                                           ; +0x10a, 0x14027e93a\ncall    cs:_invoke_watson                                              ; +0x10c, 0x14027e93c\ndb 0CCh                                                                ; +0x112, 0x14027e942\ncall    j_j_free                                                       ; +0x113, 0x14027e943\nnop                                                                    ; +0x118, 0x14027e948\nmov     rdx, qword ptr [rsp+98h+var_58+8]                              ; +0x119, 0x14027e949\ncmp     rdx, 0Fh                                                       ; +0x11e, 0x14027e94e\njbe     short loc_14027E99C                                            ; +0x122, 0x14027e952\ninc     rdx                                                            ; +0x124, 0x14027e954\nmov     rcx, [rsp+98h+Src]; Block                                      ; +0x127, 0x14027e957\nmov     rax, rcx                                                       ; +0x12c, 0x14027e95c\ncmp     rdx, 1000h                                                     ; +0x12f, 0x14027e95f\njb      short loc_14027E997                                            ; +0x136, 0x14027e966\nadd     rdx, 27h ; '''                                                 ; +0x138, 0x14027e968\nmov     rcx, [rcx-8]                                                   ; +0x13c, 0x14027e96c\nsub     rax, rcx                                                       ; +0x140, 0x14027e970\nsub     rax, 8                                                         ; +0x143, 0x14027e973\ncmp     rax, 1Fh                                                       ; +0x147, 0x14027e977\njbe     short loc_14027E997                                            ; +0x14b, 0x14027e97b\nmov     [rsp+98h+Reserved], 0; Reserved                                ; +0x14d, 0x14027e97d\nxor     r9d, r9d; LineNo                                               ; +0x156, 0x14027e986\nxor     r8d, r8d; FileName                                             ; +0x159, 0x14027e989\nxor     edx, edx; FunctionName                                         ; +0x15c, 0x14027e98c\nxor     ecx, ecx; Expression                                           ; +0x15e, 0x14027e98e\ncall    cs:_invoke_watson                                              ; +0x160, 0x14027e990\ndb 0CCh                                                                ; +0x166, 0x14027e996\ncall    j_j_free                                                       ; +0x167, 0x14027e997\nmov     rcx, [rsp+98h+var_28]                                          ; +0x16c, 0x14027e99c\nxor     rcx, rsp; StackCookie                                          ; +0x171, 0x14027e9a1\ncall    __security_check_cookie                                        ; +0x174, 0x14027e9a4\nadd     rsp, 80h                                                       ; +0x179, 0x14027e9a9\npop     rdi                                                            ; +0x180, 0x14027e9b0\npop     rsi                                                            ; +0x181, 0x14027e9b1\npop     rbx                                                            ; +0x182, 0x14027e9b2\nretn                                                                   ; +0x183, 0x14027e9b3", "xrefs": ["CreatorLayer::dialogClosed @ 0x140139743", "GameManager::dataLoaded @ 0x1402848cc", "GameManager::dataLoaded @ 0x1402848de", "GameManager::firstLoad @ 0x1402858bb", "GameManager::applicationWillEnterForeground @ 0x140286c2c", "GameManager::applicationWillEnterForeground @ 0x140286e0d", "GameManager::applicationWillEnterForeground @ 0x140286fda", "GameManager::applicationWillEnterForeground @ 0x1402871a3", "GameManager::applicationWillEnterForeground @ 0x1402871f8", "GameManager::applicationWillEnterForeground @ 0x14028724d", "GameManager::applicationWillEnterForeground @ 0x1402872a2", "TOSPopup::onClose @ 0x1403a99b1", "GJShopLayer::showReactMessage @ 0x1403b4905", "LevelAreaLayer::showDialog @ 0x1403de5dd", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0967", "LevelSelectLayer::init @ 0x14044177f", "LevelPage::onTheTower @ 0x1404457a8", "LevelPage::onSecretDoor @ 0x140446329", "LevelPage::dialogClosed @ 0x140446ccf", "PlayLayer::destroyPlayer @ 0x14051332a", "SecretRewardsLayer::dialogClosed @ 0x14056c3b6", "SecretRewardsLayer::dialogClosed @ 0x14056c41b", "SecretRewardsLayer::dialogClosed @ 0x14056c480", "SecretRewardsLayer::dialogClosed @ 0x14056c4e6", "SecretRewardsLayer::showDialog01 @ 0x14056ee9d", "SecretRewardsLayer::showDialog03 @ 0x14056fba0", "SecretRewardsLayer::showDialogMechanic @ 0x140571095", "SecretRewardsLayer::showDialogDiamond @ 0x140571ef9", "SecretLayer::getThreadMessage @ 0x140576306", "SecretLayer2::showSecretLevel @ 0x1405793bf", "SecretLayer2::dialogClosed @ 0x14057a0e5", "SecretLayer2::getThreadMessage @ 0x14057d3e1", "SecretLayer3::onClick @ 0x140581f8d", "SecretLayer3::onClick @ 0x14058231e", "SecretLayer3::onClick @ 0x140582692", "SecretLayer3::onClick @ 0x140582c1d", "SecretLayer3::onClick @ 0x140582c6b", "SecretLayer3::dialogClosed @ 0x140584b9e", "SecretLayer3::dialogClosed @ 0x140584dfa", "SecretLayer4::showFirstDialog @ 0x1405880d1", "SecretLayer5::showFirstDialog @ 0x14058d237", "<???> @ 0x14091cfd0"], "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"}