{"type": "func", "start": 4298555760, "end": 4298556176, "name": "GJGarageLayer::onInfo", "pseudocode": "// \n// GJGarageLayer::onInfo from 0x10036c170 to 0x10036c310 (416 bytes)\n// \n// 1 xrefs:\n// > GJGarageLayer::init @ 0x10036ab2f\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\nvoid __fastcall GJGarageLayer::onInfo(GJGarageLayer *a1, cocos2d::CCObject *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCString *v3; // rax\n  const char *CString; // r14\n  size_t v5; // rax\n  size_t v6; // rbx\n  char *v7; // r15\n  char *v8; // rbx\n  size_t v9; // r12\n  size_t v10; // rax\n  size_t v11; // r14\n  char *v12; // r15\n  size_t v13; // r12\n  __int64 v14; // rbx\n  _QWORD v15[2]; // [rsp+0h] [rbp-50h] BYREF\n  void *__p; // [rsp+10h] [rbp-40h]\n  _QWORD __dst[2]; // [rsp+18h] [rbp-38h] BYREF\n  char *__s; // [rsp+28h] [rbp-28h]\n\n  GameManager::sharedState();\n  v3 = (cocos2d::CCString *)sub_1007AB580(\"<cy>UserID:</c> %i\", v15[0]);\n  CString = cocos2d::CCString::getCString(v3);\n  v5 = strlen(CString);\n  if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v2);\n  v6 = v5;\n  if ( v5 >= 0x17 )\n  {\n    v9 = 26;\n    if ( (v5 | 7) != 0x17 )\n      v9 = (v5 | 7) + 1;\n    v7 = (char *)operator new(v9);\n    __s = v7;\n    __dst[0] = v9 + 1;\n    __dst[1] = v6;\nLABEL_9:\n    memmove(v7, CString, v6);\n    v7[v6] = 0;\n    if ( (__dst[0] & 1) != 0 )\n      goto LABEL_5;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst[0]) = 2 * v5;\n  v7 = (char *)__dst + 1;\n  if ( v5 )\n    goto LABEL_9;\n  BYTE1(__dst[0]) = 0;\n  if ( (__dst[0] & 1) != 0 )\n  {\nLABEL_5:\n    v8 = __s;\n    goto LABEL_11;\n  }\nLABEL_10:\n  v8 = (char *)__dst + 1;\nLABEL_11:\n  v10 = strlen(v8);\n  if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v2);\n  v11 = v10;\n  if ( v10 >= 0x17 )\n  {\n    v13 = 26;\n    if ( (v10 | 7) != 0x17 )\n      v13 = (v10 | 7) + 1;\n    v12 = (char *)operator new(v13);\n    __p = v12;\n    v15[0] = v13 | 1;\n    v15[1] = v11;\n    goto LABEL_18;\n  }\n  LOBYTE(v15[0]) = 2 * v10;\n  v12 = (char *)v15 + 1;\n  if ( v10 )\nLABEL_18:\n    memmove(v12, v8, v11);\n  v12[v11] = 0;\n  v14 = FLAlertLayer::create_1(0, \"User Info\", v15, \"OK\", 0, 300.0);\n  if ( (v15[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1288LL))(v14);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__s);\n}", "assembly": "; \n; GJGarageLayer::onInfo from 0x10036c170 to 0x10036c310 (416 bytes)\n; \n; 1 xrefs:\n; > GJGarageLayer::init @ 0x10036ab2f\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, 0x10036c170\nmov     rbp, rsp                                                       ; +0x1, 0x10036c171\npush    r15                                                            ; +0x4, 0x10036c174\npush    r14                                                            ; +0x6, 0x10036c176\npush    r12                                                            ; +0x8, 0x10036c178\npush    rbx                                                            ; +0xa, 0x10036c17a\nsub     rsp, 30h                                                       ; +0xb, 0x10036c17b\ncall    GameManager__sharedState                                       ; +0xf, 0x10036c17f\nmov     esi, [rax+26Ch]                                                ; +0x14, 0x10036c184\nsub     esi, [rax+270h]                                                ; +0x1a, 0x10036c18a\nlea     rdi, aCyUseridCI; \"<cy>UserID:</c> %i\"                         ; +0x20, 0x10036c190\nxor     eax, eax                                                       ; +0x27, 0x10036c197\ncall    sub_1007AB580                                                  ; +0x29, 0x10036c199\nmov     rdi, rax                                                       ; +0x2e, 0x10036c19e\ncall    cocos2d__CCString__getCString                                  ; +0x31, 0x10036c1a1\nmov     r14, rax                                                       ; +0x36, 0x10036c1a6\nmov     rdi, rax; __s                                                  ; +0x39, 0x10036c1a9\ncall    _strlen                                                        ; +0x3c, 0x10036c1ac\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x41, 0x10036c1b1\njnb     loc_10036C306                                                  ; +0x45, 0x10036c1b5\nmov     rbx, rax                                                       ; +0x4b, 0x10036c1bb\ncmp     rax, 17h                                                       ; +0x4e, 0x10036c1be\njnb     short loc_10036C1E4                                            ; +0x52, 0x10036c1c2\nlea     eax, [rbx+rbx]                                                 ; +0x54, 0x10036c1c4\nmov     byte ptr [rbp+__dst], al                                       ; +0x57, 0x10036c1c7\nlea     r15, [rbp+__dst+1]                                             ; +0x5a, 0x10036c1ca\ntest    rbx, rbx                                                       ; +0x5e, 0x10036c1ce\njnz     short loc_10036C217                                            ; +0x61, 0x10036c1d1\nmov     byte ptr [r15+rbx], 0                                          ; +0x63, 0x10036c1d3\ntest    byte ptr [rbp+__dst], 1                                        ; +0x68, 0x10036c1d8\njz      short loc_10036C230                                            ; +0x6c, 0x10036c1dc\nmov     rbx, [rbp+__s]                                                 ; +0x6e, 0x10036c1de\njmp     short loc_10036C234                                            ; +0x72, 0x10036c1e2\nmov     rax, rbx                                                       ; +0x74, 0x10036c1e4\nor      rax, 7                                                         ; +0x77, 0x10036c1e7\nlea     rcx, [rax+1]                                                   ; +0x7b, 0x10036c1eb\ncmp     rax, 17h                                                       ; +0x7f, 0x10036c1ef\nmov     r12d, 1Ah                                                      ; +0x83, 0x10036c1f3\ncmovnz  r12, rcx                                                       ; +0x89, 0x10036c1f9\nmov     rdi, r12; __sz                                                 ; +0x8d, 0x10036c1fd\ncall    __Znwm; operator new(ulong)                                    ; +0x90, 0x10036c200\nmov     r15, rax                                                       ; +0x95, 0x10036c205\nmov     [rbp+__s], rax                                                 ; +0x98, 0x10036c208\ninc     r12                                                            ; +0x9c, 0x10036c20c\nmov     [rbp+__dst], r12                                               ; +0x9f, 0x10036c20f\nmov     [rbp+var_30], rbx                                              ; +0xa3, 0x10036c213\nmov     rdi, r15; __dst                                                ; +0xa7, 0x10036c217\nmov     rsi, r14; __src                                                ; +0xaa, 0x10036c21a\nmov     rdx, rbx; __len                                                ; +0xad, 0x10036c21d\ncall    _memmove                                                       ; +0xb0, 0x10036c220\nmov     byte ptr [r15+rbx], 0                                          ; +0xb5, 0x10036c225\ntest    byte ptr [rbp+__dst], 1                                        ; +0xba, 0x10036c22a\njnz     short loc_10036C1DE                                            ; +0xbe, 0x10036c22e\nlea     rbx, [rbp+__dst+1]                                             ; +0xc0, 0x10036c230\nmov     rdi, rbx; __s                                                  ; +0xc4, 0x10036c234\ncall    _strlen                                                        ; +0xc7, 0x10036c237\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xcc, 0x10036c23c\njnb     loc_10036C30B                                                  ; +0xd0, 0x10036c240\nmov     r14, rax                                                       ; +0xd6, 0x10036c246\ncmp     rax, 17h                                                       ; +0xd9, 0x10036c249\njnb     short loc_10036C261                                            ; +0xdd, 0x10036c24d\nlea     eax, [r14+r14]                                                 ; +0xdf, 0x10036c24f\nmov     byte ptr [rbp+var_50], al                                      ; +0xe3, 0x10036c253\nlea     r15, [rbp+var_50+1]                                            ; +0xe6, 0x10036c256\ntest    r14, r14                                                       ; +0xea, 0x10036c25a\njnz     short loc_10036C295                                            ; +0xed, 0x10036c25d\njmp     short loc_10036C2A3                                            ; +0xef, 0x10036c25f\nmov     rax, r14                                                       ; +0xf1, 0x10036c261\nor      rax, 7                                                         ; +0xf4, 0x10036c264\nlea     rcx, [rax+1]                                                   ; +0xf8, 0x10036c268\ncmp     rax, 17h                                                       ; +0xfc, 0x10036c26c\nmov     r12d, 1Ah                                                      ; +0x100, 0x10036c270\ncmovnz  r12, rcx                                                       ; +0x106, 0x10036c276\nmov     rdi, r12; __sz                                                 ; +0x10a, 0x10036c27a\ncall    __Znwm; operator new(ulong)                                    ; +0x10d, 0x10036c27d\nmov     r15, rax                                                       ; +0x112, 0x10036c282\nmov     [rbp+__p], rax                                                 ; +0x115, 0x10036c285\nor      r12, 1                                                         ; +0x119, 0x10036c289\nmov     [rbp+var_50], r12                                              ; +0x11d, 0x10036c28d\nmov     [rbp+var_48], r14                                              ; +0x121, 0x10036c291\nmov     rdi, r15; __dst                                                ; +0x125, 0x10036c295\nmov     rsi, rbx; __src                                                ; +0x128, 0x10036c298\nmov     rdx, r14; __len                                                ; +0x12b, 0x10036c29b\ncall    _memmove                                                       ; +0x12e, 0x10036c29e\nmov     byte ptr [r15+r14], 0                                          ; +0x133, 0x10036c2a3\nlea     rsi, aUserInfo; \"User Info\"                                    ; +0x138, 0x10036c2a8\nlea     rcx, aOk; \"OK\"                                                 ; +0x13f, 0x10036c2af\nlea     rdx, [rbp+var_50]                                              ; +0x146, 0x10036c2b6\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x14a, 0x10036c2ba\nxor     edi, edi                                                       ; +0x152, 0x10036c2c2\nxor     r8d, r8d                                                       ; +0x154, 0x10036c2c4\ncall    FLAlertLayer__create_1                                         ; +0x157, 0x10036c2c7\nmov     rbx, rax                                                       ; +0x15c, 0x10036c2cc\ntest    byte ptr [rbp+var_50], 1                                       ; +0x15f, 0x10036c2cf\njz      short loc_10036C2DE                                            ; +0x163, 0x10036c2d3\nmov     rdi, [rbp+__p]; __p                                            ; +0x165, 0x10036c2d5\ncall    __ZdlPv; operator delete(void *)                               ; +0x169, 0x10036c2d9\nmov     rax, [rbx]                                                     ; +0x16e, 0x10036c2de\nmov     rdi, rbx                                                       ; +0x171, 0x10036c2e1\ncall    qword ptr [rax+508h]                                           ; +0x174, 0x10036c2e4\ntest    byte ptr [rbp+__dst], 1                                        ; +0x17a, 0x10036c2ea\njz      short loc_10036C2F9                                            ; +0x17e, 0x10036c2ee\nmov     rdi, [rbp+__s]; __p                                            ; +0x180, 0x10036c2f0\ncall    __ZdlPv; operator delete(void *)                               ; +0x184, 0x10036c2f4\nadd     rsp, 30h                                                       ; +0x189, 0x10036c2f9\npop     rbx                                                            ; +0x18d, 0x10036c2fd\npop     r12                                                            ; +0x18e, 0x10036c2fe\npop     r14                                                            ; +0x190, 0x10036c300\npop     r15                                                            ; +0x192, 0x10036c302\npop     rbp                                                            ; +0x194, 0x10036c304\nretn                                                                   ; +0x195, 0x10036c305\ncall    sub_100006BF0                                                  ; +0x196, 0x10036c306\ncall    sub_100006BF0                                                  ; +0x19b, 0x10036c30b", "xrefs": ["GJGarageLayer::init @ 0x10036ab2f"], "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"}