{"type": "func", "start": 6443195856, "end": 6443196170, "name": "sub_1800B5DD0", "pseudocode": "// \n// sub_1800B5DD0 from 0x1800b5dd0 to 0x1800b5f0a (314 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016b240\n// > <???> @ 0x18018964c\n// > <???> @ 0x18018965c\n// > <???> @ 0x1801fd020\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_1800B5DD0(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  _BYTE v5[2048]; // [rsp+50h] [rbp-828h] BYREF\n\n  memset(v5, 0, sizeof(v5));\n  result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 64LL))(a1, 0);\n  if ( !(_DWORD)result )\n  {\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)v5,\n               2047,\n               nullptr);\n    if ( !(_DWORD)result )\n    {\n      result = sub_1800B4680(\n                 a1,\n                 a1 + 608,\n                 (const CHAR *)(a1 + 2656),\n                 (__int64)v5,\n                 (_BYTE *)(a1 + 4736),\n                 *(_WORD *)(a1 + 8832),\n                 0,\n                 a2);\n      if ( !(_DWORD)result )\n        *(_DWORD *)(a1 + 504) = a2;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800B5DD0 from 0x1800b5dd0 to 0x1800b5f0a (314 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016b240\n; > <???> @ 0x18018964c\n; > <???> @ 0x18018965c\n; > <???> @ 0x1801fd020\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, 0x1800b5dd0\npush    rdi                                                            ; +0x2, 0x1800b5dd2\nsub     rsp, 868h                                                      ; +0x3, 0x1800b5dd3\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800b5dda\nxor     rax, rsp                                                       ; +0x11, 0x1800b5de1\nmov     [rsp+878h+var_28], rax                                         ; +0x14, 0x1800b5de4\nmov     edi, edx                                                       ; +0x1c, 0x1800b5dec\nmov     rbx, rcx                                                       ; +0x1e, 0x1800b5dee\nxor     edx, edx; Val                                                  ; +0x21, 0x1800b5df1\nlea     rcx, [rsp+878h+var_828]; void *                                ; +0x23, 0x1800b5df3\nmov     r8d, 800h; Size                                                ; +0x28, 0x1800b5df8\ncall    memset                                                         ; +0x2e, 0x1800b5dfe\nmov     rax, [rbx]                                                     ; +0x33, 0x1800b5e03\nxor     edx, edx                                                       ; +0x36, 0x1800b5e06\nmov     rcx, rbx                                                       ; +0x38, 0x1800b5e08\ncall    qword ptr [rax+40h]                                            ; +0x3b, 0x1800b5e0b\ntest    eax, eax                                                       ; +0x3e, 0x1800b5e0e\njnz     loc_1800B5EF0                                                  ; +0x40, 0x1800b5e10\nmov     [rsp+878h+var_830], 0                                          ; +0x46, 0x1800b5e16\nlea     rax, [rsp+878h+var_828]                                        ; +0x4f, 0x1800b5e1f\nmov     [rsp+878h+arg_8], rbp                                          ; +0x54, 0x1800b5e24\nlea     r8, [rbx+0A60h]                                                ; +0x5c, 0x1800b5e2c\nmov     [rsp+878h+var_838], 7FFh                                       ; +0x63, 0x1800b5e33\nlea     rbp, [rbx+1280h]                                               ; +0x6b, 0x1800b5e3b\nmov     [rsp+878h+var_840], rax                                        ; +0x72, 0x1800b5e42\nlea     rdx, [rbx+260h]                                                ; +0x77, 0x1800b5e47\nmov     [rsp+878h+arg_10], rsi                                         ; +0x7e, 0x1800b5e4e\nmov     r9d, 7FFh                                                      ; +0x86, 0x1800b5e56\nlea     rsi, [rbx+2280h]                                               ; +0x8c, 0x1800b5e5c\nmov     [rsp+878h+arg_18], r14                                         ; +0x93, 0x1800b5e63\nmov     [rsp+878h+var_848], rsi                                        ; +0x9b, 0x1800b5e6b\nmov     rcx, rbx                                                       ; +0xa0, 0x1800b5e70\nmov     [rsp+878h+var_850], 1000h                                      ; +0xa3, 0x1800b5e73\nmov     [rsp+878h+var_858], rbp                                        ; +0xab, 0x1800b5e7b\nmov     [rsp+878h+var_18], r15                                         ; +0xb0, 0x1800b5e80\ncall    sub_1800B5550                                                  ; +0xb8, 0x1800b5e88\ntest    eax, eax                                                       ; +0xbd, 0x1800b5e8d\njnz     short loc_1800B5ED0                                            ; +0xbf, 0x1800b5e8f\nmovzx   eax, word ptr [rsi]                                            ; +0xc1, 0x1800b5e91\nlea     r9, [rsp+878h+var_828]                                         ; +0xc4, 0x1800b5e94\nmov     dword ptr [rsp+878h+var_840], edi                              ; +0xc9, 0x1800b5e99\nlea     r8, [rbx+0A60h]                                                ; +0xcd, 0x1800b5e9d\nmov     [rsp+878h+var_848], 0                                          ; +0xd4, 0x1800b5ea4\nlea     rdx, [rbx+260h]                                                ; +0xdd, 0x1800b5ead\nmov     word ptr [rsp+878h+var_850], ax                                ; +0xe4, 0x1800b5eb4\nmov     rcx, rbx                                                       ; +0xe9, 0x1800b5eb9\nmov     [rsp+878h+var_858], rbp                                        ; +0xec, 0x1800b5ebc\ncall    sub_1800B4680                                                  ; +0xf1, 0x1800b5ec1\ntest    eax, eax                                                       ; +0xf6, 0x1800b5ec6\njnz     short loc_1800B5ED0                                            ; +0xf8, 0x1800b5ec8\nmov     [rbx+1F8h], edi                                                ; +0xfa, 0x1800b5eca\nmov     r14, [rsp+878h+arg_18]                                         ; +0x100, 0x1800b5ed0\nmov     rsi, [rsp+878h+arg_10]                                         ; +0x108, 0x1800b5ed8\nmov     rbp, [rsp+878h+arg_8]                                          ; +0x110, 0x1800b5ee0\nmov     r15, [rsp+878h+var_18]                                         ; +0x118, 0x1800b5ee8\nmov     rcx, [rsp+878h+var_28]                                         ; +0x120, 0x1800b5ef0\nxor     rcx, rsp; StackCookie                                          ; +0x128, 0x1800b5ef8\ncall    __security_check_cookie                                        ; +0x12b, 0x1800b5efb\nadd     rsp, 868h                                                      ; +0x130, 0x1800b5f00\npop     rdi                                                            ; +0x137, 0x1800b5f07\npop     rbx                                                            ; +0x138, 0x1800b5f08\nretn                                                                   ; +0x139, 0x1800b5f09", "xrefs": ["<???> @ 0x18016b240", "<???> @ 0x18018964c", "<???> @ 0x18018965c", "<???> @ 0x1801fd020"], "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"}