{"type": "func", "start": 6442686672, "end": 6442686837, "name": "sub_1800398D0", "pseudocode": "// \n// sub_1800398D0 from 0x1800398d0 to 0x180039975 (165 bytes)\n// \n// 2 xrefs:\n// > sub_180039870 @ 0x180039888\n// > <???> @ 0x1801f7cbc\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_1800398D0(__int64 a1)\n{\n  __int64 result; // rax\n  int v3; // [rsp+30h] [rbp+8h] BYREF\n  int v4; // [rsp+48h] [rbp+20h] BYREF\n\n  *(_DWORD *)(a1 + 40) = 1000;\n  *(_QWORD *)(a1 + 288) = 0;\n  *(_QWORD *)(a1 + 296) = 0;\n  *(_QWORD *)(a1 + 304) = 0;\n  *(_QWORD *)(a1 + 328) = 0;\n  *(_QWORD *)(a1 + 312) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_DWORD *)(a1 + 24) = 0;\n  *(_QWORD *)(a1 + 8) = 0;\n  if ( (unsigned int)sub_18003AC00() )\n    return sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0);\n  result = sub_1800B3D20(*(_QWORD *)(a1 + 368), &v3);\n  if ( !(_DWORD)result )\n  {\n    result = sub_1800B3050(*(_QWORD *)(a1 + 368), &v4);\n    if ( !(_DWORD)result )\n    {\n      result = sub_1800B3C10(*(_QWORD *)(a1 + 368), (unsigned int)(v3 + v4));\n      if ( !(_DWORD)result )\n        return sub_1800B3990(*(_QWORD *)(a1 + 368), 0, 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800398D0 from 0x1800398d0 to 0x180039975 (165 bytes)\n; \n; 2 xrefs:\n; > sub_180039870 @ 0x180039888\n; > <???> @ 0x1801f7cbc\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, 0x1800398d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800398d2\nxor     eax, eax                                                       ; +0x6, 0x1800398d6\nmov     dword ptr [rcx+28h], 3E8h                                      ; +0x8, 0x1800398d8\nmov     [rcx+120h], rax                                                ; +0xf, 0x1800398df\nmov     rbx, rcx                                                       ; +0x16, 0x1800398e6\nmov     [rcx+128h], rax                                                ; +0x19, 0x1800398e9\nmov     [rcx+130h], rax                                                ; +0x20, 0x1800398f0\nmov     [rcx+148h], rax                                                ; +0x27, 0x1800398f7\nmov     [rcx+138h], rax                                                ; +0x2e, 0x1800398fe\nmov     [rcx+168h], rax                                                ; +0x35, 0x180039905\nmov     [rcx+18h], eax                                                 ; +0x3c, 0x18003990c\nmov     [rcx+8], rax                                                   ; +0x3f, 0x18003990f\ncall    sub_18003AC00                                                  ; +0x43, 0x180039913\ntest    eax, eax                                                       ; +0x48, 0x180039918\njnz     short loc_18003995E                                            ; +0x4a, 0x18003991a\nmov     rcx, [rbx+170h]                                                ; +0x4c, 0x18003991c\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x53, 0x180039923\ncall    sub_1800B3D20                                                  ; +0x58, 0x180039928\ntest    eax, eax                                                       ; +0x5d, 0x18003992d\njnz     short loc_18003996F                                            ; +0x5f, 0x18003992f\nmov     rcx, [rbx+170h]                                                ; +0x61, 0x180039931\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x68, 0x180039938\ncall    sub_1800B3050                                                  ; +0x6d, 0x18003993d\ntest    eax, eax                                                       ; +0x72, 0x180039942\njnz     short loc_18003996F                                            ; +0x74, 0x180039944\nmov     edx, [rsp+28h+arg_18]                                          ; +0x76, 0x180039946\nadd     edx, [rsp+28h+arg_0]                                           ; +0x7a, 0x18003994a\nmov     rcx, [rbx+170h]                                                ; +0x7e, 0x18003994e\ncall    sub_1800B3C10                                                  ; +0x85, 0x180039955\ntest    eax, eax                                                       ; +0x8a, 0x18003995a\njnz     short loc_18003996F                                            ; +0x8c, 0x18003995c\nmov     rcx, [rbx+170h]                                                ; +0x8e, 0x18003995e\nxor     r8d, r8d                                                       ; +0x95, 0x180039965\nxor     edx, edx                                                       ; +0x98, 0x180039968\ncall    sub_1800B3990                                                  ; +0x9a, 0x18003996a\nadd     rsp, 20h                                                       ; +0x9f, 0x18003996f\npop     rbx                                                            ; +0xa3, 0x180039973\nretn                                                                   ; +0xa4, 0x180039974", "xrefs": ["sub_180039870 @ 0x180039888", "<???> @ 0x1801f7cbc"], "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"}