{"type": "func", "start": 6443309488, "end": 6443309909, "name": "sub_1800D19B0", "pseudocode": "// \n// sub_1800D19B0 from 0x1800d19b0 to 0x1800d1b55 (421 bytes)\n// \n// 2 xrefs:\n// > sub_1800E2FB0 @ 0x1800e3071\n// > <???> @ 0x1801febf8\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_1800D19B0(__int64 a1, int a2, int a3)\n{\n  struct _RTL_CRITICAL_SECTION *v6; // rbp\n  unsigned int v7; // edi\n  void *v8; // rax\n  int v9; // eax\n  void *v10; // rax\n  void *v11; // rax\n  __int64 v13; // [rsp+30h] [rbp-18h]\n  __int64 v14; // [rsp+30h] [rbp-18h]\n\n  v6 = *(struct _RTL_CRITICAL_SECTION **)(*(_QWORD *)(a1 + 24) + 400LL);\n  FMOD_OS_CriticalSection_Enter(v6);\n  if ( *(_QWORD *)(a1 + 64) || *(_QWORD *)(a1 + 48) )\n  {\n    v9 = 28;\n    goto LABEL_10;\n  }\n  v7 = 0;\n  *(_DWORD *)(a1 + 32) = a3;\n  *(_DWORD *)(a1 + 36) = 0;\n  *(_DWORD *)(a1 + 44) = 0;\n  *(_DWORD *)(a1 + 40) = a2;\n  v8 = sub_1800B6530(\n         *((_QWORD *)off_1801AED20 + 52),\n         (unsigned int)(4 * a3),\n         \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_geometryi.cpp\",\n         449,\n         0,\n         0,\n         1);\n  *(_QWORD *)(a1 + 48) = v8;\n  if ( !v8 )\n    goto LABEL_4;\n  *(_DWORD *)(a1 + 56) = 0;\n  LOBYTE(v13) = 1;\n  v10 = sub_1800B6530(\n          *((_QWORD *)off_1801AED20 + 52),\n          (unsigned int)(188 * a2 + 12 * a3),\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_geometryi.cpp\",\n          458,\n          0,\n          0,\n          v13);\n  *(_QWORD *)(a1 + 64) = v10;\n  if ( !v10 )\n    goto LABEL_4;\n  v9 = sub_1800D0F70(*(_QWORD *)(a1 + 24));\n  if ( v9 )\n    goto LABEL_10;\n  LOBYTE(v14) = 1;\n  v11 = sub_1800B6530(\n          *((_QWORD *)off_1801AED20 + 52),\n          168,\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_geometryi.cpp\",\n          470,\n          0,\n          0,\n          v14);\n  *(_QWORD *)(a1 + 264) = v11;\n  if ( !v11 )\n  {\nLABEL_4:\n    v9 = 38;\nLABEL_10:\n    v7 = v9;\n    goto LABEL_11;\n  }\n  memset(v11, 0, 0xA8u);\n  *(_QWORD *)(*(_QWORD *)(a1 + 264) + 160LL) = a1;\n  sub_1800D5D10(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 416LL), *(_QWORD *)(a1 + 264) + 80LL);\nLABEL_11:\n  FMOD_OS_CriticalSection_Leave(v6);\n  return v7;\n}", "assembly": "; \n; sub_1800D19B0 from 0x1800d19b0 to 0x1800d1b55 (421 bytes)\n; \n; 2 xrefs:\n; > sub_1800E2FB0 @ 0x1800e3071\n; > <???> @ 0x1801febf8\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, 0x1800d19b0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d19b5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d19ba\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800d19bf\npush    r14                                                            ; +0x14, 0x1800d19c4\nsub     rsp, 40h                                                       ; +0x16, 0x1800d19c6\nmov     rax, [rcx+18h]                                                 ; +0x1a, 0x1800d19ca\nmov     rbx, rcx                                                       ; +0x1e, 0x1800d19ce\nmov     esi, r8d                                                       ; +0x21, 0x1800d19d1\nmov     r14d, edx                                                      ; +0x24, 0x1800d19d4\nmov     rbp, [rax+190h]                                                ; +0x27, 0x1800d19d7\nmov     rcx, rbp                                                       ; +0x2e, 0x1800d19de\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x31, 0x1800d19e1\ncmp     qword ptr [rbx+40h], 0                                         ; +0x36, 0x1800d19e6\njnz     loc_1800D1B29                                                  ; +0x3b, 0x1800d19eb\ncmp     qword ptr [rbx+30h], 0                                         ; +0x41, 0x1800d19f1\njnz     loc_1800D1B29                                                  ; +0x46, 0x1800d19f6\nxor     edi, edi                                                       ; +0x4c, 0x1800d19fc\nmov     [rbx+20h], esi                                                 ; +0x4e, 0x1800d19fe\nmov     [rbx+24h], edi                                                 ; +0x51, 0x1800d1a01\nlea     edx, ds:0[rsi*4]                                               ; +0x54, 0x1800d1a04\nmov     [rbx+2Ch], edi                                                 ; +0x5b, 0x1800d1a0b\nlea     r8, aCBuildagent1Wo_54; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x5e, 0x1800d1a0e\nmov     [rbx+28h], r14d                                                ; +0x65, 0x1800d1a15\nmov     r9d, 1C1h                                                      ; +0x69, 0x1800d1a19\nmov     rcx, cs:off_1801AED20                                          ; +0x6f, 0x1800d1a1f\nmov     byte ptr [rsp+48h+var_18], 1                                   ; +0x76, 0x1800d1a26\nmov     [rsp+48h+var_20], dil                                          ; +0x7b, 0x1800d1a2b\nmov     [rsp+48h+var_28], edi                                          ; +0x80, 0x1800d1a30\nmov     rcx, [rcx+1A0h]                                                ; +0x84, 0x1800d1a34\ncall    sub_1800B6530                                                  ; +0x8b, 0x1800d1a3b\nmov     [rbx+30h], rax                                                 ; +0x90, 0x1800d1a40\ntest    rax, rax                                                       ; +0x94, 0x1800d1a44\njnz     short loc_1800D1A53                                            ; +0x97, 0x1800d1a47\nmov     eax, 26h ; '&'                                                 ; +0x99, 0x1800d1a49\njmp     loc_1800D1B2E                                                  ; +0x9e, 0x1800d1a4e\nmov     [rbx+38h], edi                                                 ; +0xa3, 0x1800d1a53\nlea     eax, [rsi+rsi*2]                                               ; +0xa6, 0x1800d1a56\nimul    ecx, r14d, 0BCh                                                ; +0xa9, 0x1800d1a59\nlea     r8, aCBuildagent1Wo_54; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xb0, 0x1800d1a60\nmov     byte ptr [rsp+48h+var_18], 1                                   ; +0xb7, 0x1800d1a67\nmov     r9d, 1CAh                                                      ; +0xbc, 0x1800d1a6c\nmov     [rsp+48h+var_20], dil                                          ; +0xc2, 0x1800d1a72\nmov     [rsp+48h+var_28], edi                                          ; +0xc7, 0x1800d1a77\nlea     edx, [rcx+rax*4]                                               ; +0xcb, 0x1800d1a7b\nmov     rcx, cs:off_1801AED20                                          ; +0xce, 0x1800d1a7e\nmov     rcx, [rcx+1A0h]                                                ; +0xd5, 0x1800d1a85\ncall    sub_1800B6530                                                  ; +0xdc, 0x1800d1a8c\nmov     [rbx+40h], rax                                                 ; +0xe1, 0x1800d1a91\ntest    rax, rax                                                       ; +0xe5, 0x1800d1a95\njz      short loc_1800D1A49                                            ; +0xe8, 0x1800d1a98\nmov     rcx, [rbx+18h]                                                 ; +0xea, 0x1800d1a9a\ncall    sub_1800D0F70                                                  ; +0xee, 0x1800d1a9e\ntest    eax, eax                                                       ; +0xf3, 0x1800d1aa3\njnz     loc_1800D1B2E                                                  ; +0xf5, 0x1800d1aa5\nmov     rcx, cs:off_1801AED20                                          ; +0xfb, 0x1800d1aab\nlea     r8, aCBuildagent1Wo_54; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x102, 0x1800d1ab2\nmov     byte ptr [rsp+48h+var_18], 1                                   ; +0x109, 0x1800d1ab9\nmov     r9d, 1D6h                                                      ; +0x10e, 0x1800d1abe\nmov     [rsp+48h+var_20], dil                                          ; +0x114, 0x1800d1ac4\nmov     edx, 0A8h                                                      ; +0x119, 0x1800d1ac9\nmov     [rsp+48h+var_28], edi                                          ; +0x11e, 0x1800d1ace\nmov     rcx, [rcx+1A0h]                                                ; +0x122, 0x1800d1ad2\ncall    sub_1800B6530                                                  ; +0x129, 0x1800d1ad9\nmov     [rbx+108h], rax                                                ; +0x12e, 0x1800d1ade\ntest    rax, rax                                                       ; +0x135, 0x1800d1ae5\njz      loc_1800D1A49                                                  ; +0x138, 0x1800d1ae8\nxor     edx, edx; Val                                                  ; +0x13e, 0x1800d1aee\nmov     r8d, 0A8h; Size                                                ; +0x140, 0x1800d1af0\nmov     rcx, rax; void *                                               ; +0x146, 0x1800d1af6\ncall    memset                                                         ; +0x149, 0x1800d1af9\nmov     rax, [rbx+108h]                                                ; +0x14e, 0x1800d1afe\nmov     [rax+0A0h], rbx                                                ; +0x155, 0x1800d1b05\nmov     rcx, [rbx+18h]                                                 ; +0x15c, 0x1800d1b0c\nmov     rdx, [rbx+108h]                                                ; +0x160, 0x1800d1b10\nadd     rdx, 50h ; 'P'                                                 ; +0x167, 0x1800d1b17\nmov     rcx, [rcx+1A0h]                                                ; +0x16b, 0x1800d1b1b\ncall    sub_1800D5D10                                                  ; +0x172, 0x1800d1b22\njmp     short loc_1800D1B30                                            ; +0x177, 0x1800d1b27\nmov     eax, 1Ch                                                       ; +0x179, 0x1800d1b29\nmov     edi, eax                                                       ; +0x17e, 0x1800d1b2e\nmov     rcx, rbp                                                       ; +0x180, 0x1800d1b30\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x183, 0x1800d1b33\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x188, 0x1800d1b38\nmov     eax, edi                                                       ; +0x18d, 0x1800d1b3d\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x18f, 0x1800d1b3f\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x194, 0x1800d1b44\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x199, 0x1800d1b49\nadd     rsp, 40h                                                       ; +0x19e, 0x1800d1b4e\npop     r14                                                            ; +0x1a2, 0x1800d1b52\nretn                                                                   ; +0x1a4, 0x1800d1b54", "xrefs": ["sub_1800E2FB0 @ 0x1800e3071", "<???> @ 0x1801febf8"], "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"}