{"type": "func", "start": 5369441360, "end": 5369441643, "name": "StatsObject::create", "pseudocode": "// \n// StatsObject::create from 0x1400b2c50 to 0x1400b2d6b (283 bytes)\n// \n// 19 xrefs:\n// > StatsLayer::customSetup @ 0x1404c7cd0\n// > StatsLayer::customSetup @ 0x1404c7d30\n// > StatsLayer::customSetup @ 0x1404c7d90\n// > StatsLayer::customSetup @ 0x1404c7df0\n// > StatsLayer::customSetup @ 0x1404c7e50\n// > StatsLayer::customSetup @ 0x1404c7eb0\n// > StatsLayer::customSetup @ 0x1404c7f10\n// > StatsLayer::customSetup @ 0x1404c7f70\n// > StatsLayer::customSetup @ 0x1404c7fd0\n// > StatsLayer::customSetup @ 0x1404c8030\n// > StatsLayer::customSetup @ 0x1404c8090\n// > StatsLayer::customSetup @ 0x1404c80f0\n// > StatsLayer::customSetup @ 0x1404c8150\n// > StatsLayer::customSetup @ 0x1404c81b0\n// > StatsLayer::customSetup @ 0x1404c8210\n// > StatsLayer::customSetup @ 0x1404c8270\n// > StatsLayer::customSetup @ 0x1404c82d0\n// > StatsLayer::customSetup @ 0x1404c837a\n// > <???> @ 0x1406c7a94\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=2\nStatsObject *StatsObject::create(const char *a1, int a2)\n{\n  StatsObject *v4; // rbx\n  size_t v5; // r8\n  cocos2d::CCString *v6; // rax\n  void *v7; // rcx\n  void *Block[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int64 v10; // [rsp+38h] [rbp-20h]\n  unsigned __int64 v11; // [rsp+40h] [rbp-18h]\n\n  v4 = (StatsObject *)operator new(0x48u);\n  *(_OWORD *)&v4->__vftable = 0;\n  *(_OWORD *)&v4->m_nTag = 0;\n  *(_OWORD *)&v4->m_uIndexInArray = 0;\n  *(_OWORD *)&v4->m_uOrderOfArrival = 0;\n  *(_QWORD *)&v4->m_value = 0;\n  cocos2d::CCObject::CCObject(v4);\n  v4->__vftable = (StatsObject_vtbl *)&StatsObject::`vftable';\n  *(_OWORD *)Block = 0;\n  v10 = 0;\n  v11 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( a1[v5] );\n  sub_14003A930(Block, a1, v5);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::create(Block);\n  v4->m_key = cocos2d::CCString::getCString(v6);\n  if ( v11 > 0xF )\n  {\n    v7 = Block[0];\n    if ( v11 + 1 >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v7);\n  }\n  v4->m_value = a2;\n  cocos2d::CCObject::autorelease(v4);\n  return v4;\n}", "assembly": "; \n; StatsObject::create from 0x1400b2c50 to 0x1400b2d6b (283 bytes)\n; \n; 19 xrefs:\n; > StatsLayer::customSetup @ 0x1404c7cd0\n; > StatsLayer::customSetup @ 0x1404c7d30\n; > StatsLayer::customSetup @ 0x1404c7d90\n; > StatsLayer::customSetup @ 0x1404c7df0\n; > StatsLayer::customSetup @ 0x1404c7e50\n; > StatsLayer::customSetup @ 0x1404c7eb0\n; > StatsLayer::customSetup @ 0x1404c7f10\n; > StatsLayer::customSetup @ 0x1404c7f70\n; > StatsLayer::customSetup @ 0x1404c7fd0\n; > StatsLayer::customSetup @ 0x1404c8030\n; > StatsLayer::customSetup @ 0x1404c8090\n; > StatsLayer::customSetup @ 0x1404c80f0\n; > StatsLayer::customSetup @ 0x1404c8150\n; > StatsLayer::customSetup @ 0x1404c81b0\n; > StatsLayer::customSetup @ 0x1404c8210\n; > StatsLayer::customSetup @ 0x1404c8270\n; > StatsLayer::customSetup @ 0x1404c82d0\n; > StatsLayer::customSetup @ 0x1404c837a\n; > <???> @ 0x1406c7a94\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+arg_8], rbx                                               ; +0x0, 0x1400b2c50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1400b2c55\npush    rdi                                                            ; +0xa, 0x1400b2c5a\nsub     rsp, 50h                                                       ; +0xb, 0x1400b2c5b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1400b2c5f\nxor     rax, rsp                                                       ; +0x16, 0x1400b2c66\nmov     [rsp+58h+var_10], rax                                          ; +0x19, 0x1400b2c69\nmov     esi, edx                                                       ; +0x1e, 0x1400b2c6e\nmov     rdi, rcx                                                       ; +0x20, 0x1400b2c70\nmov     ecx, 48h ; 'H'; Size                                           ; +0x23, 0x1400b2c73\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x1400b2c78\nmov     rbx, rax                                                       ; +0x2d, 0x1400b2c7d\nmov     [rsp+58h+var_38], rax                                          ; +0x30, 0x1400b2c80\nxorps   xmm0, xmm0                                                     ; +0x35, 0x1400b2c85\nxor     eax, eax                                                       ; +0x38, 0x1400b2c88\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x3a, 0x1400b2c8a\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x3d, 0x1400b2c8d\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x41, 0x1400b2c91\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x45, 0x1400b2c95\nmov     [rbx+40h], rax                                                 ; +0x49, 0x1400b2c99\nmov     rcx, rbx                                                       ; +0x4d, 0x1400b2c9d\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x50, 0x1400b2ca0\nlea     rax, ??_7StatsObject@@6B@; const StatsObject::`vftable'        ; +0x56, 0x1400b2ca6\nmov     [rbx], rax                                                     ; +0x5d, 0x1400b2cad\nxorps   xmm0, xmm0                                                     ; +0x60, 0x1400b2cb0\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x63, 0x1400b2cb3\nxor     eax, eax                                                       ; +0x68, 0x1400b2cb8\nmov     [rsp+58h+var_20], rax                                          ; +0x6a, 0x1400b2cba\nmov     [rsp+58h+var_18], rax                                          ; +0x6f, 0x1400b2cbf\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x74, 0x1400b2cc4\nnop     dword ptr [rax+rax+00h]                                        ; +0x7b, 0x1400b2ccb\ninc     r8                                                             ; +0x80, 0x1400b2cd0\ncmp     [rdi+r8], al                                                   ; +0x83, 0x1400b2cd3\njnz     short loc_1400B2CD0                                            ; +0x87, 0x1400b2cd7\nmov     rdx, rdi                                                       ; +0x89, 0x1400b2cd9\nlea     rcx, [rsp+58h+Block]                                           ; +0x8c, 0x1400b2cdc\ncall    sub_14003A930                                                  ; +0x91, 0x1400b2ce1\nnop                                                                    ; +0x96, 0x1400b2ce6\nlea     rcx, [rsp+58h+Block]                                           ; +0x97, 0x1400b2ce7\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x9c, 0x1400b2cec\nmov     rcx, rax                                                       ; +0xa2, 0x1400b2cf2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa5, 0x1400b2cf5\nmov     [rbx+38h], rax                                                 ; +0xab, 0x1400b2cfb\nmov     rdx, [rsp+58h+var_18]                                          ; +0xaf, 0x1400b2cff\ncmp     rdx, 0Fh                                                       ; +0xb4, 0x1400b2d04\njbe     short loc_1400B2D3F                                            ; +0xb8, 0x1400b2d08\ninc     rdx                                                            ; +0xba, 0x1400b2d0a\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0xbd, 0x1400b2d0d\nmov     rax, rcx                                                       ; +0xc2, 0x1400b2d12\ncmp     rdx, 1000h                                                     ; +0xc5, 0x1400b2d15\njb      short loc_1400B2D3A                                            ; +0xcc, 0x1400b2d1c\nadd     rdx, 27h ; '''                                                 ; +0xce, 0x1400b2d1e\nmov     rcx, [rcx-8]                                                   ; +0xd2, 0x1400b2d22\nsub     rax, rcx                                                       ; +0xd6, 0x1400b2d26\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xd9, 0x1400b2d29\ncmp     rax, 1Fh                                                       ; +0xdd, 0x1400b2d2d\njbe     short loc_1400B2D3A                                            ; +0xe1, 0x1400b2d31\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xe3, 0x1400b2d33\nalign 2                                                                ; +0xe9, 0x1400b2d39\ncall    j_j_free                                                       ; +0xea, 0x1400b2d3a\nmov     [rbx+40h], esi                                                 ; +0xef, 0x1400b2d3f\nmov     rcx, rbx                                                       ; +0xf2, 0x1400b2d42\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf5, 0x1400b2d45\nmov     rax, rbx                                                       ; +0xfb, 0x1400b2d4b\nmov     rcx, [rsp+58h+var_10]                                          ; +0xfe, 0x1400b2d4e\nxor     rcx, rsp; StackCookie                                          ; +0x103, 0x1400b2d53\ncall    __security_check_cookie                                        ; +0x106, 0x1400b2d56\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x10b, 0x1400b2d5b\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x110, 0x1400b2d60\nadd     rsp, 50h                                                       ; +0x115, 0x1400b2d65\npop     rdi                                                            ; +0x119, 0x1400b2d69\nretn                                                                   ; +0x11a, 0x1400b2d6a", "xrefs": ["StatsLayer::customSetup @ 0x1404c7cd0", "StatsLayer::customSetup @ 0x1404c7d30", "StatsLayer::customSetup @ 0x1404c7d90", "StatsLayer::customSetup @ 0x1404c7df0", "StatsLayer::customSetup @ 0x1404c7e50", "StatsLayer::customSetup @ 0x1404c7eb0", "StatsLayer::customSetup @ 0x1404c7f10", "StatsLayer::customSetup @ 0x1404c7f70", "StatsLayer::customSetup @ 0x1404c7fd0", "StatsLayer::customSetup @ 0x1404c8030", "StatsLayer::customSetup @ 0x1404c8090", "StatsLayer::customSetup @ 0x1404c80f0", "StatsLayer::customSetup @ 0x1404c8150", "StatsLayer::customSetup @ 0x1404c81b0", "StatsLayer::customSetup @ 0x1404c8210", "StatsLayer::customSetup @ 0x1404c8270", "StatsLayer::customSetup @ 0x1404c82d0", "StatsLayer::customSetup @ 0x1404c837a", "<???> @ 0x1406c7a94"], "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"}