Function at 0x1400ac310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rcx + 0x10b54]
xor ebp, ebp
mov esi, edx
mov rbx, rcx
cmp eax, 0x2000
jg 0x1400ac406
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
xor edx, edx
call fcn.14014f69c
mov r8d, dword [rbx + 0x10b54]
mov rdx, qword [rbx + 0x10b18]
mov ecx, dword [rbx + 0x10b50]
call fcn.14014ea00
movsxd rcx, dword [rbx + 0x10b54]
mov dword [rbx + 0x10b28], eax
cmp eax, ecx
jne 0x1400ac3cf
mov rdx, qword [rbx + 0x10b18]
lea rax, [rcx - 0x16]
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ac3cf
cmp byte [rax], 0x50
jne 0x1400ac3b5
mov r8d, 4
lea rdx, [0x1401efd78]
mov rcx, rax
call fcn.140143800
test eax, eax
je 0x1400ac3ef
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
cmp rax, qword [rbx + 0x10b18]
jae 0x1400ac397
cmp dword [rbx + 0x44], 0
jne 0x1400ac803
cmp dword [rbx + 0x18], 0
jne 0x1400ac803
lea rdi, [rbx + 0xb08]
jmp 0x1400ac835
mov eax, dword [rbx + 0x10b18]
sub eax, dword [rbx + 0x10b20]
add dword [rbx + 0x10b28], eax
jmp 0x1400ac623
mov edi, eax
and edi, 0x80001fff
jge 0x1400ac41a
dec edi
or edi, 0xffffe000
inc edi
sub eax, edi
cmp edi, 0x12
jle 0x1400ac50e
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
mov edx, eax
call fcn.14014f69c
mov rdx, qword [rbx + 0x10b18]
mov r8d, edi
mov ecx, dword [rbx + 0x10b50]
mov dword [rbx + 0x10b58], eax
call fcn.14014ea00
mov dword [rbx + 0x10b28], eax
cmp eax, edi
jne 0x1400ac3cf
mov rdx, qword [rbx + 0x10b18]
movsxd rax, edi
add rax, 0xffffffffffffffea
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ac4db
nop dword [rax + rax]
cmp byte [rax], 0x50
jne 0x1400ac49e
mov r8d, 4
lea rdx, [0x1401efd78]
mov rcx, rax
call fcn.140143800
test eax, eax
je 0x1400ac4bd
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x1400ac480
jmp 0x1400ac4db
mov eax, dword [rbx + 0x10b18]
mov ebp, 1
sub eax, dword [rbx + 0x10b20]
add dword [rbx + 0x10b28], eax
mov rdx, qword [rbx + 0x10b18]
movzx eax, word [rdx]
sub esi, edi
mov rcx, qword [rbx + 0x10b68]
mov word [rcx], ax
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
lea eax, [rsi + 0x1fff]
cdq
and edx, 0x1fff
lea esi, [rdx + rax]
sar esi, 0xd
test ebp, ebp
jne 0x1400ac623
jmp 0x1400ac529
sub esi, edi
mov dword [rcx + 0x10b58], eax
lea eax, [rsi + 0x1fff]
cdq
and edx, 0x1fff
lea esi, [rdx + rax]
sar esi, 0xd
mov edi, 1
nop
cmp edi, esi
jg 0x1400ac3cf
add dword [rbx + 0x10b58], 0xffffe000
xor r8d, r8d
mov edx, dword [rbx + 0x10b58]
mov ecx, dword [rbx + 0x10b50]
call fcn.14014f69c
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014ea00
mov dword [rbx + 0x10b28], eax
cmp eax, 0x2000
jne 0x1400ac61b
mov rdx, qword [rbx + 0x10b18]
lea rax, [rdx + 0x1fff]
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ac5fb
nop dword [rax]
cmp byte [rax], 0x50
jne 0x1400ac5be
mov r8d, 4
lea rdx, [0x1401efd78]
mov rcx, rax
call fcn.140143800
test eax, eax
je 0x1400ac5dd
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x1400ac5a0
jmp 0x1400ac5fb
mov eax, dword [rbx + 0x10b18]
mov ebp, 1
sub eax, dword [rbx + 0x10b20]
add dword [rbx + 0x10b28], eax
mov rdx, qword [rbx + 0x10b18]
movzx eax, word [rdx]
inc edi
mov rcx, qword [rbx + 0x10b68]
mov word [rcx], ax
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
test ebp, ebp
je 0x1400ac530
jmp 0x1400ac623
test ebp, ebp
je 0x1400ac3cf
mov eax, dword [rbx + 0x10b20]
lea rbp, [rsp + 0x28]
sub eax, dword [rbx + 0x10b18]
add eax, dword [rbx + 0x10b58]
mov qword [rsp + 0x78], r14
mov r14d, reloc.WS2_32.dll_shutdown
mov dword [rbx + 0x98], eax
mov esi, r14d
mov eax, dword [rbx + 0x10b28]
test eax, eax
jg 0x1400ac69c
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014ea00
mov dword [rbx + 0x10b28], eax
test eax, eax
je 0x1400ac7f4
js 0x1400ac7d1
mov rcx, qword [rbx + 0x10b18]
add dword [rbx + 0x10b58], 0x2000
mov qword [rbx + 0x10b20], rcx
mov rdx, qword [rbx + 0x10b20]
cmp esi, eax
mov ecx, esi
cmovae ecx, eax
mov edi, ecx
mov r8d, ecx
mov rcx, rbp
call fcn.140133620
sub dword [rbx + 0x10b28], edi
add rbp, rdi
add qword [rbx + 0x10b20], rdi
mov eax, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400ac654
movzx ecx, byte [rsp + 0x2d]
movzx eax, byte [rsp + 0x2c]
movzx r8d, byte [rsp + 0x37]
movzx edx, byte [rsp + 0x3b]
shl cx, 8
or cx, ax
shl r8d, 8
movzx eax, byte [rsp + 0x2e]
mov word [rbx + 0x10bb8], cx
movzx ecx, byte [rsp + 0x2f]
shl cx, 8
or cx, ax
shl edx, 8
movzx eax, byte [rsp + 0x30]
mov word [rbx + 0x10bba], cx
movzx ecx, byte [rsp + 0x31]
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x32]
mov word [rbx + 0x10bbc], cx
movzx ecx, byte [rsp + 0x33]
shl cx, 8
or cx, ax
movzx eax, byte [rsp + 0x36]
add r8d, eax
mov word [rbx + 0x10bbe], cx
movzx eax, byte [rsp + 0x35]
movzx ecx, byte [rsp + 0x3d]
shl r8d, 8
add r8d, eax
shl cx, 8
movzx eax, byte [rsp + 0x34]
shl r8d, 8
add r8d, eax
movzx eax, byte [rsp + 0x3a]
add edx, eax
mov dword [rbx + 0x10bc0], r8d
movzx eax, byte [rsp + 0x39]
shl edx, 8
add edx, eax
movzx eax, byte [rsp + 0x38]
shl edx, 8
add edx, eax
movzx eax, byte [rsp + 0x3c]
or cx, ax
mov dword [rbx + 0x10bc4], edx
mov word [rbx + 0x10bc8], cx
lea eax, [rdx + r8]
mov dword [rbx + 0x9c], eax
xor eax, eax
mov r14, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov r9d, 0x401
lea rdx, str.error:__zipfile_read_error_n
mov r8d, 0x1b
mov rcx, rbx
call qword [rbx + 0x10df0]
mov eax, gethostbyname
jmp 0x1400ac7af
sub r14d, esi
jne 0x1400ac6d1
lea eax, [r14 + 0x33]
jmp 0x1400ac7af
mov r8, qword [rbx + 0x10b48]
lea rdi, [rbx + 0xb08]
mov rcx, rdi
lea rdx, str.__s__n
call fcn.1400ab2e0
mov r8d, eax
mov r9d, 0x401
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x10df0]
lea rdx, str.__End_of_central_directory_signature_not_found.__Either_this_file_is_not_n__a_zipfile__or_it_constitutes_one_disk_of_a_multi_part_archive.__In_the_n__latter_case_the_central_directory_and_zipfile_comment_will_be_found_on_n__the_last_disk_s__of_this_archive._n
mov rcx, rdi
call fcn.1400ab2e0
mov r8d, eax
mov r9d, 0x401
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x10df0]
mov eax, 2
jmp 0x1400ac7b4