Function at 0x1400ad710
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 0x1400ad806
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
xor edx, edx
call fcn.1401509dc
mov r8d, dword [rbx + 0x10b54]
mov rdx, qword [rbx + 0x10b18]
mov ecx, dword [rbx + 0x10b50]
call fcn.14014fd40
movsxd rcx, dword [rbx + 0x10b54]
mov dword [rbx + 0x10b28], eax
cmp eax, ecx
jne 0x1400ad7cf
mov rdx, qword [rbx + 0x10b18]
lea rax, [rcx - 0x16]
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ad7cf
cmp byte [rax], 0x50
jne 0x1400ad7b5
mov r8d, 4
lea rdx, [0x1401efd64]
mov rcx, rax
call fcn.140144b40
test eax, eax
je 0x1400ad7ef
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
cmp rax, qword [rbx + 0x10b18]
jae 0x1400ad797
cmp dword [rbx + 0x44], 0
jne 0x1400adc03
cmp dword [rbx + 0x18], 0
jne 0x1400adc03
lea rdi, [rbx + 0xb08]
jmp 0x1400adc35
mov eax, dword [rbx + 0x10b18]
sub eax, dword [rbx + 0x10b20]
add dword [rbx + 0x10b28], eax
jmp 0x1400ada23
mov edi, eax
and edi, 0x80001fff
jge 0x1400ad81a
dec edi
or edi, 0xffffe000
inc edi
sub eax, edi
cmp edi, 0x12
jle 0x1400ad90e
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
mov edx, eax
call fcn.1401509dc
mov rdx, qword [rbx + 0x10b18]
mov r8d, edi
mov ecx, dword [rbx + 0x10b50]
mov dword [rbx + 0x10b58], eax
call fcn.14014fd40
mov dword [rbx + 0x10b28], eax
cmp eax, edi
jne 0x1400ad7cf
mov rdx, qword [rbx + 0x10b18]
movsxd rax, edi
add rax, 0xffffffffffffffea
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ad8db
nop dword [rax + rax]
cmp byte [rax], 0x50
jne 0x1400ad89e
mov r8d, 4
lea rdx, [0x1401efd64]
mov rcx, rax
call fcn.140144b40
test eax, eax
je 0x1400ad8bd
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x1400ad880
jmp 0x1400ad8db
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 0x1400ada23
jmp 0x1400ad929
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 0x1400ad7cf
add dword [rbx + 0x10b58], 0xffffe000
xor r8d, r8d
mov edx, dword [rbx + 0x10b58]
mov ecx, dword [rbx + 0x10b50]
call fcn.1401509dc
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014fd40
mov dword [rbx + 0x10b28], eax
cmp eax, 0x2000
jne 0x1400ada1b
mov rdx, qword [rbx + 0x10b18]
lea rax, [rdx + 0x1fff]
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x1400ad9fb
nop dword [rax]
cmp byte [rax], 0x50
jne 0x1400ad9be
mov r8d, 4
lea rdx, [0x1401efd64]
mov rcx, rax
call fcn.140144b40
test eax, eax
je 0x1400ad9dd
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x1400ad9a0
jmp 0x1400ad9fb
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 0x1400ad930
jmp 0x1400ada23
test ebp, ebp
je 0x1400ad7cf
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 0x1400ada9c
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014fd40
mov dword [rbx + 0x10b28], eax
test eax, eax
je 0x1400adbf4
js 0x1400adbd1
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.140134960
sub dword [rbx + 0x10b28], edi
add rbp, rdi
add qword [rbx + 0x10b20], rdi
mov eax, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400ada54
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.140132620
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 0x1400adbaf
sub r14d, esi
jne 0x1400adad1
lea eax, [r14 + 0x33]
jmp 0x1400adbaf
mov r8, qword [rbx + 0x10b48]
lea rdi, [rbx + 0xb08]
mov rcx, rdi
lea rdx, str.__s__n
call fcn.1400ac6e0
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.1400ac6e0
mov r8d, eax
mov r9d, 0x401
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x10df0]
mov eax, 2
jmp 0x1400adbb4