{"type": "func", "start": 4298560704, "end": 4298560961, "name": "GameManager::getUGV", "pseudocode": "// \n// GameManager::getUGV from 0x10036d4c0 to 0x10036d5c1 (257 bytes)\n// \n// 68 xrefs:\n// > PlayLayer::destroyPlayer @ 0x100088052\n// > LevelAreaLayer::init @ 0x100264c19\n// > LevelAreaInnerLayer::init @ 0x100266ff4\n// > CreatorLayer::init @ 0x100282da3\n// > CreatorLayer::onTreasureRoom @ 0x1002840fb\n// > GJShopLayer::init @ 0x10030f4c4\n// > GJShopLayer::showReactMessage @ 0x100311409\n// > GJShopLayer::ccTouchBegan @ 0x100312a64\n// > GameManager::firstLoad @ 0x100374b69\n// > MenuLayer::init @ 0x10037c0df\n// > SecretLayer4::init @ 0x10039a34f\n// > WorldSelectLayer::init @ 0x1003ab92e\n// > FollowRewardPage::init @ 0x10040c90a\n// > FollowRewardPage::init @ 0x10040c9f9\n// > FollowRewardPage::init @ 0x10040cae8\n// > FollowRewardPage::init @ 0x10040cbd7\n// > FollowRewardPage::init @ 0x10040ccc6\n// > FollowRewardPage::init @ 0x10040cdb0\n// > FollowRewardPage::init @ 0x10040ce9f\n// > FollowRewardPage::onSpecialItem @ 0x10040d606\n// > FollowRewardPage::onSpecialItem @ 0x10040d665\n// > FollowRewardPage::onSpecialItem @ 0x10040d6c4\n// > FollowRewardPage::onSpecialItem @ 0x10040d723\n// > FollowRewardPage::onSpecialItem @ 0x10040d782\n// > FollowRewardPage::onSpecialItem @ 0x10040d7e1\n// > FollowRewardPage::onSpecialItem @ 0x10040d83d\n// > FollowRewardPage::updateRate @ 0x10040ddc3\n// > LevelPage::onTheTower @ 0x100423a92\n// > LevelPage::addSecretDoor @ 0x10042402c\n// > LevelPage::addSecretDoor @ 0x100424048\n// > LevelPage::addSecretDoor @ 0x100424091\n// > LevelPage::onSecretDoor @ 0x100424663\n// > LevelPage::onSecretDoor @ 0x10042467b\n// > SecretLayer5::init @ 0x10046f91e\n// > SecretLayer2::init @ 0x100496457\n// > SecretLayer2::init @ 0x100496ae7\n// > SecretLayer2::init @ 0x100496ea6\n// > SecretLayer2::init @ 0x100496f30\n// > SecretLayer2::onSubmit @ 0x1004979d8\n// > SecretLayer2::onSubmit @ 0x1004983bc\n// > SecretLayer2::onDoor @ 0x100498afd\n// > SecretLayer3::init @ 0x10049d128\n// > SecretLayer3::init @ 0x10049d1c5\n// > SecretLayer3::init @ 0x10049d1dd\n// > SecretLayer3::init @ 0x10049d311\n// > SecretLayer3::init @ 0x10049d3b5\n// > SecretLayer3::init @ 0x10049d454\n// > SecretLayer3::init @ 0x10049d4f8\n// > SecretLayer3::init @ 0x10049da28\n// > SecretLayer3::onClick @ 0x10049e0a5\n// > SecretLayer3::onClick @ 0x10049e0bc\n// > SecretLayer3::onClick @ 0x10049e0d7\n// > SecretLayer3::onBack @ 0x10049eeb7\n// > SecretLayer3::showUnlockDialog @ 0x10049fa7c\n// > SecretLayer3::showUnlockDialog @ 0x10049fa94\n// > SecretLayer3::showUnlockDialog @ 0x10049faaf\n// > GauntletSelectLayer::setupGauntlets @ 0x10059f5fc\n// > SecretLayer::init @ 0x1006d1cbb\n// > SecretRewardsLayer::init @ 0x10070cd71\n// > SecretRewardsLayer::init @ 0x10070cd97\n// > SecretRewardsLayer::onShop @ 0x10070f4a5\n// > SecretRewardsLayer::onShop @ 0x10070f4cf\n// > SecretRewardsLayer::onShop @ 0x10070f4f9\n// > SecretRewardsLayer::onShop @ 0x10070f523\n// > SecretRewardsLayer::showDialog01 @ 0x1007117fd\n// > SecretRewardsLayer::showDialog03 @ 0x10071350d\n// > SecretRewardsLayer::showDialogMechanic @ 0x100714ab0\n// > SecretRewardsLayer::showDialogDiamond @ 0x10071604d\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 12:29:01 +0000\n// \n\n__int64 __fastcall GameManager::getUGV(__int64 a1, const std::string::value_type *a2)\n{\n  const char *data; // r14\n  __int64 v3; // rbx\n  size_t v4; // rax\n  size_t v5; // r15\n  char *v6; // r12\n  size_t v7; // r13\n  void *v8; // rax\n  unsigned int v9; // ebx\n  _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF\n  void *__p; // [rsp+18h] [rbp-48h]\n  std::string v13; // [rsp+20h] [rbp-40h] BYREF\n\n  v13.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)8;\n  strcpy(v13.__r_.__value_.__s.__data_, \"ugv_\");\n  std::string::append(&v13, a2);\n  if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n    data = v13.__r_.__value_.__l.__data_;\n  else\n    data = v13.__r_.__value_.__s.__data_;\n  v3 = *(_QWORD *)(a1 + 448);\n  v4 = strlen(data);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 | 1;\n    __dst[1] = v5;\n    goto LABEL_11;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_11:\n    memmove(v6, data, v5);\n  v6[v5] = 0;\n  v8 = cocos2d::CCDictionary::valueForKey(v3, (__int64)__dst);\n  v9 = cocos2d::CCString::boolValue(v8);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v13.__r_.__value_.__l.__data_);\n  return v9;\n}", "assembly": "; \n; GameManager::getUGV from 0x10036d4c0 to 0x10036d5c1 (257 bytes)\n; \n; 68 xrefs:\n; > PlayLayer::destroyPlayer @ 0x100088052\n; > LevelAreaLayer::init @ 0x100264c19\n; > LevelAreaInnerLayer::init @ 0x100266ff4\n; > CreatorLayer::init @ 0x100282da3\n; > CreatorLayer::onTreasureRoom @ 0x1002840fb\n; > GJShopLayer::init @ 0x10030f4c4\n; > GJShopLayer::showReactMessage @ 0x100311409\n; > GJShopLayer::ccTouchBegan @ 0x100312a64\n; > GameManager::firstLoad @ 0x100374b69\n; > MenuLayer::init @ 0x10037c0df\n; > SecretLayer4::init @ 0x10039a34f\n; > WorldSelectLayer::init @ 0x1003ab92e\n; > FollowRewardPage::init @ 0x10040c90a\n; > FollowRewardPage::init @ 0x10040c9f9\n; > FollowRewardPage::init @ 0x10040cae8\n; > FollowRewardPage::init @ 0x10040cbd7\n; > FollowRewardPage::init @ 0x10040ccc6\n; > FollowRewardPage::init @ 0x10040cdb0\n; > FollowRewardPage::init @ 0x10040ce9f\n; > FollowRewardPage::onSpecialItem @ 0x10040d606\n; > FollowRewardPage::onSpecialItem @ 0x10040d665\n; > FollowRewardPage::onSpecialItem @ 0x10040d6c4\n; > FollowRewardPage::onSpecialItem @ 0x10040d723\n; > FollowRewardPage::onSpecialItem @ 0x10040d782\n; > FollowRewardPage::onSpecialItem @ 0x10040d7e1\n; > FollowRewardPage::onSpecialItem @ 0x10040d83d\n; > FollowRewardPage::updateRate @ 0x10040ddc3\n; > LevelPage::onTheTower @ 0x100423a92\n; > LevelPage::addSecretDoor @ 0x10042402c\n; > LevelPage::addSecretDoor @ 0x100424048\n; > LevelPage::addSecretDoor @ 0x100424091\n; > LevelPage::onSecretDoor @ 0x100424663\n; > LevelPage::onSecretDoor @ 0x10042467b\n; > SecretLayer5::init @ 0x10046f91e\n; > SecretLayer2::init @ 0x100496457\n; > SecretLayer2::init @ 0x100496ae7\n; > SecretLayer2::init @ 0x100496ea6\n; > SecretLayer2::init @ 0x100496f30\n; > SecretLayer2::onSubmit @ 0x1004979d8\n; > SecretLayer2::onSubmit @ 0x1004983bc\n; > SecretLayer2::onDoor @ 0x100498afd\n; > SecretLayer3::init @ 0x10049d128\n; > SecretLayer3::init @ 0x10049d1c5\n; > SecretLayer3::init @ 0x10049d1dd\n; > SecretLayer3::init @ 0x10049d311\n; > SecretLayer3::init @ 0x10049d3b5\n; > SecretLayer3::init @ 0x10049d454\n; > SecretLayer3::init @ 0x10049d4f8\n; > SecretLayer3::init @ 0x10049da28\n; > SecretLayer3::onClick @ 0x10049e0a5\n; > SecretLayer3::onClick @ 0x10049e0bc\n; > SecretLayer3::onClick @ 0x10049e0d7\n; > SecretLayer3::onBack @ 0x10049eeb7\n; > SecretLayer3::showUnlockDialog @ 0x10049fa7c\n; > SecretLayer3::showUnlockDialog @ 0x10049fa94\n; > SecretLayer3::showUnlockDialog @ 0x10049faaf\n; > GauntletSelectLayer::setupGauntlets @ 0x10059f5fc\n; > SecretLayer::init @ 0x1006d1cbb\n; > SecretRewardsLayer::init @ 0x10070cd71\n; > SecretRewardsLayer::init @ 0x10070cd97\n; > SecretRewardsLayer::onShop @ 0x10070f4a5\n; > SecretRewardsLayer::onShop @ 0x10070f4cf\n; > SecretRewardsLayer::onShop @ 0x10070f4f9\n; > SecretRewardsLayer::onShop @ 0x10070f523\n; > SecretRewardsLayer::showDialog01 @ 0x1007117fd\n; > SecretRewardsLayer::showDialog03 @ 0x10071350d\n; > SecretRewardsLayer::showDialogMechanic @ 0x100714ab0\n; > SecretRewardsLayer::showDialogDiamond @ 0x10071604d\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 12:29:01 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036d4c0\nmov     rbp, rsp                                                       ; +0x1, 0x10036d4c1\npush    r15                                                            ; +0x4, 0x10036d4c4\npush    r14                                                            ; +0x6, 0x10036d4c6\npush    r13                                                            ; +0x8, 0x10036d4c8\npush    r12                                                            ; +0xa, 0x10036d4ca\npush    rbx                                                            ; +0xc, 0x10036d4cc\nsub     rsp, 38h                                                       ; +0xd, 0x10036d4cd\nmov     rbx, rdi                                                       ; +0x11, 0x10036d4d1\nmov     byte ptr [rbp+var_40.__r_.__value_], 8                         ; +0x14, 0x10036d4d4\nmov     dword ptr [rbp+var_40.__r_.__value_+1], 5F766775h              ; +0x18, 0x10036d4d8\nmov     byte ptr [rbp+var_40.__r_.__value_+5], 0                       ; +0x1f, 0x10036d4df\nlea     rdi, [rbp+var_40]; this                                        ; +0x23, 0x10036d4e3\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x27, 0x10036d4e7\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x2c, 0x10036d4ec\njz      short loc_10036D4F8                                            ; +0x30, 0x10036d4f0\nmov     r14, qword ptr [rbp+var_40.__r_.__value_+10h]                  ; +0x32, 0x10036d4f2\njmp     short loc_10036D4FC                                            ; +0x36, 0x10036d4f6\nlea     r14, [rbp+var_40.__r_.__value_+1]                              ; +0x38, 0x10036d4f8\nmov     rbx, [rbx+1C0h]                                                ; +0x3c, 0x10036d4fc\nmov     rdi, r14; __s                                                  ; +0x43, 0x10036d503\ncall    _strlen                                                        ; +0x46, 0x10036d506\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x4b, 0x10036d50b\njnb     loc_10036D5BC                                                  ; +0x4f, 0x10036d50f\nmov     r15, rax                                                       ; +0x55, 0x10036d515\ncmp     rax, 17h                                                       ; +0x58, 0x10036d518\njnb     short loc_10036D530                                            ; +0x5c, 0x10036d51c\nlea     eax, [r15+r15]                                                 ; +0x5e, 0x10036d51e\nmov     byte ptr [rbp+__dst], al                                       ; +0x62, 0x10036d522\nlea     r12, [rbp+__dst+1]                                             ; +0x65, 0x10036d525\ntest    r15, r15                                                       ; +0x69, 0x10036d529\njnz     short loc_10036D564                                            ; +0x6c, 0x10036d52c\njmp     short loc_10036D572                                            ; +0x6e, 0x10036d52e\nmov     rax, r15                                                       ; +0x70, 0x10036d530\nor      rax, 7                                                         ; +0x73, 0x10036d533\nlea     rcx, [rax+1]                                                   ; +0x77, 0x10036d537\ncmp     rax, 17h                                                       ; +0x7b, 0x10036d53b\nmov     r13d, 1Ah                                                      ; +0x7f, 0x10036d53f\ncmovnz  r13, rcx                                                       ; +0x85, 0x10036d545\nmov     rdi, r13; __sz                                                 ; +0x89, 0x10036d549\ncall    __Znwm; operator new(ulong)                                    ; +0x8c, 0x10036d54c\nmov     r12, rax                                                       ; +0x91, 0x10036d551\nmov     [rbp+__p], rax                                                 ; +0x94, 0x10036d554\nor      r13, 1                                                         ; +0x98, 0x10036d558\nmov     [rbp+__dst], r13                                               ; +0x9c, 0x10036d55c\nmov     [rbp+var_50], r15                                              ; +0xa0, 0x10036d560\nmov     rdi, r12; __dst                                                ; +0xa4, 0x10036d564\nmov     rsi, r14; __src                                                ; +0xa7, 0x10036d567\nmov     rdx, r15; __len                                                ; +0xaa, 0x10036d56a\ncall    _memmove                                                       ; +0xad, 0x10036d56d\nmov     byte ptr [r12+r15], 0                                          ; +0xb2, 0x10036d572\nlea     rsi, [rbp+__dst]                                               ; +0xb7, 0x10036d577\nmov     rdi, rbx                                                       ; +0xbb, 0x10036d57b\ncall    cocos2d__CCDictionary__valueForKey                             ; +0xbe, 0x10036d57e\nmov     rdi, rax                                                       ; +0xc3, 0x10036d583\ncall    cocos2d__CCString__boolValue                                   ; +0xc6, 0x10036d586\nmov     ebx, eax                                                       ; +0xcb, 0x10036d58b\ntest    byte ptr [rbp+__dst], 1                                        ; +0xcd, 0x10036d58d\njz      short loc_10036D59C                                            ; +0xd1, 0x10036d591\nmov     rdi, [rbp+__p]; __p                                            ; +0xd3, 0x10036d593\ncall    __ZdlPv; operator delete(void *)                               ; +0xd7, 0x10036d597\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0xdc, 0x10036d59c\njz      short loc_10036D5AB                                            ; +0xe0, 0x10036d5a0\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0xe2, 0x10036d5a2\ncall    __ZdlPv; operator delete(void *)                               ; +0xe6, 0x10036d5a6\nmov     eax, ebx                                                       ; +0xeb, 0x10036d5ab\nadd     rsp, 38h                                                       ; +0xed, 0x10036d5ad\npop     rbx                                                            ; +0xf1, 0x10036d5b1\npop     r12                                                            ; +0xf2, 0x10036d5b2\npop     r13                                                            ; +0xf4, 0x10036d5b4\npop     r14                                                            ; +0xf6, 0x10036d5b6\npop     r15                                                            ; +0xf8, 0x10036d5b8\npop     rbp                                                            ; +0xfa, 0x10036d5ba\nretn                                                                   ; +0xfb, 0x10036d5bb\ncall    sub_100003630                                                  ; +0xfc, 0x10036d5bc", "xrefs": ["PlayLayer::destroyPlayer @ 0x100088052", "LevelAreaLayer::init @ 0x100264c19", "LevelAreaInnerLayer::init @ 0x100266ff4", "CreatorLayer::init @ 0x100282da3", "CreatorLayer::onTreasureRoom @ 0x1002840fb", "GJShopLayer::init @ 0x10030f4c4", "GJShopLayer::showReactMessage @ 0x100311409", "GJShopLayer::ccTouchBegan @ 0x100312a64", "GameManager::firstLoad @ 0x100374b69", "MenuLayer::init @ 0x10037c0df", "SecretLayer4::init @ 0x10039a34f", "WorldSelectLayer::init @ 0x1003ab92e", "FollowRewardPage::init @ 0x10040c90a", "FollowRewardPage::init @ 0x10040c9f9", "FollowRewardPage::init @ 0x10040cae8", "FollowRewardPage::init @ 0x10040cbd7", "FollowRewardPage::init @ 0x10040ccc6", "FollowRewardPage::init @ 0x10040cdb0", "FollowRewardPage::init @ 0x10040ce9f", "FollowRewardPage::onSpecialItem @ 0x10040d606", "FollowRewardPage::onSpecialItem @ 0x10040d665", "FollowRewardPage::onSpecialItem @ 0x10040d6c4", "FollowRewardPage::onSpecialItem @ 0x10040d723", "FollowRewardPage::onSpecialItem @ 0x10040d782", "FollowRewardPage::onSpecialItem @ 0x10040d7e1", "FollowRewardPage::onSpecialItem @ 0x10040d83d", "FollowRewardPage::updateRate @ 0x10040ddc3", "LevelPage::onTheTower @ 0x100423a92", "LevelPage::addSecretDoor @ 0x10042402c", "LevelPage::addSecretDoor @ 0x100424048", "LevelPage::addSecretDoor @ 0x100424091", "LevelPage::onSecretDoor @ 0x100424663", "LevelPage::onSecretDoor @ 0x10042467b", "SecretLayer5::init @ 0x10046f91e", "SecretLayer2::init @ 0x100496457", "SecretLayer2::init @ 0x100496ae7", "SecretLayer2::init @ 0x100496ea6", "SecretLayer2::init @ 0x100496f30", "SecretLayer2::onSubmit @ 0x1004979d8", "SecretLayer2::onSubmit @ 0x1004983bc", "SecretLayer2::onDoor @ 0x100498afd", "SecretLayer3::init @ 0x10049d128", "SecretLayer3::init @ 0x10049d1c5", "SecretLayer3::init @ 0x10049d1dd", "SecretLayer3::init @ 0x10049d311", "SecretLayer3::init @ 0x10049d3b5", "SecretLayer3::init @ 0x10049d454", "SecretLayer3::init @ 0x10049d4f8", "SecretLayer3::init @ 0x10049da28", "SecretLayer3::onClick @ 0x10049e0a5", "SecretLayer3::onClick @ 0x10049e0bc", "SecretLayer3::onClick @ 0x10049e0d7", "SecretLayer3::onBack @ 0x10049eeb7", "SecretLayer3::showUnlockDialog @ 0x10049fa7c", "SecretLayer3::showUnlockDialog @ 0x10049fa94", "SecretLayer3::showUnlockDialog @ 0x10049faaf", "GauntletSelectLayer::setupGauntlets @ 0x10059f5fc", "SecretLayer::init @ 0x1006d1cbb", "SecretRewardsLayer::init @ 0x10070cd71", "SecretRewardsLayer::init @ 0x10070cd97", "SecretRewardsLayer::onShop @ 0x10070f4a5", "SecretRewardsLayer::onShop @ 0x10070f4cf", "SecretRewardsLayer::onShop @ 0x10070f4f9", "SecretRewardsLayer::onShop @ 0x10070f523", "SecretRewardsLayer::showDialog01 @ 0x1007117fd", "SecretRewardsLayer::showDialog03 @ 0x10071350d", "SecretRewardsLayer::showDialogMechanic @ 0x100714ab0", "SecretRewardsLayer::showDialogDiamond @ 0x10071604d"], "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"}