{"type": "func", "start": 6443186432, "end": 6443186576, "name": "sub_1800B3900", "pseudocode": "// \n// sub_1800B3900 from 0x1800b3900 to 0x1800b3990 (144 bytes)\n// \n// 2 xrefs:\n// > sub_1800B25E0 @ 0x1800b269e\n// > <???> @ 0x1801fce58\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:57 +0000\n// \n\n__int64 __fastcall sub_1800B3900(__int64 a1)\n{\n  struct _RTL_CRITICAL_SECTION *v2; // rcx\n  char v4; // [rsp+20h] [rbp-18h]\n\n  **(_QWORD **)(a1 + 8) = *(_QWORD *)a1;\n  *(_QWORD *)(*(_QWORD *)a1 + 8LL) = *(_QWORD *)(a1 + 8);\n  *(_QWORD *)(a1 + 8) = a1;\n  *(_QWORD *)a1 = a1;\n  *(_BYTE *)(a1 + 360) = 0;\n  sub_1800B8560(a1 + 24);\n  if ( !*(_BYTE *)(a1 + 420) )\n    *((_QWORD *)off_1801AED20 + 8) = 0;\n  v2 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 408);\n  if ( v2 )\n    FMOD_OS_CriticalSection_Free(v2);\n  v4 = 1;\n  sub_1800B6AA0(\n    *((_QWORD *)off_1801AED20 + 52),\n    a1,\n    \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_file.cpp\",\n    213,\n    v4);\n  return 0;\n}", "assembly": "; \n; sub_1800B3900 from 0x1800b3900 to 0x1800b3990 (144 bytes)\n; \n; 2 xrefs:\n; > sub_1800B25E0 @ 0x1800b269e\n; > <???> @ 0x1801fce58\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:57 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800b3900\nsub     rsp, 30h                                                       ; +0x2, 0x1800b3902\nmov     rdx, [rcx+8]                                                   ; +0x6, 0x1800b3906\nmov     rbx, rcx                                                       ; +0xa, 0x1800b390a\nmov     rax, [rcx]                                                     ; +0xd, 0x1800b390d\nmov     [rdx], rax                                                     ; +0x10, 0x1800b3910\nmov     rdx, [rcx]                                                     ; +0x13, 0x1800b3913\nmov     rax, [rcx+8]                                                   ; +0x16, 0x1800b3916\nmov     [rdx+8], rax                                                   ; +0x1a, 0x1800b391a\nmov     [rcx+8], rcx                                                   ; +0x1e, 0x1800b391e\nmov     [rcx], rcx                                                     ; +0x22, 0x1800b3922\nmov     byte ptr [rcx+168h], 0                                         ; +0x25, 0x1800b3925\nadd     rcx, 18h                                                       ; +0x2c, 0x1800b392c\ncall    sub_1800B8560                                                  ; +0x30, 0x1800b3930\ncmp     byte ptr [rbx+1A4h], 0                                         ; +0x35, 0x1800b3935\njnz     short loc_1800B394D                                            ; +0x3c, 0x1800b393c\nmov     rax, cs:off_1801AED20                                          ; +0x3e, 0x1800b393e\nmov     qword ptr [rax+40h], 0                                         ; +0x45, 0x1800b3945\nmov     rcx, [rbx+198h]; lpCriticalSection                             ; +0x4d, 0x1800b394d\ntest    rcx, rcx                                                       ; +0x54, 0x1800b3954\njz      short loc_1800B3960                                            ; +0x57, 0x1800b3957\nxor     edx, edx                                                       ; +0x59, 0x1800b3959\ncall    FMOD_OS_CriticalSection_Free                                   ; +0x5b, 0x1800b395b\nmov     rcx, cs:off_1801AED20                                          ; +0x60, 0x1800b3960\nlea     r8, aCBuildagent1Wo_31; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x67, 0x1800b3967\nmov     r9d, 0D5h                                                      ; +0x6e, 0x1800b396e\nmov     [rsp+38h+var_18], 1                                            ; +0x74, 0x1800b3974\nmov     rdx, rbx                                                       ; +0x79, 0x1800b3979\nmov     rcx, [rcx+1A0h]                                                ; +0x7c, 0x1800b397c\ncall    sub_1800B6AA0                                                  ; +0x83, 0x1800b3983\nxor     eax, eax                                                       ; +0x88, 0x1800b3988\nadd     rsp, 30h                                                       ; +0x8a, 0x1800b398a\npop     rbx                                                            ; +0x8e, 0x1800b398e\nretn                                                                   ; +0x8f, 0x1800b398f", "xrefs": ["sub_1800B25E0 @ 0x1800b269e", "<???> @ 0x1801fce58"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}