Function at 0x1400953a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401b7030]
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 0x140095496
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
xor edx, edx
call fcn.14013670c
mov r8d, dword [rbx + 0x10b54]
mov rdx, qword [rbx + 0x10b18]
mov ecx, dword [rbx + 0x10b50]
call fcn.140135c54
movsxd rcx, dword [rbx + 0x10b54]
mov dword [rbx + 0x10b28], eax
cmp eax, ecx
jne 0x14009545f
mov rdx, qword [rbx + 0x10b18]
lea rax, [rcx - 0x16]
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x14009545f
cmp byte [rax], 0x50
jne 0x140095445
mov r8d, 4
lea rdx, [0x1401b7d74]
mov rcx, rax
call fcn.14012e560
test eax, eax
je 0x14009547f
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
cmp rax, qword [rbx + 0x10b18]
jae 0x140095427
cmp dword [rbx + 0x44], 0
jne 0x140095893
cmp dword [rbx + 0x18], 0
jne 0x140095893
lea rdi, [rbx + 0xb08]
jmp 0x1400958c5
mov eax, dword [rbx + 0x10b18]
sub eax, dword [rbx + 0x10b20]
add dword [rbx + 0x10b28], eax
jmp 0x1400956b3
mov edi, eax
and edi, 0x80001fff
jge 0x1400954aa
dec edi
or edi, 0xffffe000
inc edi
sub eax, edi
cmp edi, 0x12
jle 0x14009559e
mov ecx, dword [rcx + 0x10b50]
xor r8d, r8d
mov edx, eax
call fcn.14013670c
mov rdx, qword [rbx + 0x10b18]
mov r8d, edi
mov ecx, dword [rbx + 0x10b50]
mov dword [rbx + 0x10b58], eax
call fcn.140135c54
mov dword [rbx + 0x10b28], eax
cmp eax, edi
jne 0x14009545f
mov rdx, qword [rbx + 0x10b18]
movsxd rax, edi
add rax, 0xffffffffffffffea
add rax, rdx
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x14009556b
nop dword [rax + rax]
cmp byte [rax], 0x50
jne 0x14009552e
mov r8d, 4
lea rdx, [0x1401b7d74]
mov rcx, rax
call fcn.14012e560
test eax, eax
je 0x14009554d
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x140095510
jmp 0x14009556b
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 0x1400956b3
jmp 0x1400955b9
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 0x14009545f
add dword [rbx + 0x10b58], 0xffffe000
xor r8d, r8d
mov edx, dword [rbx + 0x10b58]
mov ecx, dword [rbx + 0x10b50]
call fcn.14013670c
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.140135c54
mov dword [rbx + 0x10b28], eax
cmp eax, 0x2000
jne 0x1400956ab
mov rdx, qword [rbx + 0x10b18]
lea rax, [rdx + 0x1fff]
mov qword [rbx + 0x10b20], rax
cmp rax, rdx
jb 0x14009568b
nop dword [rax]
cmp byte [rax], 0x50
jne 0x14009564e
mov r8d, 4
lea rdx, [0x1401b7d74]
mov rcx, rax
call fcn.14012e560
test eax, eax
je 0x14009566d
mov rax, qword [rbx + 0x10b20]
dec rax
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b18]
cmp rax, rdx
jae 0x140095630
jmp 0x14009568b
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 0x1400955c0
jmp 0x1400956b3
test ebp, ebp
je 0x14009545f
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 0x14009572c
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.140135c54
mov dword [rbx + 0x10b28], eax
test eax, eax
je 0x140095884
js 0x140095861
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.140121290
sub dword [rbx + 0x10b28], edi
add rbp, rdi
add qword [rbx + 0x10b20], rdi
mov eax, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400956e4
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.14011c340
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 0x14009583f
sub r14d, esi
jne 0x140095761
lea eax, [r14 + 0x33]
jmp 0x14009583f
mov r8, qword [rbx + 0x10b48]
lea rdi, [rbx + 0xb08]
mov rcx, rdi
lea rdx, str.__s__n
call fcn.140094280
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.140094280
mov r8d, eax
mov r9d, 0x401
mov rdx, rdi
mov rcx, rbx
call qword [rbx + 0x10df0]
mov eax, 2
jmp 0x140095844