{"type": "func", "start": 6443419616, "end": 6443419843, "name": "sub_1800EC7E0", "pseudocode": "// \n// sub_1800EC7E0 from 0x1800ec7e0 to 0x1800ec8c3 (227 bytes)\n// \n// 7 xrefs:\n// > sub_1800EC5C0 @ 0x1800ec5d0\n// > sub_1800EC5C0 @ 0x1800ec5dc\n// > sub_1800EC8D0 @ 0x1800ecd41\n// > sub_1800EC8D0 @ 0x1800ecd4d\n// > sub_1800EE7D0 @ 0x1800ee7e0\n// > sub_1800EE7D0 @ 0x1800ee7ec\n// > <???> @ 0x180200254\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_1800EC7E0(_DWORD **a1)\n{\n  int v2; // ecx\n  __int64 v3; // rdx\n\n  v2 = *((_DWORD *)a1 + 3);\n  if ( (abs32(v2) & 0x80000000) != 0 )\n  {\n    if ( *((int *)a1 + 2) > 0 )\n      return 28;\n    if ( v2 > 0 && *a1 )\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *a1);\n    *a1 = nullptr;\n    v2 = 0;\n    *((_DWORD *)a1 + 3) = 0;\n  }\n  v3 = *((int *)a1 + 2);\n  if ( (int)v3 < 0 )\n  {\n    memset(&(*a1)[v3], 0, 4LL * -(int)v3);\n    v2 = *((_DWORD *)a1 + 3);\n  }\n  *((_DWORD *)a1 + 2) = 0;\n  if ( (int)abs32(v2) > 0 )\n  {\n    if ( v2 > 0 )\n    {\n      if ( *a1 )\n        sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *a1);\n    }\n    *a1 = nullptr;\n    *((_DWORD *)a1 + 3) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800EC7E0 from 0x1800ec7e0 to 0x1800ec8c3 (227 bytes)\n; \n; 7 xrefs:\n; > sub_1800EC5C0 @ 0x1800ec5d0\n; > sub_1800EC5C0 @ 0x1800ec5dc\n; > sub_1800EC8D0 @ 0x1800ecd41\n; > sub_1800EC8D0 @ 0x1800ecd4d\n; > sub_1800EE7D0 @ 0x1800ee7e0\n; > sub_1800EE7D0 @ 0x1800ee7ec\n; > <???> @ 0x180200254\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, 0x1800ec7e0\npush    rdi                                                            ; +0x5, 0x1800ec7e5\nsub     rsp, 30h                                                       ; +0x6, 0x1800ec7e6\nmov     rbx, rcx                                                       ; +0xa, 0x1800ec7ea\nxor     edi, edi                                                       ; +0xd, 0x1800ec7ed\nmov     ecx, [rcx+0Ch]                                                 ; +0xf, 0x1800ec7ef\nmov     eax, ecx                                                       ; +0x12, 0x1800ec7f2\ncdq                                                                    ; +0x14, 0x1800ec7f4\nxor     eax, edx                                                       ; +0x15, 0x1800ec7f5\ncmp     eax, edx                                                       ; +0x17, 0x1800ec7f7\njns     short loc_1800EC83D                                            ; +0x19, 0x1800ec7f9\ncmp     [rbx+8], edi                                                   ; +0x1b, 0x1800ec7fb\njg      loc_1800EC8B3                                                  ; +0x1e, 0x1800ec7fe\ntest    ecx, ecx                                                       ; +0x24, 0x1800ec804\njle     short loc_1800EC835                                            ; +0x26, 0x1800ec806\nmov     rdx, [rbx]                                                     ; +0x28, 0x1800ec808\ntest    rdx, rdx                                                       ; +0x2b, 0x1800ec80b\njz      short loc_1800EC835                                            ; +0x2e, 0x1800ec80e\nmov     rcx, cs:off_1801AED20                                          ; +0x30, 0x1800ec810\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x37, 0x1800ec817\nmov     r9d, 0FFh                                                      ; +0x3e, 0x1800ec81e\nmov     [rsp+38h+var_18], 1                                            ; +0x44, 0x1800ec824\nmov     rcx, [rcx+1A0h]                                                ; +0x49, 0x1800ec829\ncall    sub_1800B6AA0                                                  ; +0x50, 0x1800ec830\nmov     [rbx], rdi                                                     ; +0x55, 0x1800ec835\nmov     ecx, edi                                                       ; +0x58, 0x1800ec838\nmov     [rbx+0Ch], edi                                                 ; +0x5a, 0x1800ec83a\nmovsxd  rdx, dword ptr [rbx+8]                                         ; +0x5d, 0x1800ec83d\ntest    edx, edx                                                       ; +0x61, 0x1800ec841\njns     short loc_1800EC861                                            ; +0x63, 0x1800ec843\nmov     eax, edx                                                       ; +0x65, 0x1800ec845\nneg     eax                                                            ; +0x67, 0x1800ec847\nmovsxd  r8, eax                                                        ; +0x69, 0x1800ec849\nmov     rax, [rbx]                                                     ; +0x6c, 0x1800ec84c\nshl     r8, 2; Size                                                    ; +0x6f, 0x1800ec84f\nlea     rcx, [rax+rdx*4]; void *                                       ; +0x73, 0x1800ec853\nxor     edx, edx; Val                                                  ; +0x77, 0x1800ec857\ncall    memset                                                         ; +0x79, 0x1800ec859\nmov     ecx, [rbx+0Ch]                                                 ; +0x7e, 0x1800ec85e\nmov     eax, ecx                                                       ; +0x81, 0x1800ec861\nmov     [rbx+8], edi                                                   ; +0x83, 0x1800ec863\ncdq                                                                    ; +0x86, 0x1800ec866\nxor     eax, edx                                                       ; +0x87, 0x1800ec867\nsub     eax, edx                                                       ; +0x89, 0x1800ec869\ntest    eax, eax                                                       ; +0x8b, 0x1800ec86b\njle     short loc_1800EC8A6                                            ; +0x8d, 0x1800ec86d\ntest    ecx, ecx                                                       ; +0x8f, 0x1800ec86f\njle     short loc_1800EC8A0                                            ; +0x91, 0x1800ec871\nmov     rdx, [rbx]                                                     ; +0x93, 0x1800ec873\ntest    rdx, rdx                                                       ; +0x96, 0x1800ec876\njz      short loc_1800EC8A0                                            ; +0x99, 0x1800ec879\nmov     rcx, cs:off_1801AED20                                          ; +0x9b, 0x1800ec87b\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xa2, 0x1800ec882\nmov     r9d, 0FFh                                                      ; +0xa9, 0x1800ec889\nmov     [rsp+38h+var_18], 1                                            ; +0xaf, 0x1800ec88f\nmov     rcx, [rcx+1A0h]                                                ; +0xb4, 0x1800ec894\ncall    sub_1800B6AA0                                                  ; +0xbb, 0x1800ec89b\nmov     [rbx], rdi                                                     ; +0xc0, 0x1800ec8a0\nmov     [rbx+0Ch], edi                                                 ; +0xc3, 0x1800ec8a3\nxor     eax, eax                                                       ; +0xc6, 0x1800ec8a6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc8, 0x1800ec8a8\nadd     rsp, 30h                                                       ; +0xcd, 0x1800ec8ad\npop     rdi                                                            ; +0xd1, 0x1800ec8b1\nretn                                                                   ; +0xd2, 0x1800ec8b2\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd3, 0x1800ec8b3\nmov     eax, 1Ch                                                       ; +0xd8, 0x1800ec8b8\nadd     rsp, 30h                                                       ; +0xdd, 0x1800ec8bd\npop     rdi                                                            ; +0xe1, 0x1800ec8c1\nretn                                                                   ; +0xe2, 0x1800ec8c2", "xrefs": ["sub_1800EC5C0 @ 0x1800ec5d0", "sub_1800EC5C0 @ 0x1800ec5dc", "sub_1800EC8D0 @ 0x1800ecd41", "sub_1800EC8D0 @ 0x1800ecd4d", "sub_1800EE7D0 @ 0x1800ee7e0", "sub_1800EE7D0 @ 0x1800ee7ec", "<???> @ 0x180200254"], "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"}