{"type": "func", "start": 6443578816, "end": 6443579046, "name": "sub_1801135C0", "pseudocode": "// \n// sub_1801135C0 from 0x1801135c0 to 0x1801136a6 (230 bytes)\n// \n// 4 xrefs:\n// > sub_180113410 @ 0x180113438\n// > sub_180113410 @ 0x180113458\n// > sub_180113720 @ 0x180113903\n// > <???> @ 0x180201d18\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_1801135C0(_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_1801135C0 from 0x1801135c0 to 0x1801136a6 (230 bytes)\n; \n; 4 xrefs:\n; > sub_180113410 @ 0x180113438\n; > sub_180113410 @ 0x180113458\n; > sub_180113720 @ 0x180113903\n; > <???> @ 0x180201d18\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, 0x1801135c0\npush    rdi                                                            ; +0x5, 0x1801135c5\nsub     rsp, 30h                                                       ; +0x6, 0x1801135c6\nmov     rbx, rcx                                                       ; +0xa, 0x1801135ca\nxor     edi, edi                                                       ; +0xd, 0x1801135cd\nmov     ecx, [rcx+0Ch]                                                 ; +0xf, 0x1801135cf\nmov     eax, ecx                                                       ; +0x12, 0x1801135d2\ncdq                                                                    ; +0x14, 0x1801135d4\nxor     eax, edx                                                       ; +0x15, 0x1801135d5\ncmp     eax, edx                                                       ; +0x17, 0x1801135d7\njns     short loc_18011361D                                            ; +0x19, 0x1801135d9\ncmp     [rbx+8], edi                                                   ; +0x1b, 0x1801135db\njg      loc_180113696                                                  ; +0x1e, 0x1801135de\ntest    ecx, ecx                                                       ; +0x24, 0x1801135e4\njle     short loc_180113615                                            ; +0x26, 0x1801135e6\nmov     rdx, [rbx]                                                     ; +0x28, 0x1801135e8\ntest    rdx, rdx                                                       ; +0x2b, 0x1801135eb\njz      short loc_180113615                                            ; +0x2e, 0x1801135ee\nmov     rcx, cs:off_1801AED20                                          ; +0x30, 0x1801135f0\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x37, 0x1801135f7\nmov     r9d, 0FFh                                                      ; +0x3e, 0x1801135fe\nmov     [rsp+38h+var_18], 1                                            ; +0x44, 0x180113604\nmov     rcx, [rcx+1A0h]                                                ; +0x49, 0x180113609\ncall    sub_1800B6AA0                                                  ; +0x50, 0x180113610\nmov     [rbx], rdi                                                     ; +0x55, 0x180113615\nmov     ecx, edi                                                       ; +0x58, 0x180113618\nmov     [rbx+0Ch], edi                                                 ; +0x5a, 0x18011361a\nmovsxd  rdx, dword ptr [rbx+8]                                         ; +0x5d, 0x18011361d\ntest    edx, edx                                                       ; +0x61, 0x180113621\njns     short loc_180113644                                            ; +0x63, 0x180113623\nmov     eax, edx                                                       ; +0x65, 0x180113625\nmov     rcx, rdx                                                       ; +0x67, 0x180113627\nneg     eax                                                            ; +0x6a, 0x18011362a\nshl     rcx, 4                                                         ; +0x6c, 0x18011362c\nadd     rcx, [rbx]; void *                                             ; +0x70, 0x180113630\nxor     edx, edx; Val                                                  ; +0x73, 0x180113633\nmovsxd  r8, eax                                                        ; +0x75, 0x180113635\nshl     r8, 4; Size                                                    ; +0x78, 0x180113638\ncall    memset                                                         ; +0x7c, 0x18011363c\nmov     ecx, [rbx+0Ch]                                                 ; +0x81, 0x180113641\nmov     eax, ecx                                                       ; +0x84, 0x180113644\nmov     [rbx+8], edi                                                   ; +0x86, 0x180113646\ncdq                                                                    ; +0x89, 0x180113649\nxor     eax, edx                                                       ; +0x8a, 0x18011364a\nsub     eax, edx                                                       ; +0x8c, 0x18011364c\ntest    eax, eax                                                       ; +0x8e, 0x18011364e\njle     short loc_180113689                                            ; +0x90, 0x180113650\ntest    ecx, ecx                                                       ; +0x92, 0x180113652\njle     short loc_180113683                                            ; +0x94, 0x180113654\nmov     rdx, [rbx]                                                     ; +0x96, 0x180113656\ntest    rdx, rdx                                                       ; +0x99, 0x180113659\njz      short loc_180113683                                            ; +0x9c, 0x18011365c\nmov     rcx, cs:off_1801AED20                                          ; +0x9e, 0x18011365e\nlea     r8, aCBuildagent1Wo_26; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xa5, 0x180113665\nmov     r9d, 0FFh                                                      ; +0xac, 0x18011366c\nmov     [rsp+38h+var_18], 1                                            ; +0xb2, 0x180113672\nmov     rcx, [rcx+1A0h]                                                ; +0xb7, 0x180113677\ncall    sub_1800B6AA0                                                  ; +0xbe, 0x18011367e\nmov     [rbx], rdi                                                     ; +0xc3, 0x180113683\nmov     [rbx+0Ch], edi                                                 ; +0xc6, 0x180113686\nxor     eax, eax                                                       ; +0xc9, 0x180113689\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xcb, 0x18011368b\nadd     rsp, 30h                                                       ; +0xd0, 0x180113690\npop     rdi                                                            ; +0xd4, 0x180113694\nretn                                                                   ; +0xd5, 0x180113695\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd6, 0x180113696\nmov     eax, 1Ch                                                       ; +0xdb, 0x18011369b\nadd     rsp, 30h                                                       ; +0xe0, 0x1801136a0\npop     rdi                                                            ; +0xe4, 0x1801136a4\nretn                                                                   ; +0xe5, 0x1801136a5", "xrefs": ["sub_180113410 @ 0x180113438", "sub_180113410 @ 0x180113458", "sub_180113720 @ 0x180113903", "<???> @ 0x180201d18"], "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"}