{"type": "func", "start": 6442972880, "end": 6442972995, "name": "sub_18007F6D0", "pseudocode": "// \n// sub_18007F6D0 from 0x18007f6d0 to 0x18007f743 (115 bytes)\n// \n// 4 xrefs:\n// > sub_18007F9D0 @ 0x18007f9e2\n// > sub_180080F40 @ 0x180080fc4\n// > sub_1800810D0 @ 0x180081154\n// > <???> @ 0x1801b4fec\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\n__int64 *__fastcall sub_18007F6D0(__int64 *a1, int a2)\n{\n  __int64 v2; // rax\n  __int64 *v4; // rax\n  __int64 v5; // r8\n  __int64 *v6; // rdx\n  __int64 v8; // [rsp+30h] [rbp+8h] BYREF\n\n  v2 = a1[1];\n  if ( (unsigned __int64)(v2 + 64) <= 0x8000 )\n  {\n    v5 = *a1;\n    a1[1] = v2 + 64;\n    v6 = (__int64 *)(v2 + v5 + 48);\n  }\n  else\n  {\n    v4 = sub_18007F5E0((__int64)a1, 0x40u, &v8);\n    v5 = v8;\n    v6 = v4;\n  }\n  *v6 = v5 | (a2 - 1);\n  v6[1] = 0;\n  v6[2] = 0;\n  v6[3] = 0;\n  v6[4] = 0;\n  v6[5] = 0;\n  v6[6] = 0;\n  v6[7] = 0;\n  return v6;\n}", "assembly": "; \n; sub_18007F6D0 from 0x18007f6d0 to 0x18007f743 (115 bytes)\n; \n; 4 xrefs:\n; > sub_18007F9D0 @ 0x18007f9e2\n; > sub_180080F40 @ 0x180080fc4\n; > sub_1800810D0 @ 0x180081154\n; > <???> @ 0x1801b4fec\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, 0x18007f6d0\nsub     rsp, 20h                                                       ; +0x2, 0x18007f6d2\nmov     rax, [rcx+8]                                                   ; +0x6, 0x18007f6d6\nmov     ebx, edx                                                       ; +0xa, 0x18007f6da\nlea     r9, [rax+40h]                                                  ; +0xc, 0x18007f6dc\ncmp     r9, 8000h                                                      ; +0x10, 0x18007f6e0\njbe     short loc_18007F702                                            ; +0x17, 0x18007f6e7\nlea     r8, [rsp+28h+arg_0]                                            ; +0x19, 0x18007f6e9\nmov     edx, 40h ; '@'                                                 ; +0x1e, 0x18007f6ee\ncall    sub_18007F5E0                                                  ; +0x23, 0x18007f6f3\nmov     r8, [rsp+28h+arg_0]                                            ; +0x28, 0x18007f6f8\nmov     rdx, rax                                                       ; +0x2d, 0x18007f6fd\njmp     short loc_18007F710                                            ; +0x30, 0x18007f700\nmov     r8, [rcx]                                                      ; +0x32, 0x18007f702\nmov     [rcx+8], r9                                                    ; +0x35, 0x18007f705\nlea     rdx, [r8+30h]                                                  ; +0x39, 0x18007f709\nadd     rdx, rax                                                       ; +0x3d, 0x18007f70d\nlea     eax, [rbx-1]                                                   ; +0x40, 0x18007f710\nmovsxd  rcx, eax                                                       ; +0x43, 0x18007f713\nor      rcx, r8                                                        ; +0x46, 0x18007f716\nxor     eax, eax                                                       ; +0x49, 0x18007f719\nmov     [rdx], rcx                                                     ; +0x4b, 0x18007f71b\nmov     [rdx+8], rax                                                   ; +0x4e, 0x18007f71e\nmov     [rdx+10h], rax                                                 ; +0x52, 0x18007f722\nmov     [rdx+18h], rax                                                 ; +0x56, 0x18007f726\nmov     [rdx+20h], rax                                                 ; +0x5a, 0x18007f72a\nmov     [rdx+28h], rax                                                 ; +0x5e, 0x18007f72e\nmov     [rdx+30h], rax                                                 ; +0x62, 0x18007f732\nmov     [rdx+38h], rax                                                 ; +0x66, 0x18007f736\nmov     rax, rdx                                                       ; +0x6a, 0x18007f73a\nadd     rsp, 20h                                                       ; +0x6d, 0x18007f73d\npop     rbx                                                            ; +0x71, 0x18007f741\nretn                                                                   ; +0x72, 0x18007f742", "xrefs": ["sub_18007F9D0 @ 0x18007f9e2", "sub_180080F40 @ 0x180080fc4", "sub_1800810D0 @ 0x180081154", "<???> @ 0x1801b4fec"], "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"}