{"type": "func", "start": 6443306992, "end": 6443307177, "name": "sub_1800D0FF0", "pseudocode": "// \n// sub_1800D0FF0 from 0x1800d0ff0 to 0x1800d10a9 (185 bytes)\n// \n// 2 xrefs:\n// > sub_1800E2620 @ 0x1800e2cdd\n// > <???> @ 0x1801feb38\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_1800D0FF0(__int64 a1)\n{\n  __int64 result; // rax\n  struct _RTL_CRITICAL_SECTION *v3; // rcx\n  _DWORD *v4; // rdx\n\n  if ( !*(_BYTE *)(a1 + 408) )\n    return 0;\n  result = sub_1800B8560(a1 + 16);\n  if ( (_DWORD)result )\n    return result;\n  v3 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 384);\n  if ( v3 )\n  {\n    result = FMOD_OS_CriticalSection_Free(v3, 0);\n    if ( (_DWORD)result )\n      return result;\n    *(_QWORD *)(a1 + 384) = 0;\n  }\n  v4 = *(_DWORD **)(a1 + 352);\n  if ( v4 )\n  {\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v4);\n    *(_QWORD *)(a1 + 352) = 0;\n  }\n  result = FMOD_OS_CriticalSection_Free(*(LPCRITICAL_SECTION *)(a1 + 400), 0);\n  if ( !(_DWORD)result )\n  {\n    *(_QWORD *)(a1 + 400) = 0;\n    *(_BYTE *)(a1 + 408) = 0;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D0FF0 from 0x1800d0ff0 to 0x1800d10a9 (185 bytes)\n; \n; 2 xrefs:\n; > sub_1800E2620 @ 0x1800e2cdd\n; > <???> @ 0x1801feb38\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, 0x1800d0ff0\npush    rdi                                                            ; +0x5, 0x1800d0ff5\nsub     rsp, 30h                                                       ; +0x6, 0x1800d0ff6\ncmp     byte ptr [rcx+198h], 0                                         ; +0xa, 0x1800d0ffa\nmov     rbx, rcx                                                       ; +0x11, 0x1800d1001\njz      loc_1800D109C                                                  ; +0x14, 0x1800d1004\nadd     rcx, 10h                                                       ; +0x1a, 0x1800d100a\ncall    sub_1800B8560                                                  ; +0x1e, 0x1800d100e\ntest    eax, eax                                                       ; +0x23, 0x1800d1013\njnz     loc_1800D109E                                                  ; +0x25, 0x1800d1015\nmov     rcx, [rbx+180h]; lpCriticalSection                             ; +0x2b, 0x1800d101b\ntest    rcx, rcx                                                       ; +0x32, 0x1800d1022\njz      short loc_1800D103D                                            ; +0x35, 0x1800d1025\nxor     edx, edx                                                       ; +0x37, 0x1800d1027\ncall    FMOD_OS_CriticalSection_Free                                   ; +0x39, 0x1800d1029\ntest    eax, eax                                                       ; +0x3e, 0x1800d102e\njnz     short loc_1800D109E                                            ; +0x40, 0x1800d1030\nmov     qword ptr [rbx+180h], 0                                        ; +0x42, 0x1800d1032\nmov     rdx, [rbx+160h]                                                ; +0x4d, 0x1800d103d\ntest    rdx, rdx                                                       ; +0x54, 0x1800d1044\njz      short loc_1800D1079                                            ; +0x57, 0x1800d1047\nmov     rcx, cs:off_1801AED20                                          ; +0x59, 0x1800d1049\nlea     r8, aCBuildagent1Wo_53; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x60, 0x1800d1050\nmov     r9d, 75h ; 'u'                                                 ; +0x67, 0x1800d1057\nmov     [rsp+38h+var_18], 1                                            ; +0x6d, 0x1800d105d\nmov     rcx, [rcx+1A0h]                                                ; +0x72, 0x1800d1062\ncall    sub_1800B6AA0                                                  ; +0x79, 0x1800d1069\nmov     qword ptr [rbx+160h], 0                                        ; +0x7e, 0x1800d106e\nmov     rcx, [rbx+190h]; lpCriticalSection                             ; +0x89, 0x1800d1079\nxor     edx, edx                                                       ; +0x90, 0x1800d1080\ncall    FMOD_OS_CriticalSection_Free                                   ; +0x92, 0x1800d1082\ntest    eax, eax                                                       ; +0x97, 0x1800d1087\njnz     short loc_1800D109E                                            ; +0x99, 0x1800d1089\nmov     qword ptr [rbx+190h], 0                                        ; +0x9b, 0x1800d108b\nmov     [rbx+198h], al                                                 ; +0xa6, 0x1800d1096\nxor     eax, eax                                                       ; +0xac, 0x1800d109c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xae, 0x1800d109e\nadd     rsp, 30h                                                       ; +0xb3, 0x1800d10a3\npop     rdi                                                            ; +0xb7, 0x1800d10a7\nretn                                                                   ; +0xb8, 0x1800d10a8", "xrefs": ["sub_1800E2620 @ 0x1800e2cdd", "<???> @ 0x1801feb38"], "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"}