{"type": "func", "start": 6443377920, "end": 6443378147, "name": "sub_1800E2500", "pseudocode": "// \n// sub_1800E2500 from 0x1800e2500 to 0x1800e25e3 (227 bytes)\n// \n// 3 xrefs:\n// > sub_1800E1CA0 @ 0x1800e1cc5\n// > sub_1800E2620 @ 0x1800e2914\n// > <???> @ 0x1801ff9fc\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_1800E2500(_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)[2 * v3], 0, 8LL * -(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_1800E2500 from 0x1800e2500 to 0x1800e25e3 (227 bytes)\n; \n; 3 xrefs:\n; > sub_1800E1CA0 @ 0x1800e1cc5\n; > sub_1800E2620 @ 0x1800e2914\n; > <???> @ 0x1801ff9fc\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, 0x1800e2500\npush    rdi                                                            ; +0x5, 0x1800e2505\nsub     rsp, 30h                                                       ; +0x6, 0x1800e2506\nmov     rbx, rcx                                                       ; +0xa, 0x1800e250a\nxor     edi, edi                                                       ; +0xd, 0x1800e250d\nmov     ecx, [rcx+0Ch]                                                 ; +0xf, 0x1800e250f\nmov     eax, ecx                                                       ; +0x12, 0x1800e2512\ncdq                                                                    ; +0x14, 0x1800e2514\nxor     eax, edx                                                       ; +0x15, 0x1800e2515\ncmp     eax, edx                                                       ; +0x17, 0x1800e2517\njns     short loc_1800E255D                                            ; +0x19, 0x1800e2519\ncmp     [rbx+8], edi                                                   ; +0x1b, 0x1800e251b\njg      loc_1800E25D3                                                  ; +0x1e, 0x1800e251e\ntest    ecx, ecx                                                       ; +0x24, 0x1800e2524\njle     short loc_1800E2555                                            ; +0x26, 0x1800e2526\nmov     rdx, [rbx]                                                     ; +0x28, 0x1800e2528\ntest    rdx, rdx                                                       ; +0x2b, 0x1800e252b\njz      short loc_1800E2555                                            ; +0x2e, 0x1800e252e\nmov     rcx, cs:off_1801AED20                                          ; +0x30, 0x1800e2530\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x37, 0x1800e2537\nmov     r9d, 0FFh                                                      ; +0x3e, 0x1800e253e\nmov     [rsp+38h+var_18], 1                                            ; +0x44, 0x1800e2544\nmov     rcx, [rcx+1A0h]                                                ; +0x49, 0x1800e2549\ncall    sub_1800B6AA0                                                  ; +0x50, 0x1800e2550\nmov     [rbx], rdi                                                     ; +0x55, 0x1800e2555\nmov     ecx, edi                                                       ; +0x58, 0x1800e2558\nmov     [rbx+0Ch], edi                                                 ; +0x5a, 0x1800e255a\nmovsxd  rdx, dword ptr [rbx+8]                                         ; +0x5d, 0x1800e255d\ntest    edx, edx                                                       ; +0x61, 0x1800e2561\njns     short loc_1800E2581                                            ; +0x63, 0x1800e2563\nmov     eax, edx                                                       ; +0x65, 0x1800e2565\nneg     eax                                                            ; +0x67, 0x1800e2567\nmovsxd  r8, eax                                                        ; +0x69, 0x1800e2569\nmov     rax, [rbx]                                                     ; +0x6c, 0x1800e256c\nshl     r8, 3; Size                                                    ; +0x6f, 0x1800e256f\nlea     rcx, [rax+rdx*8]; void *                                       ; +0x73, 0x1800e2573\nxor     edx, edx; Val                                                  ; +0x77, 0x1800e2577\ncall    memset                                                         ; +0x79, 0x1800e2579\nmov     ecx, [rbx+0Ch]                                                 ; +0x7e, 0x1800e257e\nmov     eax, ecx                                                       ; +0x81, 0x1800e2581\nmov     [rbx+8], edi                                                   ; +0x83, 0x1800e2583\ncdq                                                                    ; +0x86, 0x1800e2586\nxor     eax, edx                                                       ; +0x87, 0x1800e2587\nsub     eax, edx                                                       ; +0x89, 0x1800e2589\ntest    eax, eax                                                       ; +0x8b, 0x1800e258b\njle     short loc_1800E25C6                                            ; +0x8d, 0x1800e258d\ntest    ecx, ecx                                                       ; +0x8f, 0x1800e258f\njle     short loc_1800E25C0                                            ; +0x91, 0x1800e2591\nmov     rdx, [rbx]                                                     ; +0x93, 0x1800e2593\ntest    rdx, rdx                                                       ; +0x96, 0x1800e2596\njz      short loc_1800E25C0                                            ; +0x99, 0x1800e2599\nmov     rcx, cs:off_1801AED20                                          ; +0x9b, 0x1800e259b\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xa2, 0x1800e25a2\nmov     r9d, 0FFh                                                      ; +0xa9, 0x1800e25a9\nmov     [rsp+38h+var_18], 1                                            ; +0xaf, 0x1800e25af\nmov     rcx, [rcx+1A0h]                                                ; +0xb4, 0x1800e25b4\ncall    sub_1800B6AA0                                                  ; +0xbb, 0x1800e25bb\nmov     [rbx], rdi                                                     ; +0xc0, 0x1800e25c0\nmov     [rbx+0Ch], edi                                                 ; +0xc3, 0x1800e25c3\nxor     eax, eax                                                       ; +0xc6, 0x1800e25c6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc8, 0x1800e25c8\nadd     rsp, 30h                                                       ; +0xcd, 0x1800e25cd\npop     rdi                                                            ; +0xd1, 0x1800e25d1\nretn                                                                   ; +0xd2, 0x1800e25d2\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd3, 0x1800e25d3\nmov     eax, 1Ch                                                       ; +0xd8, 0x1800e25d8\nadd     rsp, 30h                                                       ; +0xdd, 0x1800e25dd\npop     rdi                                                            ; +0xe1, 0x1800e25e1\nretn                                                                   ; +0xe2, 0x1800e25e2", "xrefs": ["sub_1800E1CA0 @ 0x1800e1cc5", "sub_1800E2620 @ 0x1800e2914", "<???> @ 0x1801ff9fc"], "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"}