{"type": "func", "start": 5371302368, "end": 5371302815, "name": "SimplePlayer::dSimplePlayer", "pseudocode": "// \n// SimplePlayer::dSimplePlayer from 0x1402791e0 to 0x14027939f (447 bytes)\n// \n// 2 xrefs:\n// > sub_140272D10 @ 0x140272d1f\n// > <???> @ 0x1406d1058\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 SimplePlayer::dSimplePlayer(__int64 a1)\n{\n  GameManager *v2; // rcx\n  void *v3; // rax\n  __int64 v4; // r14\n  void *v5; // rax\n  int v6; // ebp\n  _QWORD *v7; // rax\n  _QWORD *v8; // rbx\n  int v9; // edi\n  __int64 v10; // rax\n  __int64 v11; // rsi\n  __int64 **v12; // rax\n  __int64 i; // rax\n  __int64 *j; // rax\n\n  *(_QWORD *)a1 = &SimplePlayer::`vftable';\n  *(_QWORD *)(a1 + 320) = &SimplePlayer::`vftable';\n  *(_QWORD *)(a1 + 344) = &SimplePlayer::`vftable';\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v3 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::unloadIcons(v2, *(_DWORD *)(a1 + 664));\n  if ( *(_BYTE *)(a1 + 672) )\n  {\n    v4 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v5 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = qword_1406C2ED8;\n    }\n    v6 = *(_DWORD *)(a1 + 664);\n    v7 = *(_QWORD **)(v4 + 1160);\n    v8 = (_QWORD *)*v7;\n    if ( (_QWORD *)*v7 != v7 )\n    {\n      do\n      {\n        v9 = 0;\n        v10 = v8[5];\n        if ( (v8[6] - v10) >> 3 )\n        {\n          v11 = 0;\n          do\n          {\n            if ( *(_DWORD *)(*(_QWORD *)(v11 + v10) + 664LL) == v6 )\n            {\n              memmove((void *)(v10 + 8LL * v9), (const void *)(v10 + 8LL * v9 + 8), v8[6] - (v10 + 8LL * v9 + 8));\n              v8[6] -= 8LL;\n            }\n            else\n            {\n              ++v9;\n              v11 += 8;\n            }\n            v10 = v8[5];\n          }\n          while ( v9 < (unsigned __int64)((v8[6] - v10) >> 3) );\n        }\n        v12 = (__int64 **)v8[2];\n        if ( *((_BYTE *)v12 + 25) )\n        {\n          for ( i = v8[1]; !*(_BYTE *)(i + 25); i = *(_QWORD *)(i + 8) )\n          {\n            if ( v8 != *(_QWORD **)(i + 16) )\n              break;\n            v8 = (_QWORD *)i;\n          }\n          v8 = (_QWORD *)i;\n        }\n        else\n        {\n          v8 = (_QWORD *)v8[2];\n          for ( j = *v12; !*((_BYTE *)j + 25); j = (__int64 *)*j )\n            v8 = j;\n        }\n      }\n      while ( v8 != *(_QWORD **)(v4 + 1160) );\n    }\n  }\n  cocos2d::CCSprite::~CCSprite((cocos2d::CCSprite *)a1);\n}", "assembly": "; \n; SimplePlayer::dSimplePlayer from 0x1402791e0 to 0x14027939f (447 bytes)\n; \n; 2 xrefs:\n; > sub_140272D10 @ 0x140272d1f\n; > <???> @ 0x1406d1058\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_0], rbx                                               ; +0x0, 0x1402791e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1402791e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1402791ea\npush    rdi                                                            ; +0xf, 0x1402791ef\npush    r14                                                            ; +0x10, 0x1402791f0\npush    r15                                                            ; +0x12, 0x1402791f2\nsub     rsp, 20h                                                       ; +0x14, 0x1402791f4\nmov     r15, rcx                                                       ; +0x18, 0x1402791f8\nlea     rax, ??_7SimplePlayer@@6B@; const SimplePlayer::`vftable'      ; +0x1b, 0x1402791fb\nmov     [rcx], rax                                                     ; +0x22, 0x140279202\nlea     rax, ??_7SimplePlayer@@6B@_0; const SimplePlayer::`vftable'    ; +0x25, 0x140279205\nmov     [rcx+140h], rax                                                ; +0x2c, 0x14027920c\nlea     rax, ??_7SimplePlayer@@6B@_1; const SimplePlayer::`vftable'    ; +0x33, 0x140279213\nmov     [rcx+158h], rax                                                ; +0x3a, 0x14027921a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x41, 0x140279221\ntest    rcx, rcx                                                       ; +0x48, 0x140279228\njnz     short loc_140279256                                            ; +0x4b, 0x14027922b\nmov     ecx, 668h; Size                                                ; +0x4d, 0x14027922d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x52, 0x140279232\nmov     rcx, rax                                                       ; +0x57, 0x140279237\ncall    sub_14017AB00                                                  ; +0x5a, 0x14027923a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5f, 0x14027923f\nmov     rdx, [rax]                                                     ; +0x66, 0x140279246\nmov     rcx, rax                                                       ; +0x69, 0x140279249\ncall    qword ptr [rdx+48h]                                            ; +0x6c, 0x14027924c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6f, 0x14027924f\nmov     edx, [r15+298h]                                                ; +0x76, 0x140279256\ncall    GameManager__unloadIcons                                       ; +0x7d, 0x14027925d\ncmp     byte ptr [r15+2A0h], 0                                         ; +0x82, 0x140279262\njz      loc_14027937D                                                  ; +0x8a, 0x14027926a\nmov     r14, cs:qword_1406C2ED8                                        ; +0x90, 0x140279270\ntest    r14, r14                                                       ; +0x97, 0x140279277\njnz     short loc_1402792A5                                            ; +0x9a, 0x14027927a\nmov     ecx, 668h; Size                                                ; +0x9c, 0x14027927c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa1, 0x140279281\nmov     rcx, rax                                                       ; +0xa6, 0x140279286\ncall    sub_14017AB00                                                  ; +0xa9, 0x140279289\nmov     cs:qword_1406C2ED8, rax                                        ; +0xae, 0x14027928e\nmov     rdx, [rax]                                                     ; +0xb5, 0x140279295\nmov     rcx, rax                                                       ; +0xb8, 0x140279298\ncall    qword ptr [rdx+48h]                                            ; +0xbb, 0x14027929b\nmov     r14, cs:qword_1406C2ED8                                        ; +0xbe, 0x14027929e\nmov     ebp, [r15+298h]                                                ; +0xc5, 0x1402792a5\nmov     rax, [r14+488h]                                                ; +0xcc, 0x1402792ac\nmov     rbx, [rax]                                                     ; +0xd3, 0x1402792b3\ncmp     rbx, rax                                                       ; +0xd6, 0x1402792b6\njz      loc_14027937D                                                  ; +0xd9, 0x1402792b9\nnop                                                                    ; +0xdf, 0x1402792bf\nxor     edi, edi                                                       ; +0xe0, 0x1402792c0\nmov     rax, [rbx+28h]                                                 ; +0xe2, 0x1402792c2\nmov     rcx, [rbx+30h]                                                 ; +0xe6, 0x1402792c6\nsub     rcx, rax                                                       ; +0xea, 0x1402792ca\nsar     rcx, 3                                                         ; +0xed, 0x1402792cd\ntest    rcx, rcx                                                       ; +0xf1, 0x1402792d1\njz      short loc_140279327                                            ; +0xf4, 0x1402792d4\nxor     esi, esi                                                       ; +0xf6, 0x1402792d6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xf8, 0x1402792d8\nmov     rcx, [rsi+rax]                                                 ; +0x100, 0x1402792e0\ncmp     [rcx+298h], ebp                                                ; +0x104, 0x1402792e4\njnz     short loc_14027930A                                            ; +0x10a, 0x1402792ea\nmovsxd  rcx, edi                                                       ; +0x10c, 0x1402792ec\nlea     rcx, [rax+rcx*8]; void *                                       ; +0x10f, 0x1402792ef\nlea     rdx, [rcx+8]; Src                                              ; +0x113, 0x1402792f3\nmov     r8, [rbx+30h]                                                  ; +0x117, 0x1402792f7\nsub     r8, rdx; Size                                                  ; +0x11b, 0x1402792fb\ncall    memmove                                                        ; +0x11e, 0x1402792fe\nadd     qword ptr [rbx+30h], 0FFFFFFFFFFFFFFF8h                        ; +0x123, 0x140279303\njmp     short loc_140279310                                            ; +0x128, 0x140279308\ninc     edi                                                            ; +0x12a, 0x14027930a\nadd     rsi, 8                                                         ; +0x12c, 0x14027930c\nmov     rax, [rbx+28h]                                                 ; +0x130, 0x140279310\nmov     rdx, [rbx+30h]                                                 ; +0x134, 0x140279314\nsub     rdx, rax                                                       ; +0x138, 0x140279318\nsar     rdx, 3                                                         ; +0x13b, 0x14027931b\nmovsxd  rcx, edi                                                       ; +0x13f, 0x14027931f\ncmp     rcx, rdx                                                       ; +0x142, 0x140279322\njb      short loc_1402792E0                                            ; +0x145, 0x140279325\nmov     rax, [rbx+10h]                                                 ; +0x147, 0x140279327\ncmp     byte ptr [rax+19h], 0                                          ; +0x14b, 0x14027932b\njz      short loc_140279358                                            ; +0x14f, 0x14027932f\nmov     rax, [rbx+8]                                                   ; +0x151, 0x140279331\ncmp     byte ptr [rax+19h], 0                                          ; +0x155, 0x140279335\njnz     short loc_140279353                                            ; +0x159, 0x140279339\nnop     dword ptr [rax+rax+00h]                                        ; +0x15b, 0x14027933b\ncmp     rbx, [rax+10h]                                                 ; +0x160, 0x140279340\njnz     short loc_140279353                                            ; +0x164, 0x140279344\nmov     rbx, rax                                                       ; +0x166, 0x140279346\nmov     rax, [rax+8]                                                   ; +0x169, 0x140279349\ncmp     byte ptr [rax+19h], 0                                          ; +0x16d, 0x14027934d\njz      short loc_140279340                                            ; +0x171, 0x140279351\nmov     rbx, rax                                                       ; +0x173, 0x140279353\njmp     short loc_140279370                                            ; +0x176, 0x140279356\nmov     rbx, rax                                                       ; +0x178, 0x140279358\nmov     rax, [rax]                                                     ; +0x17b, 0x14027935b\ncmp     byte ptr [rax+19h], 0                                          ; +0x17e, 0x14027935e\njnz     short loc_140279370                                            ; +0x182, 0x140279362\nmov     rbx, rax                                                       ; +0x184, 0x140279364\nmov     rax, [rax]                                                     ; +0x187, 0x140279367\ncmp     byte ptr [rax+19h], 0                                          ; +0x18a, 0x14027936a\njz      short loc_140279364                                            ; +0x18e, 0x14027936e\ncmp     rbx, [r14+488h]                                                ; +0x190, 0x140279370\njnz     loc_1402792C0                                                  ; +0x197, 0x140279377\nmov     rcx, r15                                                       ; +0x19d, 0x14027937d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1a0, 0x140279380\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x1a5, 0x140279385\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x1aa, 0x14027938a\nadd     rsp, 20h                                                       ; +0x1af, 0x14027938f\npop     r15                                                            ; +0x1b3, 0x140279393\npop     r14                                                            ; +0x1b5, 0x140279395\npop     rdi                                                            ; +0x1b7, 0x140279397\njmp     cs:__imp_??1CCSprite@cocos2d@@UEAA@XZ; cocos2d::CCSprite::~CCSprite(void) ; +0x1b8, 0x140279398", "xrefs": ["sub_140272D10 @ 0x140272d1f", "<???> @ 0x1406d1058"], "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"}