{"type": "func", "start": 6442972192, "end": 6442972299, "name": "sub_18007F420", "pseudocode": "// \n// sub_18007F420 from 0x18007f420 to 0x18007f48b (107 bytes)\n// \n// 4 xrefs:\n// > sub_18007F510 @ 0x18007f51f\n// > sub_1800E2D40 @ 0x1800e2d47\n// > <???> @ 0x18013c42f\n// > <???> @ 0x1801b4f98\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 sub_18007F420(_QWORD *a1)\n{\n  unsigned __int64 v1; // rdx\n  _QWORD *v3; // rcx\n\n  v1 = a1[4];\n  if ( v1 > 0xF )\n  {\n    v3 = (_QWORD *)a1[1];\n    if ( v1 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v3 = (_QWORD *)*(v3 - 1);\n    }\n    j_j_free_0(v3);\n  }\n  a1[3] = 0;\n  a1[4] = 15;\n  *((_BYTE *)a1 + 8) = 0;\n  *a1 = &pugi::xml_writer::`vftable';\n  return &pugi::xml_writer::`vftable';\n}", "assembly": "; \n; sub_18007F420 from 0x18007f420 to 0x18007f48b (107 bytes)\n; \n; 4 xrefs:\n; > sub_18007F510 @ 0x18007f51f\n; > sub_1800E2D40 @ 0x1800e2d47\n; > <???> @ 0x18013c42f\n; > <???> @ 0x1801b4f98\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    rbx                                                            ; +0x0, 0x18007f420\nsub     rsp, 20h                                                       ; +0x2, 0x18007f422\nmov     rdx, [rcx+20h]                                                 ; +0x6, 0x18007f426\nmov     rbx, rcx                                                       ; +0xa, 0x18007f42a\ncmp     rdx, 0Fh                                                       ; +0xd, 0x18007f42d\njbe     short loc_18007F460                                            ; +0x11, 0x18007f431\nmov     rcx, [rcx+8]                                                   ; +0x13, 0x18007f433\ninc     rdx                                                            ; +0x17, 0x18007f437\ncmp     rdx, 1000h                                                     ; +0x1a, 0x18007f43a\njb      short loc_18007F45B                                            ; +0x21, 0x18007f441\nmov     r8, [rcx-8]                                                    ; +0x23, 0x18007f443\nadd     rdx, 27h ; '''                                                 ; +0x27, 0x18007f447\nsub     rcx, r8                                                        ; +0x2b, 0x18007f44b\nlea     rax, [rcx-8]                                                   ; +0x2e, 0x18007f44e\ncmp     rax, 1Fh                                                       ; +0x32, 0x18007f452\nja      short loc_18007F484                                            ; +0x36, 0x18007f456\nmov     rcx, r8; Block                                                 ; +0x38, 0x18007f458\ncall    j_j_free_0                                                     ; +0x3b, 0x18007f45b\nlea     rax, ??_7xml_writer@pugi@@6B@; const pugi::xml_writer::`vftable' ; +0x40, 0x18007f460\nmov     qword ptr [rbx+18h], 0                                         ; +0x47, 0x18007f467\nmov     qword ptr [rbx+20h], 0Fh                                       ; +0x4f, 0x18007f46f\nmov     byte ptr [rbx+8], 0                                            ; +0x57, 0x18007f477\nmov     [rbx], rax                                                     ; +0x5b, 0x18007f47b\nadd     rsp, 20h                                                       ; +0x5e, 0x18007f47e\npop     rbx                                                            ; +0x62, 0x18007f482\nretn                                                                   ; +0x63, 0x18007f483\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x64, 0x18007f484\ndb 0CCh                                                                ; +0x6a, 0x18007f48a", "xrefs": ["sub_18007F510 @ 0x18007f51f", "sub_1800E2D40 @ 0x1800e2d47", "<???> @ 0x18013c42f", "<???> @ 0x1801b4f98"], "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"}