{"type": "func", "start": 6443578576, "end": 6443578806, "name": "sub_1801134D0", "pseudocode": "// \n// sub_1801134D0 from 0x1801134d0 to 0x1801135b6 (230 bytes)\n// \n// 3 xrefs:\n// > sub_180113410 @ 0x180113477\n// > sub_180113410 @ 0x18011348e\n// > <???> @ 0x180201d0c\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_1801134D0(_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)[4 * v3], 0, 16LL * -(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_1801134D0 from 0x1801134d0 to 0x1801135b6 (230 bytes)\n; \n; 3 xrefs:\n; > sub_180113410 @ 0x180113477\n; > sub_180113410 @ 0x18011348e\n; > <???> @ 0x180201d0c\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, 0x1801134d0\npush    rdi                                                            ; +0x5, 0x1801134d5\nsub     rsp, 30h                                                       ; +0x6, 0x1801134d6\nmov     rbx, rcx                                                       ; +0xa, 0x1801134da\nxor     edi, edi                                                       ; +0xd, 0x1801134dd\nmov     ecx, [rcx+0Ch]                                                 ; +0xf, 0x1801134df\nmov     eax, ecx                                                       ; +0x12, 0x1801134e2\ncdq                                                                    ; +0x14, 0x1801134e4\nxor     eax, edx                                                       ; +0x15, 0x1801134e5\ncmp     eax, edx                                                       ; +0x17, 0x1801134e7\njns     short loc_18011352D                                            ; +0x19, 0x1801134e9\ncmp     [rbx+8], edi                                                   ; +0x1b, 0x1801134eb\njg      loc_1801135A6                                                  ; +0x1e, 0x1801134ee\ntest    ecx, ecx                                                       ; +0x24, 0x1801134f4\njle     short loc_180113525                                            ; +0x26, 0x1801134f6\nmov     rdx, [rbx]                                                     ; +0x28, 0x1801134f8\ntest    rdx, rdx                                                       ; +0x2b, 0x1801134fb\njz      short loc_180113525                                            ; +0x2e, 0x1801134fe\nmov     rcx, cs:off_1801AED20                                          ; +0x30, 0x180113500\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x37, 0x180113507\nmov     r9d, 0FFh                                                      ; +0x3e, 0x18011350e\nmov     [rsp+38h+var_18], 1                                            ; +0x44, 0x180113514\nmov     rcx, [rcx+1A0h]                                                ; +0x49, 0x180113519\ncall    sub_1800B6AA0                                                  ; +0x50, 0x180113520\nmov     [rbx], rdi                                                     ; +0x55, 0x180113525\nmov     ecx, edi                                                       ; +0x58, 0x180113528\nmov     [rbx+0Ch], edi                                                 ; +0x5a, 0x18011352a\nmovsxd  rdx, dword ptr [rbx+8]                                         ; +0x5d, 0x18011352d\ntest    edx, edx                                                       ; +0x61, 0x180113531\njns     short loc_180113554                                            ; +0x63, 0x180113533\nmov     eax, edx                                                       ; +0x65, 0x180113535\nmov     rcx, rdx                                                       ; +0x67, 0x180113537\nneg     eax                                                            ; +0x6a, 0x18011353a\nshl     rcx, 4                                                         ; +0x6c, 0x18011353c\nadd     rcx, [rbx]; void *                                             ; +0x70, 0x180113540\nxor     edx, edx; Val                                                  ; +0x73, 0x180113543\nmovsxd  r8, eax                                                        ; +0x75, 0x180113545\nshl     r8, 4; Size                                                    ; +0x78, 0x180113548\ncall    memset                                                         ; +0x7c, 0x18011354c\nmov     ecx, [rbx+0Ch]                                                 ; +0x81, 0x180113551\nmov     eax, ecx                                                       ; +0x84, 0x180113554\nmov     [rbx+8], edi                                                   ; +0x86, 0x180113556\ncdq                                                                    ; +0x89, 0x180113559\nxor     eax, edx                                                       ; +0x8a, 0x18011355a\nsub     eax, edx                                                       ; +0x8c, 0x18011355c\ntest    eax, eax                                                       ; +0x8e, 0x18011355e\njle     short loc_180113599                                            ; +0x90, 0x180113560\ntest    ecx, ecx                                                       ; +0x92, 0x180113562\njle     short loc_180113593                                            ; +0x94, 0x180113564\nmov     rdx, [rbx]                                                     ; +0x96, 0x180113566\ntest    rdx, rdx                                                       ; +0x99, 0x180113569\njz      short loc_180113593                                            ; +0x9c, 0x18011356c\nmov     rcx, cs:off_1801AED20                                          ; +0x9e, 0x18011356e\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xa5, 0x180113575\nmov     r9d, 0FFh                                                      ; +0xac, 0x18011357c\nmov     [rsp+38h+var_18], 1                                            ; +0xb2, 0x180113582\nmov     rcx, [rcx+1A0h]                                                ; +0xb7, 0x180113587\ncall    sub_1800B6AA0                                                  ; +0xbe, 0x18011358e\nmov     [rbx], rdi                                                     ; +0xc3, 0x180113593\nmov     [rbx+0Ch], edi                                                 ; +0xc6, 0x180113596\nxor     eax, eax                                                       ; +0xc9, 0x180113599\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xcb, 0x18011359b\nadd     rsp, 30h                                                       ; +0xd0, 0x1801135a0\npop     rdi                                                            ; +0xd4, 0x1801135a4\nretn                                                                   ; +0xd5, 0x1801135a5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd6, 0x1801135a6\nmov     eax, 1Ch                                                       ; +0xdb, 0x1801135ab\nadd     rsp, 30h                                                       ; +0xe0, 0x1801135b0\npop     rdi                                                            ; +0xe4, 0x1801135b4\nretn                                                                   ; +0xe5, 0x1801135b5", "xrefs": ["sub_180113410 @ 0x180113477", "sub_180113410 @ 0x18011348e", "<???> @ 0x180201d0c"], "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"}