{"type": "func", "start": 6443324272, "end": 6443324379, "name": "sub_1800D5370", "pseudocode": "// \n// sub_1800D5370 from 0x1800d5370 to 0x1800d53db (107 bytes)\n// \n// 3 xrefs:\n// > sub_1800D8740 @ 0x1800d8e07\n// > sub_1800D8740 @ 0x1800d8e32\n// > <???> @ 0x1801ba7d0\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_1800D5370(__int64 a1, __int64 a2, __int64 a3, int a4)\n{\n  __int64 result; // rax\n  __int64 v6; // r9\n  unsigned int v7; // edi\n  __int64 v9; // r8\n\n  result = (unsigned int)(a2 - 32);\n  v6 = (unsigned int)a3;\n  v7 = a2;\n  if ( (unsigned int)result <= 0x5E || (unsigned int)a2 >= 0xA0 )\n  {\n    result = *(_QWORD *)(a1 + 856);\n    if ( result )\n    {\n      v9 = (unsigned int)a3 & 0xFFFFFFCF;\n      if ( *(_DWORD *)(a1 + 120) )\n        v9 = (unsigned int)v6;\n      result = ((__int64 (__fastcall *)(__int64, __int64, __int64, __int64))result)(a1, a2, v9, v6);\n    }\n    if ( a4 )\n    {\n      result = *(_QWORD *)(a1 + 848);\n      if ( result )\n        return ((__int64 (__fastcall *)(__int64, _QWORD, __int64, __int64))result)(a1, v7, a3, v6);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D5370 from 0x1800d5370 to 0x1800d53db (107 bytes)\n; \n; 3 xrefs:\n; > sub_1800D8740 @ 0x1800d8e07\n; > sub_1800D8740 @ 0x1800d8e32\n; > <???> @ 0x1801ba7d0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800d5370\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800d5375\npush    rdi                                                            ; +0xa, 0x1800d537a\nsub     rsp, 20h                                                       ; +0xb, 0x1800d537b\nlea     eax, [rdx-20h]                                                 ; +0xf, 0x1800d537f\nmov     esi, r9d                                                       ; +0x12, 0x1800d5382\nmov     r9d, r8d                                                       ; +0x15, 0x1800d5385\nmov     edi, edx                                                       ; +0x18, 0x1800d5388\nmov     rbx, rcx                                                       ; +0x1a, 0x1800d538a\ncmp     eax, 5Eh ; '^'                                                 ; +0x1d, 0x1800d538d\njbe     short loc_1800D539A                                            ; +0x20, 0x1800d5390\ncmp     edx, 0A0h                                                      ; +0x22, 0x1800d5392\njb      short loc_1800D53CB                                            ; +0x28, 0x1800d5398\nmov     rax, [rcx+358h]                                                ; +0x2a, 0x1800d539a\ntest    rax, rax                                                       ; +0x31, 0x1800d53a1\njz      short loc_1800D53B4                                            ; +0x34, 0x1800d53a4\nand     r8d, 0FFFFFFCFh                                                ; +0x36, 0x1800d53a6\ncmp     dword ptr [rcx+78h], 0                                         ; +0x3a, 0x1800d53aa\ncmovnz  r8d, r9d                                                       ; +0x3e, 0x1800d53ae\ncall    rax                                                            ; +0x42, 0x1800d53b2\ntest    esi, esi                                                       ; +0x44, 0x1800d53b4\njz      short loc_1800D53CB                                            ; +0x46, 0x1800d53b6\nmov     rax, [rbx+350h]                                                ; +0x48, 0x1800d53b8\ntest    rax, rax                                                       ; +0x4f, 0x1800d53bf\njz      short loc_1800D53CB                                            ; +0x52, 0x1800d53c2\nmov     edx, edi                                                       ; +0x54, 0x1800d53c4\nmov     rcx, rbx                                                       ; +0x56, 0x1800d53c6\ncall    rax                                                            ; +0x59, 0x1800d53c9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5b, 0x1800d53cb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x60, 0x1800d53d0\nadd     rsp, 20h                                                       ; +0x65, 0x1800d53d5\npop     rdi                                                            ; +0x69, 0x1800d53d9\nretn                                                                   ; +0x6a, 0x1800d53da", "xrefs": ["sub_1800D8740 @ 0x1800d8e07", "sub_1800D8740 @ 0x1800d8e32", "<???> @ 0x1801ba7d0"], "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"}