Function at 0x1401f8e50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov r9, rdx
sub r9, rsi
jb 0x1401f3fbd
mov r8, qword [rdi]
add r8, rsi
mov rdx, qword [rcx]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.1401f4300
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1401f3e54
mov rdi, qword [rsp + 0x38]
mov eax, edi
and eax, 3
lea rcx, [0x1402fc508]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rdi + 0x10]
jmp 0x1401f3e82
add rsi, qword [rsp + 0x38]
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor esi, esi
jmp 0x1401f3e9d
movzx eax, byte [rdi + 0xf]
jmp 0x1401f3e82
mov rcx, rdi
shr rcx, 0x20
call fcn.140200af0
xor esi, esi
cmp al, 0xb
cmovne rsi, rdi
test rbx, rbx
je 0x1401f3e9d
cmp al, 0xb
jne 0x1401f3e9d
lea rcx, [rsp + 0x38]
call fcn.1401b74f0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rax, rdi
shr rax, 0x20
cmp eax, 0x28
ja case.default.0x1401f3ec2
lea rcx, [0x1402fc518]
movsxd rax, dword [rcx + rax*4]
invalid
add al, 0x81
add rax, rcx
add eax, ecx
invalid
add eax, ecx
jmp rax
xor eax, eax
jmp 0x1401f3e82
mov al, 0x29
jmp 0x1401f3e82
mov al, 1
jmp 0x1401f3e82
mov al, 2
jmp 0x1401f3e82
mov al, 3
jmp 0x1401f3e82
mov al, 4
jmp 0x1401f3e82
mov al, 5
jmp 0x1401f3e82
mov al, 6
jmp 0x1401f3e82
mov al, 7
jmp 0x1401f3e82
mov al, 8
jmp 0x1401f3e82
mov al, 9
jmp 0x1401f3e82
mov al, 0xa
jmp 0x1401f3e82
mov al, 0xb
jmp 0x1401f3e82
invalid
mov dh, byte [rax - 0x4f7914f4]
or eax, 0xeb082eb
jmp 0x1401f3e82
mov al, 0xe
mov al, 0xc
jmp 0x1401f3e82
mov al, 0xd
jmp 0x1401f3e82
mov al, 0xe
jmp 0x1401f3e82
invalid
mov al, 0xf
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x10
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x11
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x12
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x13
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x14
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x15
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x16
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x17
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x18
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x19
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1a
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1b
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1c
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1d
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1e
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x1f
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x20
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x21
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x22
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x23
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x24
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x25
jmp 0x1401f3e82
invalid
invalid
invalid
mov al, 0x26
jmp 0x1401f3e82
mov al, 0x27
jmp 0x1401f3e82
mov al, 0x28
jmp 0x1401f3e82
lea r8, [0x1402fd018]
mov rcx, rsi
call fcn.14023c140
ud2
mov r9d, 0x2ceb0017
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
jmp 0x1401f4fd5
mov ecx, 0x570f0002
shl byte [rsi - 0x3f], 0xc1
rol ecx, 8
mov word [rsp + 0x40], r9w
rol ecx, 8
mov word [rsp + 0x40], r9w
mov word [rsp + 0x42], cx
mov dword [rsp + 0x44], eax
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], edx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
clc
invalid
je 0x1401f4e01
clc
push qword [rbp + rax + 0x45]
xor edi, edi
xor r15d, r15d
jmp 0x1401f4e11
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
invalid
shl r15, 0x20
or r15, 2
invalid
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1401f4e57
test r15, r15
je 0x1401f4e74
mov eax, r15d
and eax, 3
lea rcx, [0x1402fc5bc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [r15 + 0x10]
jmp 0x1401f4e8f
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r15, r15
jne 0x1401f4fc8
jmp case.0x1401f3e4c.74
xor r15d, r15d
jmp 0x1401f4fd5
movzx eax, byte [r15 + 0xf]
jmp 0x1401f4e8f
mov rcx, r15
shr rcx, 0x20
call fcn.140200af0
cmp al, 0xd
jne 0x1401f4fd5
test r14, r14
jne 0x1401f4ed0
test ebx, ebx
jne 0x1401f4ed0
lea rsi, str.cannot_set_a_0_duration_timeout
jmp 0x1401f4fc8
mov rax, r15
shr rax, 0x20
cmp eax, 0x28
ja case.default.0x1401f4eca
lea rcx, [0x1402fc5cc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xor eax, eax
jmp 0x1401f4e8f
cmp r14, 0x7fffffff
mov eax, 0x7fffffff
cmovb rax, r14
mov ecx, ebx
imul rcx, rcx, 0x10624dd3
shr rcx, 0x26
mov dword [rsp + 0x38], eax
test rax, rax
mov eax, 1
mov edx, ecx
cmove edx, eax
cmp ebx, 0x3e8
cmovae edx, ecx
mov dword [rsp + 0x3c], edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1f8
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x248], 1
mov qword [rsp + 0x250], rdi
mov dword [rsp + 0x250], edi
mov dword [rsp + 0x250], edi
lea rcx, [rsp + 0x258]
mov r8d, 0x1f8
add byte [rcx - 0x48], al
clc
add dword [rax], eax
add byte [rcx], dh
xor edx, edx
invalid
ret 0x558
xor edx, edx
call sub.msvcrt.dll_memset
mov qword [rsp + 0x40], 1
add byte [rax], al
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
and al, 0x20
and al, 0x20
lea r8, [rsp + 0x248]
lea r9, [rsp + 0x40]
and al, 0x40
add al, byte [rax]
add byte [rbp + rcx*4 + 0x4c], cl
and al, 0x40
mov ecx, 1
xor edx, edx
call sub.ws2_32.dll_select
test eax, eax
je 0x1401f4f91
cmp eax, 0xffffffff
jne case.0x1401f3e4c.66
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
or esi, 2
or esi, 2
jmp 0x1401f4fc8
lea r15, str.connection_timed_out
cmp eax, 0x10c9c8
jmp 0x1401f4fa7
cmp dword [rsp + 0x248], 1
jne 0x1401f4fb3
add dword [rbp + 0xf], esi
xor r15d, r15d
lea rcx, [rsp + 0x30]
lea ecx, [rsp + 0x30]
call fcn.1401b74f0
jmp 0x1401f4fd5
cld
invalid
mov rcx, rsi
call fcn.1401f5a80
mov rsi, rdx
invalid
test rax, rax
jne 0x1401f4fc8
invalid
test rsi, rsi
test esi, esi
je 0x1401f4fa4
lea rcx, [rsp + 0x30]
and al, 0x30
call fcn.1401b74f0
mov r15, rsi
mov rax, r15
add rsp, 0x450
add esp, 0x450
add esp, 0x450
add byte [rbx + 0x5f], bl
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rdi
pop rdi
ret
mov al, 0x29
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 1
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 2
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 3
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 4
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 5
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 6
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 7
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 8
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 9
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xa
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xb
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xc
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xd
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xe
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0xf
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x10
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x11
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x12
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x13
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x14
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x15
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x16
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x17
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x18
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x19
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1a
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1b
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1c
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1d
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1e
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x1f
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x20
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x21
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x22
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x23
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x24
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x25
jmp 0x1401f4e8f
invalid
invalid
invalid
mov al, 0x26
jmp 0x1401f4e8f
mov al, 0x27
jmp 0x1401f4e8f
mov al, 0x28
jmp 0x1401f4e8f
jmp 0x1401f8b7e
ud2
jmp 0x1401f8bb2
test bh, 1
je 0x1401f8bb0
jmp case.0x1401f3e4c.96
xor esi, esi
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1401f8bcc
mov r8d, 1
call fcn.14000ea40
add byte [rax], al
add al, ch
je case.0x1401f3e4c.112
loope 0x1401f8bcb
inc dword [rax - 0x7c]
div byte [rax + rcx + 0x48]
mov ecx, edi
test sil, sil
test dh, dh
je case.0x1401f3e4c.96
mov rcx, rdi
call fcn.140249e64
mov edx, dword [rdx]
add eax, 0xf1894c00
mov rcx, r14
mov rcx, r14
call fcn.14024a4d0
out dx, eax
sbb byte [0x1a62a9ae4], al
ud2
nop word cs:[rax + rax]
nop word cs:[rax + rax]
ud2
nop word cs:[rax + rax]
invalid
add byte [rax], al
add byte [rsi + 0x57], dl
push rsi
push rdi
js 0x1401f8c43
mov eax, eax
mov eax, 0xffffffff
dec dword [rbp + 0x39]
ror dword [rbp + 0xf], 0x42
cmovb r8, r9
invalid
and al, 0x44
add byte [rax], r8b
add byte [rax], r8b
add byte [rax], al
ror byte [rdi], 0x29
and al, 0x50
mov dword [rsp + 0x60], 0
add byte [rax - 0x73], cl
and al, 0x44
mov dword [rsp + 0x68], ecx
insd dword [rdi], dx
invalid
and al, 0x20
and al, 0x50
mov edx, eax
movsb byte [rdi], byte [rsi]
syscall
add byte [rbp + 0xf5474c0], al
push rsp
invalid
invalid
push rsp
invalid
add al, ch
fisttp qword [rsi]
add eax, 0x247c8300
jl 0x1401f8c86
jl 0x1401f8c86
add byte [rdx + rbp*8 + 0x48], r14b
invalid
or eax, 2
cmp byte [rax - 0x39], cl
and al, 0x30
xor byte [rcx], al
add byte [rax], al
invalid
xor byte [rcx], al
add byte [rax], al
add byte [rax - 0x73], cl
jl 0x1401f8cae
invalid
and al, 0x38
cmp byte [rcx + 0x3e183c1], cl
lea edx, [0x1402fc670]
adc byte [rax], al
invalid
or al, 0x8a
sar edi, 1
loope case.0x1401f4e4e.50
pop rdi
adc byte [0x120e0d4a8], al
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], rax
shl eax, 0x20
mov dword [rsp + 0x38], eax
cmp byte [rax - 0x39], cl
and al, 0x30
and al, 0x30
add dword [rax], eax
add byte [rax], al
adc eax, 0x1039a4
or al, 0x8a
and al, 0x4c
cmp byte [rax - 0x39], cl
and al, 0x30
add byte [rax], al
add byte [rax], al
invalid
add byte [rax], al
add bl, ch
and eax, 0xf40b60f
movzx eax, byte [rax + 0xf]
por mm1, qword [rbx]
and byte [rcx + 0x7df0e8c1], cl
add byte [rax], al
invalid
add byte [rbx + rcx], bh
ror byte [rdi], 0x11
invalid
invalid
mov dword [rsi + 8], eax
or eax, 0x103944
add al, 0x81
mov bl, 0xb0
add ebx, ebp
scasd eax, dword [rdi]
add al, 0xeb
movabs dword [0x9beb06b09feb05b0], eax
mov al, 5
jmp 0x1401f8d00
mov al, 6
jmp 0x1401f8d00
xchg edi, eax
or ebp, ebx
xchg dword [rax - 0x4f7c14f4], esi
mov al, 0xc
jmp 0x1401f8d00
mov al, 0xd
invalid
jl 0x1401f8d81
invalid
push qword [rax - 0x9116f1]
outsb dx, byte [rsi]
invalid
invalid
adc ecx, ebp
invalid
push qword [rax - 0xad16ed]
push rdx
invalid
invalid
adc eax, 0xffff44e9
push qword [rax - 0xc216ea]
mov al, 0x16
invalid
invalid
invalid
push qword [rax - 0xc916e9]
invalid
invalid
sub bh, bh
invalid
and edi, edi
sbb bh, bh
adc edi, edi
or al, 0xff
add eax, 0xb0ffffff
invalid
invalid
invalid
idiv esi
invalid
jmp 0xf11f8e16
loop case.0x1401f3e4c.167
invalid
invalid
int 0xfe
invalid
invalid
mov edi, 0x66fffffe
invalid
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop word cs:[rax + rax]
test byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
push rsi
push rdi
add byte [rax], al
jo 0x1401f8ea0
mov ebx, edx
ror dword [rax - 0x75], cl
push rdx
or byte [rax - 0x75], cl
invalid
invalid
jnp case.0x1401f4e4e.108
sub eax, edi
clc
xor eax, dword [rdx]
add byte [rax], al
invalid
ror byte [rdi + rcx + 0x42], 0xc0
ror byte [rax - 0x75], 0x13
add byte [rdi], cl
push rdi
ror byte [rdi], 0x29
and al, 0x50
and al, 0x50
and al, 0x50
add byte [rax], al
add byte [rax], al
and al, 0x34
mov dword [rsp + 0x68], eax
and al, 0x50
push rax
add byte [rbp + 0x664d74c0], al
nop
add byte [rax], al
add al, ch
insd dword [rdi], dx
or al, 5
add byte [rbx + 0x34247c], al
invalid
test esi, esi
and byte [rax - 0x7d], cl
invalid
add dword [rax], eax
cmp byte [rax], dl
add byte [rax + 0x63], cl
invalid
invalid
add al, 0x81
or eax, 0xc6890005
out 0x20, al
mov dword [rsp + 0x48], esi
push qword [rax - 0x9a16ed]
push qword [rax - 0xbd16e8]
nop word cs:[rax + rax]
test byte [rax], al
add byte [rax], al
add byte [rax], al
ret
and al, 0x88
add byte [rax], al
add al, ch
mov dl, 0x2d
loope 0x1401fbc8d
inc dword [rax - 0x7c]
push qword [rdi + rdi + 0x48]
mov ecx, dword [rsp + 0x1a8]
test dil, dil
je 0x1401fbcd2
mov rcx, qword [rsp + 0x1a8]
test rcx, rcx
je 0x1401fbcdf
mov rax, rcx
movdqu xmm6, xmmword [rsp + 0x1b0]
mov r13, rcx
lea rcx, [rsp + 0x1a8]
call fcn.1401b74f0
lea rdx, str.PATHlibrary_std_src_sys_commonprocess.rs
lea rcx, [rsp + 0x150]
mov r8d, 4
call fcn.1401d7110
cmp byte [rsp + 0x168], 2
je 0x1401fc9c7
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x160]
add rax, rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1a8], eax
mov dword [rsp + 0x1a8], eax
mov word [rsp + 0x1b0], 0
mov byte [rsp + 0x1b8], 1
lea r15, [rsp + 0x289]
lea rsi, [rsp + 0xb9]
lea rdi, [rsp + 0x270]
lea rbp, [rsp + 0x1a0]
lea rbx, [rsp + 0xa0]
jmp 0x1401fbd8c
add byte [rax - 0x75], cl
and al, 0x68
lea ecx, [rsp + 0xa0]
and al, 0xb0
add byte [rax], al
add byte [rcx + rcx*4 - 0x1f], cl