{"type": "func", "start": 5372359840, "end": 5372360003, "name": "GJItemIcon::dGJItemIcon", "pseudocode": "// \n// GJItemIcon::dGJItemIcon from 0x14037b4a0 to 0x14037b543 (163 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14076fd78\n// > <???> @ 0x1409227e4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:03 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid *__fastcall GJItemIcon::dGJItemIcon(void *Block, char a2)\n{\n  __int64 *v4; // rcx\n  void *v5; // rax\n\n  *(_QWORD *)Block = &GJItemIcon::`vftable';\n  *((_QWORD *)Block + 40) = &GJItemIcon::`vftable';\n  *((_QWORD *)Block + 43) = &GJItemIcon::`vftable';\n  v4 = (__int64 *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = (__int64 *)qword_14090BFD0;\n  }\n  GameManager::unloadIcons(v4, *((_DWORD *)Block + 152));\n  cocos2d::CCSprite::~CCSprite((cocos2d::CCSprite *)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; GJItemIcon::dGJItemIcon from 0x14037b4a0 to 0x14037b543 (163 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14076fd78\n; > <???> @ 0x1409227e4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:03 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14037b4a0\npush    rdi                                                            ; +0x5, 0x14037b4a5\nsub     rsp, 20h                                                       ; +0x6, 0x14037b4a6\nmov     edi, edx                                                       ; +0xa, 0x14037b4aa\nmov     rbx, rcx                                                       ; +0xc, 0x14037b4ac\nlea     rax, ??_7GJItemIcon@@6B@; const GJItemIcon::`vftable'          ; +0xf, 0x14037b4af\nmov     [rcx], rax                                                     ; +0x16, 0x14037b4b6\nlea     rax, ??_7GJItemIcon@@6B@_0; const GJItemIcon::`vftable'        ; +0x19, 0x14037b4b9\nmov     [rcx+140h], rax                                                ; +0x20, 0x14037b4c0\nlea     rax, ??_7GJItemIcon@@6B@_1; const GJItemIcon::`vftable'        ; +0x27, 0x14037b4c7\nmov     [rcx+158h], rax                                                ; +0x2e, 0x14037b4ce\nmov     rcx, cs:qword_14090BFD0                                        ; +0x35, 0x14037b4d5\ntest    rcx, rcx                                                       ; +0x3c, 0x14037b4dc\njnz     short loc_14037B50D                                            ; +0x3f, 0x14037b4df\nmov     ecx, 6E8h; Size                                                ; +0x41, 0x14037b4e1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x46, 0x14037b4e6\nmov     rcx, rax                                                       ; +0x4b, 0x14037b4eb\ncall    GameManager__GameManager                                       ; +0x4e, 0x14037b4ee\nmov     cs:qword_14090BFD0, rax                                        ; +0x53, 0x14037b4f3\nmov     rcx, [rax]                                                     ; +0x5a, 0x14037b4fa\nmov     rdx, [rcx+48h]                                                 ; +0x5d, 0x14037b4fd\nmov     rcx, rax                                                       ; +0x61, 0x14037b501\ncall    rdx                                                            ; +0x64, 0x14037b504\nmov     rcx, cs:qword_14090BFD0                                        ; +0x66, 0x14037b506\nmov     edx, [rbx+260h]                                                ; +0x6d, 0x14037b50d\ncall    GameManager__unloadIcons                                       ; +0x73, 0x14037b513\nmov     rcx, rbx                                                       ; +0x78, 0x14037b518\ncall    cs:__imp_??1CCSprite@cocos2d@@UEAA@XZ; cocos2d::CCSprite::~CCSprite(void) ; +0x7b, 0x14037b51b\nnop                                                                    ; +0x81, 0x14037b521\ntest    dil, 1                                                         ; +0x82, 0x14037b522\njz      short loc_14037B535                                            ; +0x86, 0x14037b526\nmov     edx, 278h                                                      ; +0x88, 0x14037b528\nmov     rcx, rbx; Block                                                ; +0x8d, 0x14037b52d\ncall    j_j_free                                                       ; +0x90, 0x14037b530\nmov     rax, rbx                                                       ; +0x95, 0x14037b535\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x14037b538\nadd     rsp, 20h                                                       ; +0x9d, 0x14037b53d\npop     rdi                                                            ; +0xa1, 0x14037b541\nretn                                                                   ; +0xa2, 0x14037b542", "xrefs": ["<???> @ 0x14076fd78", "<???> @ 0x1409227e4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}