{"type": "func", "start": 4300873360, "end": 4300873630, "name": "EnhancedGameObject::create", "pseudocode": "// \n// EnhancedGameObject::create from 0x1005a1e90 to 0x1005a1f9e (270 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x10059d4b0\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\nEnhancedGameObject *__fastcall EnhancedGameObject::create(const char *a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x5A8u);\n  GameObject::GameObject((GameObject *)v1);\n  *(_QWORD *)v1 = off_100971BD0;\n  *((_QWORD *)v1 + 40) = off_100972318;\n  *((_QWORD *)v1 + 43) = off_100972398;\n  *(_OWORD *)(v1 + 1347) = 0;\n  *(_QWORD *)(v1 + 1361) = 0;\n  *((_DWORD *)v1 + 343) = 1065353216;\n  *((_WORD *)v1 + 688) = 0;\n  v1[1378] = 0;\n  *(_QWORD *)(v1 + 1380) = 0x13F800000LL;\n  v1[1388] = 0;\n  *((_OWORD *)v1 + 87) = 0;\n  v1[1408] = 0;\n  *((_DWORD *)v1 + 353) = 1065353216;\n  *((_WORD *)v1 + 712) = 0;\n  *((_QWORD *)v1 + 177) = 0;\n  *(_OWORD *)(v1 + 1428) = 0;\n  *(_DWORD *)(v1 + 1443) = 0;\n  if ( CCSpritePlus::initWithSpriteFrameName((CCSpritePlus *)v1, a1) )\n  {\n    GameObject::commonSetup((GameObject *)v1);\n    *((_DWORD *)v1 + 312) = 4;\n    v1[313] = 0;\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (EnhancedGameObject *)v1;\n}", "assembly": "; \n; EnhancedGameObject::create from 0x1005a1e90 to 0x1005a1f9e (270 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x10059d4b0\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, 0x1005a1e90\nmov     rbp, rsp                                                       ; +0x1, 0x1005a1e91\npush    r14                                                            ; +0x4, 0x1005a1e94\npush    rbx                                                            ; +0x6, 0x1005a1e96\nmov     r14, rdi                                                       ; +0x7, 0x1005a1e97\nmov     edi, 5A8h; __sz                                                ; +0xa, 0x1005a1e9a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1005a1e9f\nmov     rbx, rax                                                       ; +0x14, 0x1005a1ea4\nmov     rdi, rax                                                       ; +0x17, 0x1005a1ea7\ncall    GameObject__GameObject                                         ; +0x1a, 0x1005a1eaa\nlea     rax, off_100971BD0                                             ; +0x1f, 0x1005a1eaf\nmov     [rbx], rax                                                     ; +0x26, 0x1005a1eb6\nlea     rax, off_100972318                                             ; +0x29, 0x1005a1eb9\nmov     [rbx+140h], rax                                                ; +0x30, 0x1005a1ec0\nlea     rax, off_100972398                                             ; +0x37, 0x1005a1ec7\nmov     [rbx+158h], rax                                                ; +0x3e, 0x1005a1ece\nxorps   xmm0, xmm0                                                     ; +0x45, 0x1005a1ed5\nmovups  xmmword ptr [rbx+543h], xmm0                                   ; +0x48, 0x1005a1ed8\nmov     qword ptr [rbx+551h], 0                                        ; +0x4f, 0x1005a1edf\nmov     dword ptr [rbx+55Ch], 3F800000h                                ; +0x5a, 0x1005a1eea\nmov     word ptr [rbx+560h], 0                                         ; +0x64, 0x1005a1ef4\nmov     byte ptr [rbx+562h], 0                                         ; +0x6d, 0x1005a1efd\nmov     rax, 13F800000h                                                ; +0x74, 0x1005a1f04\nmov     [rbx+564h], rax                                                ; +0x7e, 0x1005a1f0e\nmov     byte ptr [rbx+56Ch], 0                                         ; +0x85, 0x1005a1f15\nmovups  xmmword ptr [rbx+570h], xmm0                                   ; +0x8c, 0x1005a1f1c\nmov     byte ptr [rbx+580h], 0                                         ; +0x93, 0x1005a1f23\nmov     dword ptr [rbx+584h], 3F800000h                                ; +0x9a, 0x1005a1f2a\nmov     word ptr [rbx+590h], 0                                         ; +0xa4, 0x1005a1f34\nmov     qword ptr [rbx+588h], 0                                        ; +0xad, 0x1005a1f3d\nmovups  xmmword ptr [rbx+594h], xmm0                                   ; +0xb8, 0x1005a1f48\nmov     dword ptr [rbx+5A3h], 0                                        ; +0xbf, 0x1005a1f4f\nmov     rdi, rbx                                                       ; +0xc9, 0x1005a1f59\nmov     rsi, r14                                                       ; +0xcc, 0x1005a1f5c\ncall    CCSpritePlus__initWithSpriteFrameName                          ; +0xcf, 0x1005a1f5f\ntest    al, al                                                         ; +0xd4, 0x1005a1f64\njz      short loc_1005A1F8B                                            ; +0xd6, 0x1005a1f66\nmov     rdi, rbx                                                       ; +0xd8, 0x1005a1f68\ncall    GameObject__commonSetup                                        ; +0xdb, 0x1005a1f6b\nmov     dword ptr [rbx+4E0h], 4                                        ; +0xe0, 0x1005a1f70\nmov     byte ptr [rbx+139h], 0                                         ; +0xea, 0x1005a1f7a\nmov     rdi, rbx                                                       ; +0xf1, 0x1005a1f81\ncall    cocos2d__CCObject__autorelease                                 ; +0xf4, 0x1005a1f84\njmp     short loc_1005A1F96                                            ; +0xf9, 0x1005a1f89\nmov     rax, [rbx]                                                     ; +0xfb, 0x1005a1f8b\nmov     rdi, rbx                                                       ; +0xfe, 0x1005a1f8e\ncall    qword ptr [rax+10h]                                            ; +0x101, 0x1005a1f91\nxor     ebx, ebx                                                       ; +0x104, 0x1005a1f94\nmov     rax, rbx                                                       ; +0x106, 0x1005a1f96\npop     rbx                                                            ; +0x109, 0x1005a1f99\npop     r14                                                            ; +0x10a, 0x1005a1f9a\npop     rbp                                                            ; +0x10c, 0x1005a1f9c\nretn                                                                   ; +0x10d, 0x1005a1f9d", "xrefs": ["GameObject::createWithKey @ 0x10059d4b0"], "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"}