{"type": "func", "start": 5370444096, "end": 5370444544, "name": "TextGameObject::customObjectSetup", "pseudocode": "// \n// TextGameObject::customObjectSetup from 0x1401a7940 to 0x1401a7b00 (448 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14055e018\n// > <???> @ 0x1406cc120\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\n// Hidden C++ exception states: #wind=3\nvoid TextGameObject::customObjectSetup(TextGameObject *a1, std::vector<std::string> *a2, std::vector<void *> *a3)\n{\n  int v6; // eax\n  std::_Vector_val<std::_Simple_types<std::string>>::pointer m_bigStorage; // rcx\n  __int64 v8; // rax\n  char v9; // bl\n  char v10; // bl\n  void *v11; // rcx\n  __int128 v12; // [rsp+28h] [rbp-51h] BYREF\n  __int128 v13; // [rsp+38h] [rbp-41h]\n  __int128 *v14; // [rsp+48h] [rbp-31h]\n  _OWORD v15[2]; // [rsp+50h] [rbp-29h] BYREF\n  void *Block[2]; // [rsp+70h] [rbp-9h] BYREF\n  __int64 v17; // [rsp+80h] [rbp+7h]\n  unsigned __int64 v18; // [rsp+88h] [rbp+Fh]\n  _BYTE v19[32]; // [rsp+90h] [rbp+17h] BYREF\n\n  if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 488) )\n  {\n    m_bigStorage = a2->_Mypair._Myval2._Myfirst + 488;\n    if ( a2->_Mypair._Myval2._Myfirst[488].m_data.m_capacity > 0xF )\n      m_bigStorage = (std::_Vector_val<std::_Simple_types<std::string>>::pointer)m_bigStorage->m_data.m_bigStorage;\n    v6 = atoi(m_bigStorage->m_data.m_smallStorage._Elems);\n  }\n  else\n  {\n    v6 = 0;\n  }\n  a1->updateTextKerning(a1, v6);\n  if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 31) )\n  {\n    v8 = sub_14003BDB0((__int64)v19, (__int64)&a2->_Mypair._Myval2._Myfirst[31]);\n    v9 = 2;\n  }\n  else\n  {\n    *(_OWORD *)Block = 0;\n    v17 = 0;\n    v18 = 15;\n    LOBYTE(Block[0]) = 0;\n    v8 = (__int64)Block;\n    v9 = 1;\n  }\n  v12 = 0;\n  v13 = 0u;\n  v12 = *(_OWORD *)v8;\n  v13 = *(_OWORD *)(v8 + 16);\n  *(_QWORD *)(v8 + 16) = 0;\n  *(_QWORD *)(v8 + 24) = 15;\n  *(_BYTE *)v8 = 0;\n  v14 = &v12;\n  v10 = v9 | 4;\n  if ( (_QWORD)v13 )\n  {\n    cocos2d::ZipUtils::base64URLDecode(v15, &v12);\n  }\n  else\n  {\n    v15[0] = v12;\n    v15[1] = v13;\n    *(_QWORD *)&v13 = 0;\n    *((_QWORD *)&v13 + 1) = 15;\n    LOBYTE(v12) = 0;\n  }\n  sub_14003A830((__int64)&v12);\n  TextGameObject::updateTextObject((__int64 *)a1, (struct cocos2d::CCPoint)v15, 0);\n  if ( (v10 & 2) != 0 )\n  {\n    v10 &= ~2u;\n    sub_14003A830((__int64)v19);\n  }\n  if ( (v10 & 1) != 0 && v18 > 0xF )\n  {\n    v11 = Block[0];\n    if ( v18 + 1 >= 0x1000 )\n    {\n      v11 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v11);\n  }\n}", "assembly": "; \n; TextGameObject::customObjectSetup from 0x1401a7940 to 0x1401a7b00 (448 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14055e018\n; > <???> @ 0x1406cc120\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\nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x1401a7940\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x1401a7945\npush    rbp                                                            ; +0xa, 0x1401a794a\npush    rdi                                                            ; +0xb, 0x1401a794b\npush    r14                                                            ; +0xc, 0x1401a794c\nlea     rbp, [rsp-47h]                                                 ; +0xe, 0x1401a794e\nsub     rsp, 0C0h                                                      ; +0x13, 0x1401a7953\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x1401a795a\nxor     rax, rsp                                                       ; +0x21, 0x1401a7961\nmov     [rbp+57h+var_20], rax                                          ; +0x24, 0x1401a7964\nmov     rsi, r8                                                        ; +0x28, 0x1401a7968\nmov     rbx, rdx                                                       ; +0x2b, 0x1401a796b\nmov     rdi, rcx                                                       ; +0x2e, 0x1401a796e\nxor     r14d, r14d                                                     ; +0x31, 0x1401a7971\nmov     [rbp+57h+var_B0], r14d                                         ; +0x34, 0x1401a7974\nmov     rax, [r8]                                                      ; +0x38, 0x1401a7978\ncmp     [rax+0F40h], r14                                               ; +0x3b, 0x1401a797b\njnz     short loc_1401A7989                                            ; +0x42, 0x1401a7982\nmov     eax, r14d                                                      ; +0x44, 0x1401a7984\njmp     short loc_1401A79A3                                            ; +0x47, 0x1401a7987\nmov     rcx, [rdx]                                                     ; +0x49, 0x1401a7989\nadd     rcx, 3D00h                                                     ; +0x4c, 0x1401a798c\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x53, 0x1401a7993\njbe     short loc_1401A799D                                            ; +0x58, 0x1401a7998\nmov     rcx, [rcx]; String                                             ; +0x5a, 0x1401a799a\ncall    cs:atoi                                                        ; +0x5d, 0x1401a799d\nmov     r8, [rdi]                                                      ; +0x63, 0x1401a79a3\nmov     edx, eax                                                       ; +0x66, 0x1401a79a6\nmov     rcx, rdi                                                       ; +0x68, 0x1401a79a8\ncall    qword ptr [r8+630h]                                            ; +0x6b, 0x1401a79ab\nmov     rax, [rsi]                                                     ; +0x72, 0x1401a79b2\ncmp     [rax+0F8h], r14                                                ; +0x75, 0x1401a79b5\njnz     short loc_1401A79E0                                            ; +0x7c, 0x1401a79bc\nxorps   xmm0, xmm0                                                     ; +0x7e, 0x1401a79be\nmovups  xmmword ptr [rbp+57h+Block], xmm0                              ; +0x81, 0x1401a79c1\nmov     [rbp+57h+var_50], r14                                          ; +0x85, 0x1401a79c5\nmov     [rbp+57h+var_48], 0Fh                                          ; +0x89, 0x1401a79c9\nmov     byte ptr [rbp+57h+Block], r14b                                 ; +0x91, 0x1401a79d1\nlea     rax, [rbp+57h+Block]                                           ; +0x95, 0x1401a79d5\nmov     ebx, 1                                                         ; +0x99, 0x1401a79d9\njmp     short loc_1401A79F9                                            ; +0x9e, 0x1401a79de\nmov     rdx, [rbx]                                                     ; +0xa0, 0x1401a79e0\nadd     rdx, 3E0h                                                      ; +0xa3, 0x1401a79e3\nlea     rcx, [rbp+57h+var_40]                                          ; +0xaa, 0x1401a79ea\ncall    sub_14003BDB0                                                  ; +0xae, 0x1401a79ee\nnop                                                                    ; +0xb3, 0x1401a79f3\nmov     ebx, 2                                                         ; +0xb4, 0x1401a79f4\nmov     [rbp+57h+var_B0], ebx                                          ; +0xb9, 0x1401a79f9\nxorps   xmm0, xmm0                                                     ; +0xbc, 0x1401a79fc\nmovups  [rbp+57h+var_A8], xmm0                                         ; +0xbf, 0x1401a79ff\nmov     qword ptr [rbp+57h+var_98], r14                                ; +0xc3, 0x1401a7a03\nmov     qword ptr [rbp+57h+var_98+8], r14                              ; +0xc7, 0x1401a7a07\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xcb, 0x1401a7a0b\nmovups  [rbp+57h+var_A8], xmm0                                         ; +0xce, 0x1401a7a0e\nmovups  xmm1, xmmword ptr [rax+10h]                                    ; +0xd2, 0x1401a7a12\nmovups  [rbp+57h+var_98], xmm1                                         ; +0xd6, 0x1401a7a16\nmov     [rax+10h], r14                                                 ; +0xda, 0x1401a7a1a\nmov     qword ptr [rax+18h], 0Fh                                       ; +0xde, 0x1401a7a1e\nmov     byte ptr [rax], 0                                              ; +0xe6, 0x1401a7a26\nlea     rax, [rbp+57h+var_A8]                                          ; +0xe9, 0x1401a7a29\nmov     [rbp+57h+var_88], rax                                          ; +0xed, 0x1401a7a2d\nor      ebx, 4                                                         ; +0xf1, 0x1401a7a31\ncmp     qword ptr [rbp+57h+var_98], 0                                  ; +0xf4, 0x1401a7a34\njnz     short loc_1401A7A5D                                            ; +0xf9, 0x1401a7a39\nmovups  xmm0, [rbp+57h+var_A8]                                         ; +0xfb, 0x1401a7a3b\nmovups  [rbp+57h+var_80], xmm0                                         ; +0xff, 0x1401a7a3f\nmovups  xmm1, [rbp+57h+var_98]                                         ; +0x103, 0x1401a7a43\nmovups  [rbp+57h+var_70], xmm1                                         ; +0x107, 0x1401a7a47\nmov     qword ptr [rbp+57h+var_98], r14                                ; +0x10b, 0x1401a7a4b\nmov     qword ptr [rbp+57h+var_98+8], 0Fh                              ; +0x10f, 0x1401a7a4f\nmov     byte ptr [rbp+57h+var_A8], 0                                   ; +0x117, 0x1401a7a57\njmp     short loc_1401A7A6B                                            ; +0x11b, 0x1401a7a5b\nlea     rdx, [rbp+57h+var_A8]                                          ; +0x11d, 0x1401a7a5d\nlea     rcx, [rbp+57h+var_80]                                          ; +0x121, 0x1401a7a61\ncall    cs:?base64URLDecode@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@@Z; cocos2d::ZipUtils::base64URLDecode(std::string const &) ; +0x125, 0x1401a7a65\nmov     [rbp+57h+var_B0], ebx                                          ; +0x12b, 0x1401a7a6b\nlea     rcx, [rbp+57h+var_A8]                                          ; +0x12e, 0x1401a7a6e\ncall    sub_14003A830                                                  ; +0x132, 0x1401a7a72\nxor     r8d, r8d                                                       ; +0x137, 0x1401a7a77\nlea     rdx, [rbp+57h+var_80]                                          ; +0x13a, 0x1401a7a7a\nmov     rcx, rdi                                                       ; +0x13e, 0x1401a7a7e\ncall    TextGameObject__updateTextObject                               ; +0x141, 0x1401a7a81\nnop                                                                    ; +0x146, 0x1401a7a86\ntest    bl, 2                                                          ; +0x147, 0x1401a7a87\njz      short loc_1401A7A99                                            ; +0x14a, 0x1401a7a8a\nand     ebx, 0FFFFFFFDh                                                ; +0x14c, 0x1401a7a8c\nlea     rcx, [rbp+57h+var_40]                                          ; +0x14f, 0x1401a7a8f\ncall    sub_14003A830                                                  ; +0x153, 0x1401a7a93\nnop                                                                    ; +0x158, 0x1401a7a98\ntest    bl, 1                                                          ; +0x159, 0x1401a7a99\njz      short loc_1401A7ADC                                            ; +0x15c, 0x1401a7a9c\nmov     rdx, [rbp+57h+var_48]                                          ; +0x15e, 0x1401a7a9e\ncmp     rdx, 0Fh                                                       ; +0x162, 0x1401a7aa2\njbe     short loc_1401A7ADC                                            ; +0x166, 0x1401a7aa6\ninc     rdx                                                            ; +0x168, 0x1401a7aa8\nmov     rcx, [rbp+57h+Block]; Block                                    ; +0x16b, 0x1401a7aab\nmov     rax, rcx                                                       ; +0x16f, 0x1401a7aaf\ncmp     rdx, 1000h                                                     ; +0x172, 0x1401a7ab2\njb      short loc_1401A7AD7                                            ; +0x179, 0x1401a7ab9\nadd     rdx, 27h ; '''                                                 ; +0x17b, 0x1401a7abb\nmov     rcx, [rcx-8]                                                   ; +0x17f, 0x1401a7abf\nsub     rax, rcx                                                       ; +0x183, 0x1401a7ac3\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x186, 0x1401a7ac6\ncmp     rax, 1Fh                                                       ; +0x18a, 0x1401a7aca\njbe     short loc_1401A7AD7                                            ; +0x18e, 0x1401a7ace\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x190, 0x1401a7ad0\ndb 0CCh                                                                ; +0x196, 0x1401a7ad6\ncall    j_j_free                                                       ; +0x197, 0x1401a7ad7\nmov     rcx, [rbp+57h+var_20]                                          ; +0x19c, 0x1401a7adc\nxor     rcx, rsp; StackCookie                                          ; +0x1a0, 0x1401a7ae0\ncall    __security_check_cookie                                        ; +0x1a3, 0x1401a7ae3\nlea     r11, [rsp+0D0h+var_10]                                         ; +0x1a8, 0x1401a7ae8\nmov     rbx, [r11+30h]                                                 ; +0x1b0, 0x1401a7af0\nmov     rsi, [r11+38h]                                                 ; +0x1b4, 0x1401a7af4\nmov     rsp, r11                                                       ; +0x1b8, 0x1401a7af8\npop     r14                                                            ; +0x1bb, 0x1401a7afb\npop     rdi                                                            ; +0x1bd, 0x1401a7afd\npop     rbp                                                            ; +0x1be, 0x1401a7afe\nretn                                                                   ; +0x1bf, 0x1401a7aff", "xrefs": ["<???> @ 0x14055e018", "<???> @ 0x1406cc120"], "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"}