{"type": "func", "start": 6443250816, "end": 6443251317, "name": "sub_1800C3480", "pseudocode": "// \n// sub_1800C3480 from 0x1800c3480 to 0x1800c3675 (501 bytes)\n// \n// 2 xrefs:\n// > sub_1800C3680 @ 0x1800c3690\n// > <???> @ 0x1801fdd70\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_1800C3480(__int64 a1)\n{\n  int v2; // esi\n  __int64 v3; // rbx\n  _DWORD *v4; // rdx\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rdx\n  void *v9; // rcx\n  int v10; // esi\n  __int64 v11; // rbx\n  _DWORD *v12; // rdx\n\n  if ( *(_QWORD *)(a1 + 1880) )\n  {\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1824) + 56LL))(*(_QWORD *)(a1 + 1824));\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *(_DWORD **)(a1 + 1880));\n    *(_QWORD *)(a1 + 1880) = 0;\n  }\n  v2 = 0;\n  if ( *(int *)(a1 + 1888) > 0 )\n  {\n    v3 = a1 + 1904;\n    do\n    {\n      CoTaskMemFree(*(LPVOID *)(v3 - 8));\n      v4 = *(_DWORD **)v3;\n      *(_QWORD *)(v3 - 8) = 0;\n      if ( v4 )\n      {\n        sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v4);\n        *(_QWORD *)v3 = 0;\n      }\n      *(_QWORD *)(v3 + 8) = 0;\n      ++v2;\n      v3 += 24;\n    }\n    while ( v2 < *(_DWORD *)(a1 + 1888) );\n  }\n  v5 = *(_QWORD *)(a1 + 1824);\n  *(_DWORD *)(a1 + 1888) = 0;\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);\n    *(_QWORD *)(a1 + 1824) = 0;\n  }\n  v6 = *(_QWORD *)(a1 + 1840);\n  if ( v6 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);\n    *(_QWORD *)(a1 + 1840) = 0;\n  }\n  v7 = *(_QWORD *)(a1 + 1832);\n  if ( v7 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 88LL))(v7);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1832) + 16LL))(*(_QWORD *)(a1 + 1832));\n    *(_QWORD *)(a1 + 1832) = 0;\n  }\n  v8 = *(_QWORD *)(a1 + 1856);\n  if ( v8 )\n  {\n    sub_1800B6510(\n      *((_QWORD *)off_1801AED20 + 52),\n      v8,\n      (__int64)\"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\platforms\\\\win\\\\src\\\\fmod_output_wasapi.cpp\",\n      556);\n    *(_QWORD *)(a1 + 1856) = 0;\n  }\n  v9 = *(void **)(a1 + 1848);\n  if ( v9 )\n  {\n    CloseHandle(v9);\n    *(_QWORD *)(a1 + 1848) = 0;\n  }\n  v10 = 0;\n  if ( *(int *)(a1 + 1048) > 0 )\n  {\n    v11 = a1 + 1064;\n    do\n    {\n      CoTaskMemFree(*(LPVOID *)(v11 - 8));\n      v12 = *(_DWORD **)v11;\n      *(_QWORD *)(v11 - 8) = 0;\n      if ( v12 )\n      {\n        sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v12);\n        *(_QWORD *)v11 = 0;\n      }\n      *(_QWORD *)(v11 + 8) = 0;\n      ++v10;\n      v11 += 24;\n    }\n    while ( v10 < *(_DWORD *)(a1 + 1048) );\n  }\n  *(_DWORD *)(a1 + 1048) = 0;\n  *(_BYTE *)(a1 + 784) = 0;\n  return 0;\n}", "assembly": "; \n; sub_1800C3480 from 0x1800c3480 to 0x1800c3675 (501 bytes)\n; \n; 2 xrefs:\n; > sub_1800C3680 @ 0x1800c3690\n; > <???> @ 0x1801fdd70\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_8], rbp                                               ; +0x0, 0x1800c3480\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800c3485\npush    rdi                                                            ; +0xa, 0x1800c348a\nsub     rsp, 30h                                                       ; +0xb, 0x1800c348b\nmov     rdx, [rcx+758h]                                                ; +0xf, 0x1800c348f\nxor     ebp, ebp                                                       ; +0x16, 0x1800c3496\nmov     rdi, rcx                                                       ; +0x18, 0x1800c3498\ntest    rdx, rdx                                                       ; +0x1b, 0x1800c349b\njz      short loc_1800C34E0                                            ; +0x1e, 0x1800c349e\nmov     rcx, [rcx+720h]                                                ; +0x20, 0x1800c34a0\nmov     rax, [rcx]                                                     ; +0x27, 0x1800c34a7\ncall    qword ptr [rax+38h]                                            ; +0x2a, 0x1800c34aa\nmov     rcx, cs:off_1801AED20                                          ; +0x2d, 0x1800c34ad\nlea     r8, aCBuildagent1Wo_48; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x34, 0x1800c34b4\nmov     rdx, [rdi+758h]                                                ; +0x3b, 0x1800c34bb\nmov     r9d, 20Ch                                                      ; +0x42, 0x1800c34c2\nmov     [rsp+38h+var_18], 1                                            ; +0x48, 0x1800c34c8\nmov     rcx, [rcx+1A0h]                                                ; +0x4d, 0x1800c34cd\ncall    sub_1800B6AA0                                                  ; +0x54, 0x1800c34d4\nmov     [rdi+758h], rbp                                                ; +0x59, 0x1800c34d9\nmov     esi, ebp                                                       ; +0x60, 0x1800c34e0\nmov     [rsp+38h+arg_0], rbx                                           ; +0x62, 0x1800c34e2\ncmp     [rdi+760h], ebp                                                ; +0x67, 0x1800c34e7\njle     short loc_1800C3546                                            ; +0x6d, 0x1800c34ed\nlea     rbx, [rdi+770h]                                                ; +0x6f, 0x1800c34ef\nmov     rcx, [rbx-8]; pv                                               ; +0x76, 0x1800c34f6\ncall    cs:CoTaskMemFree                                               ; +0x7a, 0x1800c34fa\nmov     rdx, [rbx]                                                     ; +0x80, 0x1800c3500\nmov     [rbx-8], rbp                                                   ; +0x83, 0x1800c3503\ntest    rdx, rdx                                                       ; +0x87, 0x1800c3507\njz      short loc_1800C3534                                            ; +0x8a, 0x1800c350a\nmov     rcx, cs:off_1801AED20                                          ; +0x8c, 0x1800c350c\nlea     r8, aCBuildagent1Wo_48; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x93, 0x1800c3513\nmov     r9d, 12Ch                                                      ; +0x9a, 0x1800c351a\nmov     [rsp+38h+var_18], 1                                            ; +0xa0, 0x1800c3520\nmov     rcx, [rcx+1A0h]                                                ; +0xa5, 0x1800c3525\ncall    sub_1800B6AA0                                                  ; +0xac, 0x1800c352c\nmov     [rbx], rbp                                                     ; +0xb1, 0x1800c3531\nmov     [rbx+8], rbp                                                   ; +0xb4, 0x1800c3534\ninc     esi                                                            ; +0xb8, 0x1800c3538\nadd     rbx, 18h                                                       ; +0xba, 0x1800c353a\ncmp     esi, [rdi+760h]                                                ; +0xbe, 0x1800c353e\njl      short loc_1800C34F6                                            ; +0xc4, 0x1800c3544\nmov     rcx, [rdi+720h]                                                ; +0xc6, 0x1800c3546\nmov     [rdi+760h], ebp                                                ; +0xcd, 0x1800c354d\ntest    rcx, rcx                                                       ; +0xd3, 0x1800c3553\njz      short loc_1800C3565                                            ; +0xd6, 0x1800c3556\nmov     rax, [rcx]                                                     ; +0xd8, 0x1800c3558\ncall    qword ptr [rax+10h]                                            ; +0xdb, 0x1800c355b\nmov     [rdi+720h], rbp                                                ; +0xde, 0x1800c355e\nmov     rcx, [rdi+730h]                                                ; +0xe5, 0x1800c3565\ntest    rcx, rcx                                                       ; +0xec, 0x1800c356c\njz      short loc_1800C357E                                            ; +0xef, 0x1800c356f\nmov     rax, [rcx]                                                     ; +0xf1, 0x1800c3571\ncall    qword ptr [rax+10h]                                            ; +0xf4, 0x1800c3574\nmov     [rdi+730h], rbp                                                ; +0xf7, 0x1800c3577\nmov     rcx, [rdi+728h]                                                ; +0xfe, 0x1800c357e\ntest    rcx, rcx                                                       ; +0x105, 0x1800c3585\njz      short loc_1800C35A4                                            ; +0x108, 0x1800c3588\nmov     rax, [rcx]                                                     ; +0x10a, 0x1800c358a\ncall    qword ptr [rax+58h]                                            ; +0x10d, 0x1800c358d\nmov     rcx, [rdi+728h]                                                ; +0x110, 0x1800c3590\nmov     rax, [rcx]                                                     ; +0x117, 0x1800c3597\ncall    qword ptr [rax+10h]                                            ; +0x11a, 0x1800c359a\nmov     [rdi+728h], rbp                                                ; +0x11d, 0x1800c359d\nmov     rdx, [rdi+740h]                                                ; +0x124, 0x1800c35a4\ntest    rdx, rdx                                                       ; +0x12b, 0x1800c35ab\njz      short loc_1800C35D7                                            ; +0x12e, 0x1800c35ae\nmov     rcx, cs:off_1801AED20                                          ; +0x130, 0x1800c35b0\nlea     r8, aCBuildagent1Wo_48; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x137, 0x1800c35b7\nmov     r9d, 22Ch                                                      ; +0x13e, 0x1800c35be\nmov     rcx, [rcx+1A0h]                                                ; +0x144, 0x1800c35c4\ncall    sub_1800B6510                                                  ; +0x14b, 0x1800c35cb\nmov     [rdi+740h], rbp                                                ; +0x150, 0x1800c35d0\nmov     rcx, [rdi+738h]; hObject                                       ; +0x157, 0x1800c35d7\ntest    rcx, rcx                                                       ; +0x15e, 0x1800c35de\njz      short loc_1800C35F0                                            ; +0x161, 0x1800c35e1\ncall    cs:CloseHandle                                                 ; +0x163, 0x1800c35e3\nmov     [rdi+738h], rbp                                                ; +0x169, 0x1800c35e9\nmov     esi, ebp                                                       ; +0x170, 0x1800c35f0\ncmp     [rdi+418h], ebp                                                ; +0x172, 0x1800c35f2\njle     short loc_1800C3651                                            ; +0x178, 0x1800c35f8\nlea     rbx, [rdi+428h]                                                ; +0x17a, 0x1800c35fa\nmov     rcx, [rbx-8]; pv                                               ; +0x181, 0x1800c3601\ncall    cs:CoTaskMemFree                                               ; +0x185, 0x1800c3605\nmov     rdx, [rbx]                                                     ; +0x18b, 0x1800c360b\nmov     [rbx-8], rbp                                                   ; +0x18e, 0x1800c360e\ntest    rdx, rdx                                                       ; +0x192, 0x1800c3612\njz      short loc_1800C363F                                            ; +0x195, 0x1800c3615\nmov     rcx, cs:off_1801AED20                                          ; +0x197, 0x1800c3617\nlea     r8, aCBuildagent1Wo_48; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x19e, 0x1800c361e\nmov     r9d, 12Ch                                                      ; +0x1a5, 0x1800c3625\nmov     [rsp+38h+var_18], 1                                            ; +0x1ab, 0x1800c362b\nmov     rcx, [rcx+1A0h]                                                ; +0x1b0, 0x1800c3630\ncall    sub_1800B6AA0                                                  ; +0x1b7, 0x1800c3637\nmov     [rbx], rbp                                                     ; +0x1bc, 0x1800c363c\nmov     [rbx+8], rbp                                                   ; +0x1bf, 0x1800c363f\ninc     esi                                                            ; +0x1c3, 0x1800c3643\nadd     rbx, 18h                                                       ; +0x1c5, 0x1800c3645\ncmp     esi, [rdi+418h]                                                ; +0x1c9, 0x1800c3649\njl      short loc_1800C3601                                            ; +0x1cf, 0x1800c364f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1d1, 0x1800c3651\nxor     eax, eax                                                       ; +0x1d6, 0x1800c3656\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x1d8, 0x1800c3658\nmov     [rdi+418h], ebp                                                ; +0x1dd, 0x1800c365d\nmov     [rdi+310h], bpl                                                ; +0x1e3, 0x1800c3663\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x1ea, 0x1800c366a\nadd     rsp, 30h                                                       ; +0x1ef, 0x1800c366f\npop     rdi                                                            ; +0x1f3, 0x1800c3673\nretn                                                                   ; +0x1f4, 0x1800c3674", "xrefs": ["sub_1800C3680 @ 0x1800c3690", "<???> @ 0x1801fdd70"], "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"}