{"type": "func", "start": 6443194736, "end": 6443195086, "name": "sub_1800B5970", "pseudocode": "// \n// sub_1800B5970 from 0x1800b5970 to 0x1800b5ace (350 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016b228\n// > <???> @ 0x180189578\n// > <???> @ 0x180189588\n// > <???> @ 0x1801fcfa8\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_1800B5970(__int64 a1, __int64 a2, _DWORD *a3)\n{\n  __int64 result; // rax\n  unsigned int v7; // edi\n  _BYTE v8[16]; // [rsp+50h] [rbp-848h] BYREF\n  _BYTE v9[2048]; // [rsp+60h] [rbp-838h] BYREF\n\n  v8[0] = 0;\n  result = sub_1800B7640();\n  if ( !(_DWORD)result )\n  {\n    *a3 = -1;\n    memset((void *)(a1 + 4736), 0, 0x1000u);\n    sub_1800B7D20(a1 + 608, a2, 2048);\n    result = sub_1800B5550(\n               a1,\n               a1 + 608,\n               a1 + 2656,\n               2047,\n               a1 + 4736,\n               0x1000u,\n               (__int16 *)(a1 + 8832),\n               (__int64)v9,\n               2047,\n               v8);\n    if ( !(_DWORD)result )\n    {\n      if ( v8[0] )\n      {\n        v7 = 68;\n      }\n      else\n      {\n        v7 = sub_1800B4680(\n               a1,\n               a1 + 608,\n               (const CHAR *)(a1 + 2656),\n               (__int64)v9,\n               (_BYTE *)(a1 + 4736),\n               *(_WORD *)(a1 + 8832),\n               (__int64)a3,\n               0);\n        if ( !v7 )\n          return v7;\n      }\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 40LL))(a1);\n      return v7;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800B5970 from 0x1800b5970 to 0x1800b5ace (350 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016b228\n; > <???> @ 0x180189578\n; > <???> @ 0x180189588\n; > <???> @ 0x1801fcfa8\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, 0x1800b5970\npush    rdi                                                            ; +0x2, 0x1800b5972\npush    r14                                                            ; +0x3, 0x1800b5973\nsub     rsp, 880h                                                      ; +0x5, 0x1800b5975\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x1800b597c\nxor     rax, rsp                                                       ; +0x13, 0x1800b5983\nmov     [rsp+898h+var_38], rax                                         ; +0x16, 0x1800b5986\nmov     rdi, r8                                                        ; +0x1e, 0x1800b598e\nmov     [rsp+898h+var_848], 0                                          ; +0x21, 0x1800b5991\nmov     r14, rdx                                                       ; +0x26, 0x1800b5996\nmov     rbx, rcx                                                       ; +0x29, 0x1800b5999\ncall    sub_1800B7640                                                  ; +0x2c, 0x1800b599c\ntest    eax, eax                                                       ; +0x31, 0x1800b59a1\njnz     loc_1800B5AB2                                                  ; +0x33, 0x1800b59a3\nmov     [rsp+898h+arg_18], rbp                                         ; +0x39, 0x1800b59a9\nxor     edx, edx; Val                                                  ; +0x41, 0x1800b59b1\nmov     [rsp+898h+var_20], rsi                                         ; +0x43, 0x1800b59b3\nmov     r8d, 1000h; Size                                               ; +0x4b, 0x1800b59bb\nlea     rsi, [rbx+1280h]                                               ; +0x51, 0x1800b59c1\nmov     [rsp+898h+var_28], r15                                         ; +0x58, 0x1800b59c8\nmov     rcx, rsi; void *                                               ; +0x60, 0x1800b59d0\nmov     dword ptr [rdi], 0FFFFFFFFh                                    ; +0x63, 0x1800b59d3\ncall    memset                                                         ; +0x69, 0x1800b59d9\nmov     r8d, 800h                                                      ; +0x6e, 0x1800b59de\nlea     rcx, [rbx+260h]                                                ; +0x74, 0x1800b59e4\nmov     rdx, r14                                                       ; +0x7b, 0x1800b59eb\ncall    sub_1800B7D20                                                  ; +0x7e, 0x1800b59ee\nlea     rax, [rsp+898h+var_848]                                        ; +0x83, 0x1800b59f3\nmov     r9d, 7FFh                                                      ; +0x88, 0x1800b59f8\nmov     [rsp+898h+var_850], rax                                        ; +0x8e, 0x1800b59fe\nlea     r14, [rbx+2280h]                                               ; +0x93, 0x1800b5a03\nmov     [rsp+898h+var_858], 7FFh                                       ; +0x9a, 0x1800b5a0a\nlea     rax, [rsp+898h+var_838]                                        ; +0xa2, 0x1800b5a12\nmov     [rsp+898h+var_860], rax                                        ; +0xa7, 0x1800b5a17\nlea     r8, [rbx+0A60h]                                                ; +0xac, 0x1800b5a1c\nmov     [rsp+898h+var_868], r14                                        ; +0xb3, 0x1800b5a23\nlea     rdx, [rbx+260h]                                                ; +0xb8, 0x1800b5a28\nmov     [rsp+898h+var_870], 1000h                                      ; +0xbf, 0x1800b5a2f\nmov     rcx, rbx                                                       ; +0xc7, 0x1800b5a37\nmov     [rsp+898h+var_878], rsi                                        ; +0xca, 0x1800b5a3a\ncall    sub_1800B5550                                                  ; +0xcf, 0x1800b5a3f\ntest    eax, eax                                                       ; +0xd4, 0x1800b5a44\njnz     short loc_1800B5A9A                                            ; +0xd6, 0x1800b5a46\ncmp     [rsp+898h+var_848], al                                         ; +0xd8, 0x1800b5a48\njz      short loc_1800B5A53                                            ; +0xdc, 0x1800b5a4c\nlea     edi, [rax+44h]                                                 ; +0xde, 0x1800b5a4e\njmp     short loc_1800B5A8F                                            ; +0xe1, 0x1800b5a51\nmovzx   eax, word ptr [r14]                                            ; +0xe3, 0x1800b5a53\nlea     r9, [rsp+898h+var_838]                                         ; +0xe7, 0x1800b5a57\nmov     dword ptr [rsp+898h+var_860], 0                                ; +0xec, 0x1800b5a5c\nlea     r8, [rbx+0A60h]                                                ; +0xf4, 0x1800b5a64\nmov     [rsp+898h+var_868], rdi                                        ; +0xfb, 0x1800b5a6b\nlea     rdx, [rbx+260h]                                                ; +0x100, 0x1800b5a70\nmov     word ptr [rsp+898h+var_870], ax                                ; +0x107, 0x1800b5a77\nmov     rcx, rbx                                                       ; +0x10c, 0x1800b5a7c\nmov     [rsp+898h+var_878], rsi                                        ; +0x10f, 0x1800b5a7f\ncall    sub_1800B4680                                                  ; +0x114, 0x1800b5a84\nmov     edi, eax                                                       ; +0x119, 0x1800b5a89\ntest    eax, eax                                                       ; +0x11b, 0x1800b5a8b\njz      short loc_1800B5A98                                            ; +0x11d, 0x1800b5a8d\nmov     rdx, [rbx]                                                     ; +0x11f, 0x1800b5a8f\nmov     rcx, rbx                                                       ; +0x122, 0x1800b5a92\ncall    qword ptr [rdx+28h]                                            ; +0x125, 0x1800b5a95\nmov     eax, edi                                                       ; +0x128, 0x1800b5a98\nmov     rsi, [rsp+898h+var_20]                                         ; +0x12a, 0x1800b5a9a\nmov     rbp, [rsp+898h+arg_18]                                         ; +0x132, 0x1800b5aa2\nmov     r15, [rsp+898h+var_28]                                         ; +0x13a, 0x1800b5aaa\nmov     rcx, [rsp+898h+var_38]                                         ; +0x142, 0x1800b5ab2\nxor     rcx, rsp; StackCookie                                          ; +0x14a, 0x1800b5aba\ncall    __security_check_cookie                                        ; +0x14d, 0x1800b5abd\nadd     rsp, 880h                                                      ; +0x152, 0x1800b5ac2\npop     r14                                                            ; +0x159, 0x1800b5ac9\npop     rdi                                                            ; +0x15b, 0x1800b5acb\npop     rbx                                                            ; +0x15c, 0x1800b5acc\nretn                                                                   ; +0x15d, 0x1800b5acd", "xrefs": ["<???> @ 0x18016b228", "<???> @ 0x180189578", "<???> @ 0x180189588", "<???> @ 0x1801fcfa8"], "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"}