{"type": "func", "start": 6443254752, "end": 6443255322, "name": "sub_1800C43E0", "pseudocode": "// \n// sub_1800C43E0 from 0x1800c43e0 to 0x1800c461a (570 bytes)\n// \n// 4 xrefs:\n// > sub_1800C46C0 @ 0x1800c4719\n// > <???> @ 0x18018aafc\n// > <???> @ 0x18018ab0c\n// > <???> @ 0x1801fde30\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_1800C43E0(__int64 a1)\n{\n  int v2; // esi\n  __int64 v3; // rdi\n  _DWORD *v4; // rdx\n  __int64 v5; // rcx\n  int v6; // eax\n  __int64 v7; // rcx\n  unsigned int i; // edi\n  __int16 *v9; // rdx\n  char v11; // [rsp+20h] [rbp-48h]\n  _QWORD v12[3]; // [rsp+30h] [rbp-38h] BYREF\n  int v13; // [rsp+70h] [rbp+8h] BYREF\n  LPVOID pv; // [rsp+78h] [rbp+10h] BYREF\n  __int64 v15; // [rsp+80h] [rbp+18h] BYREF\n  __int64 v16; // [rsp+88h] [rbp+20h] BYREF\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        v11 = 1;\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  v12[0] = 0;\n  v6 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD, _QWORD *, char))(*(_QWORD *)v5 + 32LL))(v5, 1, 0, v12, v11);\n  if ( v6 != -2147023728 )\n  {\n    if ( v6 < 0 )\n      return 57;\n    if ( !(unsigned int)sub_1800C4B30(a1, v12[0], (int)a1 + 24 * (*(_DWORD *)(a1 + 1888) + 79), 0, 1) )\n      ++*(_DWORD *)(a1 + 1888);\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)v12[0] + 16LL))(v12[0]);\n  }\n  v7 = *(_QWORD *)(a1 + 1824);\n  v16 = 0;\n  if ( (*(int (__fastcall **)(__int64, __int64, __int64, __int64 *))(*(_QWORD *)v7 + 24LL))(v7, 2, 1, &v16) < 0 )\n    return 57;\n  v13 = 0;\n  if ( (*(int (__fastcall **)(__int64, int *))(*(_QWORD *)v16 + 24LL))(v16, &v13) < 0 )\n    return 57;\n  for ( i = 0; (int)i < v13; ++i )\n  {\n    v15 = 0;\n    if ( (*(int (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)v16 + 32LL))(v16, i, &v15) >= 0 )\n    {\n      pv = nullptr;\n      if ( !(*(unsigned int (__fastcall **)(__int64, LPVOID *))(*(_QWORD *)v15 + 40LL))(v15, &pv) )\n      {\n        if ( *(int *)(a1 + 1888) >= 32\n          || (v9 = *(__int16 **)(a1 + 1896)) != nullptr && !(unsigned int)sub_1800B82D0((__int64)pv, v9)\n          || (unsigned int)sub_1800C4B30(a1, v15, (int)a1 + 24 * (*(_DWORD *)(a1 + 1888) + 79), (_DWORD)pv, 1) )\n        {\n          CoTaskMemFree(pv);\n        }\n        else\n        {\n          ++*(_DWORD *)(a1 + 1888);\n        }\n      }\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 16LL))(v15);\n    }\n  }\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 16LL))(v16);\n  return 0;\n}", "assembly": "; \n; sub_1800C43E0 from 0x1800c43e0 to 0x1800c461a (570 bytes)\n; \n; 4 xrefs:\n; > sub_1800C46C0 @ 0x1800c4719\n; > <???> @ 0x18018aafc\n; > <???> @ 0x18018ab0c\n; > <???> @ 0x1801fde30\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\npush    rbx                                                            ; +0x0, 0x1800c43e0\npush    rbp                                                            ; +0x2, 0x1800c43e2\npush    rdi                                                            ; +0x3, 0x1800c43e3\nsub     rsp, 50h                                                       ; +0x4, 0x1800c43e4\nxor     ebp, ebp                                                       ; +0x8, 0x1800c43e8\nmov     [rsp+68h+var_20], rsi                                          ; +0xa, 0x1800c43ea\nmov     rbx, rcx                                                       ; +0xf, 0x1800c43ef\nmov     esi, ebp                                                       ; +0x12, 0x1800c43f2\ncmp     [rcx+760h], ebp                                                ; +0x14, 0x1800c43f4\njle     short loc_1800C4453                                            ; +0x1a, 0x1800c43fa\nlea     rdi, [rcx+770h]                                                ; +0x1c, 0x1800c43fc\nmov     rcx, [rdi-8]; pv                                               ; +0x23, 0x1800c4403\ncall    cs:CoTaskMemFree                                               ; +0x27, 0x1800c4407\nmov     rdx, [rdi]                                                     ; +0x2d, 0x1800c440d\nmov     [rdi-8], rbp                                                   ; +0x30, 0x1800c4410\ntest    rdx, rdx                                                       ; +0x34, 0x1800c4414\njz      short loc_1800C4441                                            ; +0x37, 0x1800c4417\nmov     rcx, cs:off_1801AED20                                          ; +0x39, 0x1800c4419\nlea     r8, aCBuildagent1Wo_48; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x40, 0x1800c4420\nmov     r9d, 12Ch                                                      ; +0x47, 0x1800c4427\nmov     [rsp+68h+var_48], 1                                            ; +0x4d, 0x1800c442d\nmov     rcx, [rcx+1A0h]                                                ; +0x52, 0x1800c4432\ncall    sub_1800B6AA0                                                  ; +0x59, 0x1800c4439\nmov     [rdi], rbp                                                     ; +0x5e, 0x1800c443e\nmov     [rdi+8], rbp                                                   ; +0x61, 0x1800c4441\ninc     esi                                                            ; +0x65, 0x1800c4445\nadd     rdi, 18h                                                       ; +0x67, 0x1800c4447\ncmp     esi, [rbx+760h]                                                ; +0x6b, 0x1800c444b\njl      short loc_1800C4403                                            ; +0x71, 0x1800c4451\nmov     rcx, [rbx+720h]                                                ; +0x73, 0x1800c4453\nlea     r9, [rsp+68h+var_38]                                           ; +0x7a, 0x1800c445a\nxor     r8d, r8d                                                       ; +0x7f, 0x1800c445f\nmov     [rbx+760h], ebp                                                ; +0x82, 0x1800c4462\nmov     [rsp+68h+var_38], rbp                                          ; +0x88, 0x1800c4468\nmov     rax, [rcx]                                                     ; +0x8d, 0x1800c446d\nlea     edx, [r8+1]                                                    ; +0x90, 0x1800c4470\ncall    qword ptr [rax+20h]                                            ; +0x94, 0x1800c4474\nmov     rsi, [rsp+68h+var_20]                                          ; +0x97, 0x1800c4477\ncmp     eax, 80070490h                                                 ; +0x9c, 0x1800c447c\njz      short loc_1800C44C8                                            ; +0xa1, 0x1800c4481\ntest    eax, eax                                                       ; +0xa3, 0x1800c4483\njs      loc_1800C460D                                                  ; +0xa5, 0x1800c4485\nmovsxd  rax, dword ptr [rbx+760h]                                      ; +0xab, 0x1800c448b\nxor     r9d, r9d                                                       ; +0xb2, 0x1800c4492\nmov     rdx, [rsp+68h+var_38]                                          ; +0xb5, 0x1800c4495\nadd     rax, 4Fh ; 'O'                                                 ; +0xba, 0x1800c449a\nmov     rcx, rbx                                                       ; +0xbe, 0x1800c449e\nmov     [rsp+68h+var_48], 1                                            ; +0xc1, 0x1800c44a1\nlea     rax, [rax+rax*2]                                               ; +0xc6, 0x1800c44a6\nlea     r8, [rbx+rax*8]                                                ; +0xca, 0x1800c44aa\ncall    sub_1800C4B30                                                  ; +0xce, 0x1800c44ae\ntest    eax, eax                                                       ; +0xd3, 0x1800c44b3\njnz     short loc_1800C44BD                                            ; +0xd5, 0x1800c44b5\ninc     dword ptr [rbx+760h]                                           ; +0xd7, 0x1800c44b7\nmov     rcx, [rsp+68h+var_38]                                          ; +0xdd, 0x1800c44bd\nmov     rax, [rcx]                                                     ; +0xe2, 0x1800c44c2\ncall    qword ptr [rax+10h]                                            ; +0xe5, 0x1800c44c5\nmov     rcx, [rbx+720h]                                                ; +0xe8, 0x1800c44c8\nlea     r9, [rsp+68h+arg_18]                                           ; +0xef, 0x1800c44cf\nmov     edx, 2                                                         ; +0xf7, 0x1800c44d7\nmov     [rsp+68h+arg_18], rbp                                          ; +0xfc, 0x1800c44dc\nmov     rax, [rcx]                                                     ; +0x104, 0x1800c44e4\nlea     r8d, [rdx-1]                                                   ; +0x107, 0x1800c44e7\ncall    qword ptr [rax+18h]                                            ; +0x10b, 0x1800c44eb\ntest    eax, eax                                                       ; +0x10e, 0x1800c44ee\njs      loc_1800C460D                                                  ; +0x110, 0x1800c44f0\nmov     rcx, [rsp+68h+arg_18]                                          ; +0x116, 0x1800c44f6\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x11e, 0x1800c44fe\nmov     [rsp+68h+arg_0], ebp                                           ; +0x123, 0x1800c4503\nmov     rax, [rcx]                                                     ; +0x127, 0x1800c4507\ncall    qword ptr [rax+18h]                                            ; +0x12a, 0x1800c450a\ntest    eax, eax                                                       ; +0x12d, 0x1800c450d\njs      loc_1800C460D                                                  ; +0x12f, 0x1800c450f\nmov     edi, ebp                                                       ; +0x135, 0x1800c4515\ncmp     [rsp+68h+arg_0], ebp                                           ; +0x137, 0x1800c4517\njle     loc_1800C45F5                                                  ; +0x13b, 0x1800c451b\nnop     dword ptr [rax+00h]                                            ; +0x141, 0x1800c4521\nnop     word ptr [rax+rax+00000000h]                                   ; +0x145, 0x1800c4525\nmov     rcx, [rsp+68h+arg_18]                                          ; +0x150, 0x1800c4530\nlea     r8, [rsp+68h+arg_10]                                           ; +0x158, 0x1800c4538\nmov     [rsp+68h+arg_10], rbp                                          ; +0x160, 0x1800c4540\nmov     edx, edi                                                       ; +0x168, 0x1800c4548\nmov     rax, [rcx]                                                     ; +0x16a, 0x1800c454a\ncall    qword ptr [rax+20h]                                            ; +0x16d, 0x1800c454d\ntest    eax, eax                                                       ; +0x170, 0x1800c4550\njs      loc_1800C45E9                                                  ; +0x172, 0x1800c4552\nmov     rcx, [rsp+68h+arg_10]                                          ; +0x178, 0x1800c4558\nlea     rdx, [rsp+68h+pv]                                              ; +0x180, 0x1800c4560\nmov     [rsp+68h+pv], rbp                                              ; +0x185, 0x1800c4565\nmov     rax, [rcx]                                                     ; +0x18a, 0x1800c456a\ncall    qword ptr [rax+28h]                                            ; +0x18d, 0x1800c456d\ntest    eax, eax                                                       ; +0x190, 0x1800c4570\njnz     short loc_1800C45DB                                            ; +0x192, 0x1800c4572\ncmp     dword ptr [rbx+760h], 20h ; ' '                                ; +0x194, 0x1800c4574\njge     short loc_1800C45D0                                            ; +0x19b, 0x1800c457b\nmov     rdx, [rbx+768h]                                                ; +0x19d, 0x1800c457d\ntest    rdx, rdx                                                       ; +0x1a4, 0x1800c4584\njz      short loc_1800C4597                                            ; +0x1a7, 0x1800c4587\nmov     rcx, [rsp+68h+pv]                                              ; +0x1a9, 0x1800c4589\ncall    sub_1800B82D0                                                  ; +0x1ae, 0x1800c458e\ntest    eax, eax                                                       ; +0x1b3, 0x1800c4593\njz      short loc_1800C45D0                                            ; +0x1b5, 0x1800c4595\nmovsxd  rax, dword ptr [rbx+760h]                                      ; +0x1b7, 0x1800c4597\nmov     rcx, rbx                                                       ; +0x1be, 0x1800c459e\nmov     r9, [rsp+68h+pv]                                               ; +0x1c1, 0x1800c45a1\nadd     rax, 4Fh ; 'O'                                                 ; +0x1c6, 0x1800c45a6\nmov     rdx, [rsp+68h+arg_10]                                          ; +0x1ca, 0x1800c45aa\nmov     [rsp+68h+var_48], 1                                            ; +0x1d2, 0x1800c45b2\nlea     rax, [rax+rax*2]                                               ; +0x1d7, 0x1800c45b7\nlea     r8, [rbx+rax*8]                                                ; +0x1db, 0x1800c45bb\ncall    sub_1800C4B30                                                  ; +0x1df, 0x1800c45bf\ntest    eax, eax                                                       ; +0x1e4, 0x1800c45c4\njnz     short loc_1800C45D0                                            ; +0x1e6, 0x1800c45c6\ninc     dword ptr [rbx+760h]                                           ; +0x1e8, 0x1800c45c8\njmp     short loc_1800C45DB                                            ; +0x1ee, 0x1800c45ce\nmov     rcx, [rsp+68h+pv]; pv                                          ; +0x1f0, 0x1800c45d0\ncall    cs:CoTaskMemFree                                               ; +0x1f5, 0x1800c45d5\nmov     rcx, [rsp+68h+arg_10]                                          ; +0x1fb, 0x1800c45db\nmov     rax, [rcx]                                                     ; +0x203, 0x1800c45e3\ncall    qword ptr [rax+10h]                                            ; +0x206, 0x1800c45e6\ninc     edi                                                            ; +0x209, 0x1800c45e9\ncmp     edi, [rsp+68h+arg_0]                                           ; +0x20b, 0x1800c45eb\njl      loc_1800C4530                                                  ; +0x20f, 0x1800c45ef\nmov     rcx, [rsp+68h+arg_18]                                          ; +0x215, 0x1800c45f5\nmov     rax, [rcx]                                                     ; +0x21d, 0x1800c45fd\ncall    qword ptr [rax+10h]                                            ; +0x220, 0x1800c4600\nxor     eax, eax                                                       ; +0x223, 0x1800c4603\nadd     rsp, 50h                                                       ; +0x225, 0x1800c4605\npop     rdi                                                            ; +0x229, 0x1800c4609\npop     rbp                                                            ; +0x22a, 0x1800c460a\npop     rbx                                                            ; +0x22b, 0x1800c460b\nretn                                                                   ; +0x22c, 0x1800c460c\nmov     eax, 39h ; '9'                                                 ; +0x22d, 0x1800c460d\nadd     rsp, 50h                                                       ; +0x232, 0x1800c4612\npop     rdi                                                            ; +0x236, 0x1800c4616\npop     rbp                                                            ; +0x237, 0x1800c4617\npop     rbx                                                            ; +0x238, 0x1800c4618\nretn                                                                   ; +0x239, 0x1800c4619", "xrefs": ["sub_1800C46C0 @ 0x1800c4719", "<???> @ 0x18018aafc", "<???> @ 0x18018ab0c", "<???> @ 0x1801fde30"], "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"}