{"type": "func", "start": 6442927808, "end": 6442927945, "name": "sub_1800746C0", "pseudocode": "// \n// sub_1800746C0 from 0x1800746c0 to 0x180074749 (137 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180106bd8\n// > <???> @ 0x1801be68c\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:21:57 +0000\n// \n\n_QWORD *__fastcall sub_1800746C0(_QWORD *a1, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(a1, 8, *(a1 - 1), tinyxml2::XMLVisitor::~XMLVisitor);\n    if ( v3 )\n      j_j_j_free_0(a1 - 1);\n    return a1 - 1;\n  }\n  else\n  {\n    *a1 = &tinyxml2::XMLVisitor::`vftable';\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(a1);\n    return a1;\n  }\n}", "assembly": "; \n; sub_1800746C0 from 0x1800746c0 to 0x180074749 (137 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180106bd8\n; > <???> @ 0x1801be68c\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:21:57 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800746c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800746c5\npush    rdi                                                            ; +0xa, 0x1800746ca\nsub     rsp, 20h                                                       ; +0xb, 0x1800746cb\nmov     rbx, rcx                                                       ; +0xf, 0x1800746cf\nmov     esi, edx                                                       ; +0x12, 0x1800746d2\nand     esi, 1                                                         ; +0x14, 0x1800746d4\ntest    dl, 2                                                          ; +0x17, 0x1800746d7\njz      short loc_18007471E                                            ; +0x1a, 0x1800746da\nlea     r9, ??1XMLVisitor@tinyxml2@@UEAA@XZ; tinyxml2::XMLVisitor::~XMLVisitor(void) ; +0x1c, 0x1800746dc\nmov     r8, [rcx-8]                                                    ; +0x23, 0x1800746e3\nmov     edx, 8                                                         ; +0x27, 0x1800746e7\ncall    sub_1800E49F8                                                  ; +0x2c, 0x1800746ec\ntest    esi, esi                                                       ; +0x31, 0x1800746f1\njz      short loc_18007470A                                            ; +0x33, 0x1800746f3\nmov     rdx, [rbx-8]                                                   ; +0x35, 0x1800746f5\nlea     rdx, ds:8[rdx*8]                                               ; +0x39, 0x1800746f9\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180074701\ncall    j_j_j_free_0                                                   ; +0x45, 0x180074705\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18007470a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18007470e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180074713\nadd     rsp, 20h                                                       ; +0x58, 0x180074718\npop     rdi                                                            ; +0x5c, 0x18007471c\nretn                                                                   ; +0x5d, 0x18007471d\nlea     rax, ??_7XMLVisitor@tinyxml2@@6B@; const tinyxml2::XMLVisitor::`vftable' ; +0x5e, 0x18007471e\nmov     [rcx], rax                                                     ; +0x65, 0x180074725\ntest    esi, esi                                                       ; +0x68, 0x180074728\njz      short loc_180074736                                            ; +0x6a, 0x18007472a\nmov     edx, 8                                                         ; +0x6c, 0x18007472c\ncall    j_j_free_0                                                     ; +0x71, 0x180074731\nmov     rax, rbx                                                       ; +0x76, 0x180074736\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x79, 0x180074739\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7e, 0x18007473e\nadd     rsp, 20h                                                       ; +0x83, 0x180074743\npop     rdi                                                            ; +0x87, 0x180074747\nretn                                                                   ; +0x88, 0x180074748", "xrefs": ["<???> @ 0x180106bd8", "<???> @ 0x1801be68c"], "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"}