{"type": "func", "start": 4298654512, "end": 4298654748, "name": "GameManager::getIntGameVariable", "pseudocode": "// \n// GameManager::getIntGameVariable from 0x100384330 to 0x10038441c (236 bytes)\n// \n// 57 xrefs:\n// > EditorUI::setupDeleteMenu @ 0x10000d4be\n// > EditorUI::setupDeleteMenu @ 0x10000d5a4\n// > EditorUI::setupCreateMenu @ 0x10000d972\n// > EditorUI::setupCreateMenu @ 0x10000d988\n// > EditorUI::onDelete @ 0x10002dd22\n// > EditorUI::onDelete @ 0x10002dd3b\n// > EditorUI::onDelete @ 0x10002dd5f\n// > EditorUI::onDelete @ 0x10002dd89\n// > EditorUI::onNewCustomItem @ 0x100030c8d\n// > EditorUI::onNewCustomItem @ 0x100030ca4\n// > EditorUI::reloadCustomItems @ 0x10003141d\n// > EditorUI::reloadCustomItems @ 0x100031434\n// > EditorUI::onDeleteCustomItem @ 0x1000314b4\n// > EditorUI::onDeleteCustomItem @ 0x1000314cb\n// > EditorUI::orderUpCustomItem @ 0x10003156b\n// > EditorUI::orderUpCustomItem @ 0x100031582\n// > EditorUI::orderDownCustomItem @ 0x100031628\n// > EditorUI::orderDownCustomItem @ 0x10003163f\n// > EditorUI::recreateButtonTabs @ 0x100031c64\n// > EditorUI::recreateButtonTabs @ 0x100031c7b\n// > EditorUI::onGroupIDFilter @ 0x100031ebd\n// > EditorUI::onColorFilter @ 0x100031fb9\n// > EditorUI::updateDeleteButtons @ 0x1000320c3\n// > EditorUI::updateDeleteButtons @ 0x100032179\n// > EditorUI::shouldDeleteObject @ 0x100032833\n// > EditorUI::shouldDeleteObject @ 0x100032898\n// > EditorUI::canSelectObject @ 0x10003c0c1\n// > EditorUI::canSelectObject @ 0x10003c0da\n// > EditorUI::canSelectObject @ 0x10003c0f6\n// > EditorUI::canSelectObject @ 0x10003c11c\n// > EditorUI::selectObjects @ 0x10003c1b4\n// > EditorUI::selectObjects @ 0x10003c1d1\n// > EditorUI::selectObjects @ 0x10003c250\n// > EditorUI::selectObjects @ 0x10003c2e6\n// > EditorUI::createMoveMenu @ 0x100047f3a\n// > EditorUI::createMoveMenu @ 0x100047f51\n// > EditLevelLayer::onLevelLeaderboard @ 0x1001fd05c\n// > CreatorLayer::onSavedLevels @ 0x100298446\n// > CreatorLayer::onSavedLevels @ 0x100298461\n// > CreatorLayer::onSavedLevels @ 0x100298479\n// > CreatorLayer::onSavedLevels @ 0x10029849c\n// > CreatorLayer::onMyLevels @ 0x100298bb0\n// > CreatorLayer::onMyLevels @ 0x100298bcb\n// > CreatorLayer::onMyLevels @ 0x100298be3\n// > CreatorLayer::onMyLevels @ 0x100298c06\n// > EditorOptionsLayer::setupOptions @ 0x10029e028\n// > EditorOptionsLayer::setupOptions @ 0x10029e042\n// > EditorOptionsLayer::onClose @ 0x10029e70f\n// > EditorOptionsLayer::onClose @ 0x10029e726\n// > LevelInfoLayer::onLevelLeaderboard @ 0x1002c19cb\n// > LevelInfoLayer::onLevelLeaderboard @ 0x1002c19e2\n// > GameManager::dataLoaded @ 0x10038a4ec\n// > GameManager::dataLoaded @ 0x10038a514\n// > GameManager::firstLoad @ 0x10038a72b\n// > GameManager::firstLoad @ 0x10038a76f\n// > EndLevelLayer::onLevelLeaderboard @ 0x1004c2252\n// > EndLevelLayer::onLevelLeaderboard @ 0x1004c2269\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GameManager::getIntGameVariable(GameManager *a1, const char *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCString *v3; // rax\n  const char *CString; // r15\n  cocos2d::CCDictionary *m_valueKeeper; // rbx\n  size_t v6; // rax\n  size_t v7; // r14\n  char *v8; // r12\n  size_t v9; // r13\n  cocos2d::CCString *v10; // rax\n  int result; // eax\n  int v12; // ebx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  v3 = (cocos2d::CCString *)sub_1007AB580(\"%s%s\", __dst[0]);\n  CString = cocos2d::CCString::getCString(v3);\n  m_valueKeeper = a1->m_valueKeeper;\n  v6 = strlen(CString);\n  if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v2);\n  v7 = v6;\n  if ( v6 >= 0x17 )\n  {\n    v9 = 26;\n    if ( (v6 | 7) != 0x17 )\n      v9 = (v6 | 7) + 1;\n    v8 = (char *)operator new(v9);\n    __p = v8;\n    __dst[0] = v9 + 1;\n    __dst[1] = v7;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v6;\n  v8 = (char *)__dst + 1;\n  if ( v6 )\nLABEL_8:\n    memmove(v8, CString, v7);\n  v8[v7] = 0;\n  v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)m_valueKeeper, (__int64)__dst);\n  result = cocos2d::CCString::intValue(v10);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    v12 = result;\n    operator delete(__p);\n    return v12;\n  }\n  return result;\n}", "assembly": "; \n; GameManager::getIntGameVariable from 0x100384330 to 0x10038441c (236 bytes)\n; \n; 57 xrefs:\n; > EditorUI::setupDeleteMenu @ 0x10000d4be\n; > EditorUI::setupDeleteMenu @ 0x10000d5a4\n; > EditorUI::setupCreateMenu @ 0x10000d972\n; > EditorUI::setupCreateMenu @ 0x10000d988\n; > EditorUI::onDelete @ 0x10002dd22\n; > EditorUI::onDelete @ 0x10002dd3b\n; > EditorUI::onDelete @ 0x10002dd5f\n; > EditorUI::onDelete @ 0x10002dd89\n; > EditorUI::onNewCustomItem @ 0x100030c8d\n; > EditorUI::onNewCustomItem @ 0x100030ca4\n; > EditorUI::reloadCustomItems @ 0x10003141d\n; > EditorUI::reloadCustomItems @ 0x100031434\n; > EditorUI::onDeleteCustomItem @ 0x1000314b4\n; > EditorUI::onDeleteCustomItem @ 0x1000314cb\n; > EditorUI::orderUpCustomItem @ 0x10003156b\n; > EditorUI::orderUpCustomItem @ 0x100031582\n; > EditorUI::orderDownCustomItem @ 0x100031628\n; > EditorUI::orderDownCustomItem @ 0x10003163f\n; > EditorUI::recreateButtonTabs @ 0x100031c64\n; > EditorUI::recreateButtonTabs @ 0x100031c7b\n; > EditorUI::onGroupIDFilter @ 0x100031ebd\n; > EditorUI::onColorFilter @ 0x100031fb9\n; > EditorUI::updateDeleteButtons @ 0x1000320c3\n; > EditorUI::updateDeleteButtons @ 0x100032179\n; > EditorUI::shouldDeleteObject @ 0x100032833\n; > EditorUI::shouldDeleteObject @ 0x100032898\n; > EditorUI::canSelectObject @ 0x10003c0c1\n; > EditorUI::canSelectObject @ 0x10003c0da\n; > EditorUI::canSelectObject @ 0x10003c0f6\n; > EditorUI::canSelectObject @ 0x10003c11c\n; > EditorUI::selectObjects @ 0x10003c1b4\n; > EditorUI::selectObjects @ 0x10003c1d1\n; > EditorUI::selectObjects @ 0x10003c250\n; > EditorUI::selectObjects @ 0x10003c2e6\n; > EditorUI::createMoveMenu @ 0x100047f3a\n; > EditorUI::createMoveMenu @ 0x100047f51\n; > EditLevelLayer::onLevelLeaderboard @ 0x1001fd05c\n; > CreatorLayer::onSavedLevels @ 0x100298446\n; > CreatorLayer::onSavedLevels @ 0x100298461\n; > CreatorLayer::onSavedLevels @ 0x100298479\n; > CreatorLayer::onSavedLevels @ 0x10029849c\n; > CreatorLayer::onMyLevels @ 0x100298bb0\n; > CreatorLayer::onMyLevels @ 0x100298bcb\n; > CreatorLayer::onMyLevels @ 0x100298be3\n; > CreatorLayer::onMyLevels @ 0x100298c06\n; > EditorOptionsLayer::setupOptions @ 0x10029e028\n; > EditorOptionsLayer::setupOptions @ 0x10029e042\n; > EditorOptionsLayer::onClose @ 0x10029e70f\n; > EditorOptionsLayer::onClose @ 0x10029e726\n; > LevelInfoLayer::onLevelLeaderboard @ 0x1002c19cb\n; > LevelInfoLayer::onLevelLeaderboard @ 0x1002c19e2\n; > GameManager::dataLoaded @ 0x10038a4ec\n; > GameManager::dataLoaded @ 0x10038a514\n; > GameManager::firstLoad @ 0x10038a72b\n; > GameManager::firstLoad @ 0x10038a76f\n; > EndLevelLayer::onLevelLeaderboard @ 0x1004c2252\n; > EndLevelLayer::onLevelLeaderboard @ 0x1004c2269\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100384330\nmov     rbp, rsp                                                       ; +0x1, 0x100384331\npush    r15                                                            ; +0x4, 0x100384334\npush    r14                                                            ; +0x6, 0x100384336\npush    r13                                                            ; +0x8, 0x100384338\npush    r12                                                            ; +0xa, 0x10038433a\npush    rbx                                                            ; +0xc, 0x10038433c\nsub     rsp, 18h                                                       ; +0xd, 0x10038433d\nmov     rdx, rsi                                                       ; +0x11, 0x100384341\nmov     rbx, rdi                                                       ; +0x14, 0x100384344\nlea     rdi, aSS; \"%s%s\"                                               ; +0x17, 0x100384347\nlea     rsi, aGv; \"gv_\"                                                ; +0x1e, 0x10038434e\nxor     eax, eax                                                       ; +0x25, 0x100384355\ncall    sub_1007AB580                                                  ; +0x27, 0x100384357\nmov     rdi, rax                                                       ; +0x2c, 0x10038435c\ncall    cocos2d__CCString__getCString                                  ; +0x2f, 0x10038435f\nmov     r15, rax                                                       ; +0x34, 0x100384364\nmov     rbx, [rbx+190h]                                                ; +0x37, 0x100384367\nmov     rdi, rax; __s                                                  ; +0x3e, 0x10038436e\ncall    _strlen                                                        ; +0x41, 0x100384371\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x46, 0x100384376\njnb     loc_100384417                                                  ; +0x4a, 0x10038437a\nmov     r14, rax                                                       ; +0x50, 0x100384380\ncmp     rax, 17h                                                       ; +0x53, 0x100384383\njnb     short loc_10038439B                                            ; +0x57, 0x100384387\nlea     eax, [r14+r14]                                                 ; +0x59, 0x100384389\nmov     byte ptr [rbp+__dst], al                                       ; +0x5d, 0x10038438d\nlea     r12, [rbp+__dst+1]                                             ; +0x60, 0x100384390\ntest    r14, r14                                                       ; +0x64, 0x100384394\njnz     short loc_1003843CE                                            ; +0x67, 0x100384397\njmp     short loc_1003843DC                                            ; +0x69, 0x100384399\nmov     rax, r14                                                       ; +0x6b, 0x10038439b\nor      rax, 7                                                         ; +0x6e, 0x10038439e\nlea     rcx, [rax+1]                                                   ; +0x72, 0x1003843a2\ncmp     rax, 17h                                                       ; +0x76, 0x1003843a6\nmov     r13d, 1Ah                                                      ; +0x7a, 0x1003843aa\ncmovnz  r13, rcx                                                       ; +0x80, 0x1003843b0\nmov     rdi, r13; __sz                                                 ; +0x84, 0x1003843b4\ncall    __Znwm; operator new(ulong)                                    ; +0x87, 0x1003843b7\nmov     r12, rax                                                       ; +0x8c, 0x1003843bc\nmov     [rbp+__p], rax                                                 ; +0x8f, 0x1003843bf\ninc     r13                                                            ; +0x93, 0x1003843c3\nmov     [rbp+__dst], r13                                               ; +0x96, 0x1003843c6\nmov     [rbp+var_38], r14                                              ; +0x9a, 0x1003843ca\nmov     rdi, r12; __dst                                                ; +0x9e, 0x1003843ce\nmov     rsi, r15; __src                                                ; +0xa1, 0x1003843d1\nmov     rdx, r14; __len                                                ; +0xa4, 0x1003843d4\ncall    _memmove                                                       ; +0xa7, 0x1003843d7\nmov     byte ptr [r12+r14], 0                                          ; +0xac, 0x1003843dc\nlea     rsi, [rbp+__dst]                                               ; +0xb1, 0x1003843e1\nmov     rdi, rbx                                                       ; +0xb5, 0x1003843e5\ncall    cocos2d__CCDictionary__valueForKey_1                           ; +0xb8, 0x1003843e8\nmov     rdi, rax                                                       ; +0xbd, 0x1003843ed\ncall    cocos2d__CCString__intValue                                    ; +0xc0, 0x1003843f0\ntest    byte ptr [rbp+__dst], 1                                        ; +0xc5, 0x1003843f5\njz      short loc_100384408                                            ; +0xc9, 0x1003843f9\nmov     rdi, [rbp+__p]; __p                                            ; +0xcb, 0x1003843fb\nmov     ebx, eax                                                       ; +0xcf, 0x1003843ff\ncall    __ZdlPv; operator delete(void *)                               ; +0xd1, 0x100384401\nmov     eax, ebx                                                       ; +0xd6, 0x100384406\nadd     rsp, 18h                                                       ; +0xd8, 0x100384408\npop     rbx                                                            ; +0xdc, 0x10038440c\npop     r12                                                            ; +0xdd, 0x10038440d\npop     r13                                                            ; +0xdf, 0x10038440f\npop     r14                                                            ; +0xe1, 0x100384411\npop     r15                                                            ; +0xe3, 0x100384413\npop     rbp                                                            ; +0xe5, 0x100384415\nretn                                                                   ; +0xe6, 0x100384416\ncall    sub_100006BF0                                                  ; +0xe7, 0x100384417", "xrefs": ["EditorUI::setupDeleteMenu @ 0x10000d4be", "EditorUI::setupDeleteMenu @ 0x10000d5a4", "EditorUI::setupCreateMenu @ 0x10000d972", "EditorUI::setupCreateMenu @ 0x10000d988", "EditorUI::onDelete @ 0x10002dd22", "EditorUI::onDelete @ 0x10002dd3b", "EditorUI::onDelete @ 0x10002dd5f", "EditorUI::onDelete @ 0x10002dd89", "EditorUI::onNewCustomItem @ 0x100030c8d", "EditorUI::onNewCustomItem @ 0x100030ca4", "EditorUI::reloadCustomItems @ 0x10003141d", "EditorUI::reloadCustomItems @ 0x100031434", "EditorUI::onDeleteCustomItem @ 0x1000314b4", "EditorUI::onDeleteCustomItem @ 0x1000314cb", "EditorUI::orderUpCustomItem @ 0x10003156b", "EditorUI::orderUpCustomItem @ 0x100031582", "EditorUI::orderDownCustomItem @ 0x100031628", "EditorUI::orderDownCustomItem @ 0x10003163f", "EditorUI::recreateButtonTabs @ 0x100031c64", "EditorUI::recreateButtonTabs @ 0x100031c7b", "EditorUI::onGroupIDFilter @ 0x100031ebd", "EditorUI::onColorFilter @ 0x100031fb9", "EditorUI::updateDeleteButtons @ 0x1000320c3", "EditorUI::updateDeleteButtons @ 0x100032179", "EditorUI::shouldDeleteObject @ 0x100032833", "EditorUI::shouldDeleteObject @ 0x100032898", "EditorUI::canSelectObject @ 0x10003c0c1", "EditorUI::canSelectObject @ 0x10003c0da", "EditorUI::canSelectObject @ 0x10003c0f6", "EditorUI::canSelectObject @ 0x10003c11c", "EditorUI::selectObjects @ 0x10003c1b4", "EditorUI::selectObjects @ 0x10003c1d1", "EditorUI::selectObjects @ 0x10003c250", "EditorUI::selectObjects @ 0x10003c2e6", "EditorUI::createMoveMenu @ 0x100047f3a", "EditorUI::createMoveMenu @ 0x100047f51", "EditLevelLayer::onLevelLeaderboard @ 0x1001fd05c", "CreatorLayer::onSavedLevels @ 0x100298446", "CreatorLayer::onSavedLevels @ 0x100298461", "CreatorLayer::onSavedLevels @ 0x100298479", "CreatorLayer::onSavedLevels @ 0x10029849c", "CreatorLayer::onMyLevels @ 0x100298bb0", "CreatorLayer::onMyLevels @ 0x100298bcb", "CreatorLayer::onMyLevels @ 0x100298be3", "CreatorLayer::onMyLevels @ 0x100298c06", "EditorOptionsLayer::setupOptions @ 0x10029e028", "EditorOptionsLayer::setupOptions @ 0x10029e042", "EditorOptionsLayer::onClose @ 0x10029e70f", "EditorOptionsLayer::onClose @ 0x10029e726", "LevelInfoLayer::onLevelLeaderboard @ 0x1002c19cb", "LevelInfoLayer::onLevelLeaderboard @ 0x1002c19e2", "GameManager::dataLoaded @ 0x10038a4ec", "GameManager::dataLoaded @ 0x10038a514", "GameManager::firstLoad @ 0x10038a72b", "GameManager::firstLoad @ 0x10038a76f", "EndLevelLayer::onLevelLeaderboard @ 0x1004c2252", "EndLevelLayer::onLevelLeaderboard @ 0x1004c2269"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}