{"type": "func", "start": 6443248752, "end": 6443249084, "name": "sub_1800C2C70", "pseudocode": "// \n// sub_1800C2C70 from 0x1800c2c70 to 0x1800c2dbc (332 bytes)\n// \n// 5 xrefs:\n// > sub_1800C2180 @ 0x1800c21f6\n// > <???> @ 0x18018a898\n// > <???> @ 0x18018a8ac\n// > <???> @ 0x18018a8c0\n// > <???> @ 0x1801fdce0\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:54:03 +0000\n// \n\n__int64 __fastcall sub_1800C2C70(__int64 a1, _DWORD *a2)\n{\n  __int64 v2; // rdi\n  __int64 result; // rax\n  __int64 v6; // rcx\n  int v7; // eax\n  int v8; // edx\n  bool v9; // cc\n  __int64 v10; // rax\n  int v11; // eax\n  void *v12; // rax\n  __int64 v13; // rcx\n  __int64 v14; // rcx\n  __int64 v15; // rcx\n  int v16; // [rsp+50h] [rbp+8h] BYREF\n  int v17; // [rsp+60h] [rbp+18h] BYREF\n  double v18; // [rsp+68h] [rbp+20h] BYREF\n\n  v2 = a1 + 1096;\n  if ( !a1 )\n    v2 = 1104;\n  v18 = 0.0;\n  if ( (*(unsigned int (__fastcall **)(_QWORD, double *))(**(_QWORD **)v2 + 104LL))(*(_QWORD *)v2, &v18) )\n    return 49;\n  v6 = *(_QWORD *)v2;\n  v16 = 0;\n  v17 = 0;\n  if ( (*(unsigned int (__fastcall **)(__int64, int *, int *))(*(_QWORD *)v6 + 72LL))(v6, &v16, &v17) )\n    return 49;\n  v7 = (int)v18;\n  v8 = v16;\n  v9 = a2[8] < v16;\n  a2[6] = 5;\n  if ( v9 )\n    v8 = a2[8];\n  a2[8] = v8;\n  a2[7] = v7;\n  v10 = a1 + 1128;\n  if ( !a1 )\n    v10 = 1136;\n  v11 = 2 * *(_DWORD *)v10;\n  a2[9] = v11;\n  v12 = sub_1800B6880(\n          *((_QWORD *)off_1801AED20 + 52),\n          (unsigned int)(4 * v11 * v8),\n          \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_output_asio.cpp\",\n          760,\n          0);\n  v13 = a1 + 1200;\n  if ( !a1 )\n    v13 = 1208;\n  *(_QWORD *)v13 = v12;\n  if ( !v12 )\n    return 38;\n  v14 = a1 + 1208;\n  result = 0;\n  if ( !a1 )\n    v14 = 1216;\n  *(_DWORD *)v14 = 0;\n  v15 = a1 + 1192;\n  if ( !a1 )\n    v15 = 1200;\n  *(_QWORD *)v15 = a2;\n  return result;\n}", "assembly": "; \n; sub_1800C2C70 from 0x1800c2c70 to 0x1800c2dbc (332 bytes)\n; \n; 5 xrefs:\n; > sub_1800C2180 @ 0x1800c21f6\n; > <???> @ 0x18018a898\n; > <???> @ 0x18018a8ac\n; > <???> @ 0x18018a8c0\n; > <???> @ 0x1801fdce0\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:54:03 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800c2c70\npush    rsi                                                            ; +0x2, 0x1800c2c72\npush    rdi                                                            ; +0x3, 0x1800c2c73\nsub     rsp, 30h                                                       ; +0x4, 0x1800c2c74\ntest    rcx, rcx                                                       ; +0x8, 0x1800c2c78\nlea     rdi, [rcx+448h]                                                ; +0xb, 0x1800c2c7b\nmov     eax, 450h                                                      ; +0x12, 0x1800c2c82\nmov     rbx, rcx                                                       ; +0x17, 0x1800c2c87\ncmovz   rdi, rax                                                       ; +0x1a, 0x1800c2c8a\nxorps   xmm0, xmm0                                                     ; +0x1e, 0x1800c2c8e\nmovsd   [rsp+48h+arg_18], xmm0                                         ; +0x21, 0x1800c2c91\nmov     rsi, rdx                                                       ; +0x27, 0x1800c2c97\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x2a, 0x1800c2c9a\nmov     rcx, [rdi]                                                     ; +0x2f, 0x1800c2c9f\nmov     rax, [rcx]                                                     ; +0x32, 0x1800c2ca2\ncall    qword ptr [rax+68h]                                            ; +0x35, 0x1800c2ca5\ntest    eax, eax                                                       ; +0x38, 0x1800c2ca8\njz      short loc_1800C2CB9                                            ; +0x3a, 0x1800c2caa\nmov     eax, 31h ; '1'                                                 ; +0x3c, 0x1800c2cac\nadd     rsp, 30h                                                       ; +0x41, 0x1800c2cb1\npop     rdi                                                            ; +0x45, 0x1800c2cb5\npop     rsi                                                            ; +0x46, 0x1800c2cb6\npop     rbx                                                            ; +0x47, 0x1800c2cb7\nretn                                                                   ; +0x48, 0x1800c2cb8\nmov     rcx, [rdi]                                                     ; +0x49, 0x1800c2cb9\nlea     r8, [rsp+48h+arg_10]                                           ; +0x4c, 0x1800c2cbc\nmov     [rsp+48h+arg_8], rbp                                           ; +0x51, 0x1800c2cc1\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x56, 0x1800c2cc6\nxor     ebp, ebp                                                       ; +0x5b, 0x1800c2ccb\nmov     [rsp+48h+arg_0], ebp                                           ; +0x5d, 0x1800c2ccd\nmov     [rsp+48h+arg_10], ebp                                          ; +0x61, 0x1800c2cd1\nmov     rax, [rcx]                                                     ; +0x65, 0x1800c2cd5\ncall    qword ptr [rax+48h]                                            ; +0x68, 0x1800c2cd8\ntest    eax, eax                                                       ; +0x6b, 0x1800c2cdb\njz      short loc_1800C2CEF                                            ; +0x6d, 0x1800c2cdd\nlea     eax, [rbp+31h]                                                 ; +0x6f, 0x1800c2cdf\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x72, 0x1800c2ce2\nadd     rsp, 30h                                                       ; +0x77, 0x1800c2ce7\npop     rdi                                                            ; +0x7b, 0x1800c2ceb\npop     rsi                                                            ; +0x7c, 0x1800c2cec\npop     rbx                                                            ; +0x7d, 0x1800c2ced\nretn                                                                   ; +0x7e, 0x1800c2cee\ncvttsd2si eax, [rsp+48h+arg_18]                                        ; +0x7f, 0x1800c2cef\nmov     edx, [rsp+48h+arg_0]                                           ; +0x85, 0x1800c2cf5\nlea     r8, aCBuildagent1Wo_47; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x89, 0x1800c2cf9\ncmp     [rsi+20h], edx                                                 ; +0x90, 0x1800c2d00\nmov     ecx, 470h                                                      ; +0x93, 0x1800c2d03\nmov     dword ptr [rsi+18h], 5                                         ; +0x98, 0x1800c2d08\nmov     r9d, 2F8h                                                      ; +0x9f, 0x1800c2d0f\ncmovl   edx, [rsi+20h]                                                 ; +0xa5, 0x1800c2d15\ntest    rbx, rbx                                                       ; +0xa9, 0x1800c2d19\nmov     [rsi+20h], edx                                                 ; +0xac, 0x1800c2d1c\nmov     [rsp+48h+var_28], ebp                                          ; +0xaf, 0x1800c2d1f\nmov     [rsi+1Ch], eax                                                 ; +0xb3, 0x1800c2d23\nlea     rax, [rbx+468h]                                                ; +0xb6, 0x1800c2d26\ncmovz   rax, rcx                                                       ; +0xbd, 0x1800c2d2d\nmov     ecx, [rax]                                                     ; +0xc1, 0x1800c2d31\nadd     ecx, ecx                                                       ; +0xc3, 0x1800c2d33\nmov     eax, ecx                                                       ; +0xc5, 0x1800c2d35\nmov     [rsi+24h], ecx                                                 ; +0xc7, 0x1800c2d37\nmov     rcx, cs:off_1801AED20                                          ; +0xca, 0x1800c2d3a\nshl     rax, 5                                                         ; +0xd1, 0x1800c2d41\nshr     rax, 3                                                         ; +0xd5, 0x1800c2d45\nimul    edx, eax                                                       ; +0xd9, 0x1800c2d49\nmov     rcx, [rcx+1A0h]                                                ; +0xdc, 0x1800c2d4c\ncall    sub_1800B6880                                                  ; +0xe3, 0x1800c2d53\ntest    rbx, rbx                                                       ; +0xe8, 0x1800c2d58\nlea     rcx, [rbx+4B0h]                                                ; +0xeb, 0x1800c2d5b\nmov     edx, 4B8h                                                      ; +0xf2, 0x1800c2d62\ncmovz   rcx, rdx                                                       ; +0xf7, 0x1800c2d67\nmov     [rcx], rax                                                     ; +0xfb, 0x1800c2d6b\ntest    rax, rax                                                       ; +0xfe, 0x1800c2d6e\njnz     short loc_1800C2D85                                            ; +0x101, 0x1800c2d71\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x103, 0x1800c2d73\nmov     eax, 26h ; '&'                                                 ; +0x108, 0x1800c2d78\nadd     rsp, 30h                                                       ; +0x10d, 0x1800c2d7d\npop     rdi                                                            ; +0x111, 0x1800c2d81\npop     rsi                                                            ; +0x112, 0x1800c2d82\npop     rbx                                                            ; +0x113, 0x1800c2d83\nretn                                                                   ; +0x114, 0x1800c2d84\ntest    rbx, rbx                                                       ; +0x115, 0x1800c2d85\nlea     rcx, [rbx+4B8h]                                                ; +0x118, 0x1800c2d88\nmov     edx, 4C0h                                                      ; +0x11f, 0x1800c2d8f\nmov     eax, ebp                                                       ; +0x124, 0x1800c2d94\ncmovz   rcx, rdx                                                       ; +0x126, 0x1800c2d96\nmov     edx, 4B0h                                                      ; +0x12a, 0x1800c2d9a\nmov     [rcx], ebp                                                     ; +0x12f, 0x1800c2d9f\nlea     rcx, [rbx+4A8h]                                                ; +0x131, 0x1800c2da1\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x138, 0x1800c2da8\ncmovz   rcx, rdx                                                       ; +0x13d, 0x1800c2dad\nmov     [rcx], rsi                                                     ; +0x141, 0x1800c2db1\nadd     rsp, 30h                                                       ; +0x144, 0x1800c2db4\npop     rdi                                                            ; +0x148, 0x1800c2db8\npop     rsi                                                            ; +0x149, 0x1800c2db9\npop     rbx                                                            ; +0x14a, 0x1800c2dba\nretn                                                                   ; +0x14b, 0x1800c2dbb", "xrefs": ["sub_1800C2180 @ 0x1800c21f6", "<???> @ 0x18018a898", "<???> @ 0x18018a8ac", "<???> @ 0x18018a8c0", "<???> @ 0x1801fdce0"], "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"}