{"type": "func", "start": 6442984944, "end": 6442985059, "name": "sub_1800825F0", "pseudocode": "// \n// sub_1800825F0 from 0x1800825f0 to 0x180082663 (115 bytes)\n// \n// 4 xrefs:\n// > sub_1800828E0 @ 0x1800828f2\n// > sub_180083F30 @ 0x180083fad\n// > sub_1800840C0 @ 0x18008413d\n// > <???> @ 0x1801bf2b0\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:22:03 +0000\n// \n\n__int64 *__fastcall sub_1800825F0(__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_180082500((__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_1800825F0 from 0x1800825f0 to 0x180082663 (115 bytes)\n; \n; 4 xrefs:\n; > sub_1800828E0 @ 0x1800828f2\n; > sub_180083F30 @ 0x180083fad\n; > sub_1800840C0 @ 0x18008413d\n; > <???> @ 0x1801bf2b0\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:22:03 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800825f0\nsub     rsp, 20h                                                       ; +0x2, 0x1800825f2\nmov     rax, [rcx+8]                                                   ; +0x6, 0x1800825f6\nmov     ebx, edx                                                       ; +0xa, 0x1800825fa\nlea     r9, [rax+40h]                                                  ; +0xc, 0x1800825fc\ncmp     r9, 8000h                                                      ; +0x10, 0x180082600\njbe     short loc_180082622                                            ; +0x17, 0x180082607\nlea     r8, [rsp+28h+arg_0]                                            ; +0x19, 0x180082609\nmov     edx, 40h ; '@'                                                 ; +0x1e, 0x18008260e\ncall    sub_180082500                                                  ; +0x23, 0x180082613\nmov     r8, [rsp+28h+arg_0]                                            ; +0x28, 0x180082618\nmov     rdx, rax                                                       ; +0x2d, 0x18008261d\njmp     short loc_180082630                                            ; +0x30, 0x180082620\nmov     r8, [rcx]                                                      ; +0x32, 0x180082622\nmov     [rcx+8], r9                                                    ; +0x35, 0x180082625\nlea     rdx, [r8+30h]                                                  ; +0x39, 0x180082629\nadd     rdx, rax                                                       ; +0x3d, 0x18008262d\nlea     eax, [rbx-1]                                                   ; +0x40, 0x180082630\nmovsxd  rcx, eax                                                       ; +0x43, 0x180082633\nor      rcx, r8                                                        ; +0x46, 0x180082636\nxor     eax, eax                                                       ; +0x49, 0x180082639\nmov     [rdx], rcx                                                     ; +0x4b, 0x18008263b\nmov     [rdx+8], rax                                                   ; +0x4e, 0x18008263e\nmov     [rdx+10h], rax                                                 ; +0x52, 0x180082642\nmov     [rdx+18h], rax                                                 ; +0x56, 0x180082646\nmov     [rdx+20h], rax                                                 ; +0x5a, 0x18008264a\nmov     [rdx+28h], rax                                                 ; +0x5e, 0x18008264e\nmov     [rdx+30h], rax                                                 ; +0x62, 0x180082652\nmov     [rdx+38h], rax                                                 ; +0x66, 0x180082656\nmov     rax, rdx                                                       ; +0x6a, 0x18008265a\nadd     rsp, 20h                                                       ; +0x6d, 0x18008265d\npop     rbx                                                            ; +0x71, 0x180082661\nretn                                                                   ; +0x72, 0x180082662", "xrefs": ["sub_1800828E0 @ 0x1800828f2", "sub_180083F30 @ 0x180083fad", "sub_1800840C0 @ 0x18008413d", "<???> @ 0x1801bf2b0"], "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"}