Function at 0x1401ccef0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x2108
call fcn.14034f060
sub rsp, rax
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x2070], xmm7
movaps xmmword [rbp + 0x2060], xmm6
mov qword [rbp + 0x2058], 0xfffffffffffffffe
mov rsi, rcx
movzx eax, byte [rcx + 0x48]
and al, 0x1d
cmp al, 0x10
jne 0x1401ccf56
mov rcx, rsi
call fcn.1401cdd60
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.140082cd0
xor ecx, ecx
call fcn.1401ce360
ud2
mov rcx, rsi
call fcn.1401cdd60
mov qword [rbp - 0x38], rax
test rax, rax
je 0x1401ccf70
lea rcx, [rbp - 0x38]
call fcn.140077a10
cmp byte [rsi + 0x49], 0
jne 0x1401ccf82
mov ecx, 2
call fcn.1401ce360
ud2
lea rax, [0x14042c4f8]
mov qword [rbp + 0x2040], rax
lea rax, [rbp + 0x2040]
mov qword [rbp + 0x2018], rax
lea rax, str._nPress__ENTER_____RETURN__to_continue..._n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, str.internal_error:_entered_unreachable_code:_unknown_state:
mov qword [rbp - 0x28], rax
xorps xmm6, xmm6
movups xmmword [rbp - 0x20], xmm6
lea rcx, [rbp + 0x2018]
lea rdx, [rbp - 0x38]
call fcn.140309560
mov qword [rbp - 0x38], rax
test rax, rax
je 0x1401ccfe5
lea rcx, [rbp - 0x38]
call fcn.140077a10
mov qword [rbp + 0x2018], 1
movups xmmword [rbp + 0x2020], xmm6
mov rax, qword [0x14042c4a8]
cmp rax, 3
je 0x1401cd009
call fcn.14035cdb0
lea rcx, [0x14042c468]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x14042c600]
shl rax, 1
test rax, rax
je 0x1401cda86
call fcn.14035cd90
xor al, 1
mov dword [rbp + 0x2034], eax
movzx eax, byte [0x14042c470]
mov r14, qword [rbp + 0x2028]
lea rbx, [rbp + 0x1ff0]
lea r12, [0x1401cdca0]
mov qword [rbp + 0x2000], r14
xor eax, eax
mov qword [rbp + 0x1ff8], rax
nop word cs:[rax + rax]
mov qword [rbp + 0x1fe0], r14
nop word [rax + rax]
mov rax, qword [0x14042c488]
mov r15, qword [0x14042c490]
mov rdi, qword [0x14042c478]
sub r15, rax
jbe 0x1401cd0d0
add rax, rdi
mov qword [rbp + 0x1fe8], rax
mov qword [rbp + 0x1ff0], r15
test rdi, rdi
jne 0x1401cd5c0
mov eax, r15d
and eax, 3
movsxd rax, dword [r12 + rax*4]
add rax, r12
jmp rax
mov rsi, qword [0x14042c480]
mov rcx, qword [0x14042c498]
mov r8, rsi
sub r8, rcx
jb 0x1401cd96c
add rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movq xmm7, rsi
pslldq xmm7, 8
mov ecx, 0xfffffff6
call sub.KERNEL32.dll_GetStdHandle
movabs r15, 0x600000002
test rax, rax
je 0x1401cd130
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1401cd139
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov qword [rbp - 0x38], r15
jmp 0x1401cd439
mov dword [rbp - 0x38], 0
mov rcx, r14
lea rdx, [rbp - 0x38]
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x1401cd1ce
mov r12, rbx
mov rbx, r14
movzx r14d, byte [0x14042c4a6]
cmp rsi, r14
mov r13, r14
cmovb r13, rsi
cmp r13, 5
jae 0x1401cd9bb
mov rcx, rdi
lea r15, [0x14042c4a2]
mov rdx, r15
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
cmp rsi, r14
jae 0x1401cd25a
mov r8d, 4
sub r8, r13
lea rax, [0x14042c468]
lea rdx, [rax + r13]
add rdx, 0x3a
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
movzx eax, byte [0x14042c4a6]
sub al, r13b
mov byte [0x14042c4a6], al
cmp rsi, r14
ja 0x1401cd26b
jmp 0x1401cd5d0
movdqu xmm0, xmmword [0x1403a6280]
movdqa xmmword [rbp + 0x2040], xmm0
mov eax, 0xffffffff
cmp rsi, rax
cmovb rax, rsi
movups xmmword [rsp + 0x38], xmm6
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x2040]
mov qword [rsp + 0x20], rax
mov rcx, r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401cd230
mov rcx, r14
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x2040]
cmp eax, 0xc0000011
je 0x1401cd41e
cmp eax, 0x103
je 0x1401cd9d4
test eax, eax
js 0x1401cd3d6
mov r15, qword [rbp + 0x2048]
jmp 0x1401cd421
xor eax, eax
mov byte [0x14042c4a6], al
cmp rsi, r14
jbe 0x1401cd5d0
mov r14, rsi
sub r14, r13
cmp r14, 4
jae 0x1401cd31c
mov word [rbp + 0x2040], 0
lea rax, [0x14042c4a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
mov r9d, 1
lea rcx, [rbp - 0x38]
mov rdx, rbx
lea r8, [rbp + 0x2040]
call fcn.140307e40
mov rbx, r12
lea r12, [0x1401cdca0]
cmp qword [rbp - 0x38], 0
mov r15, qword [rbp - 0x30]
jne 0x1401cd42c
cmp r15, 2
jae 0x1401cda55
movups xmmword [rsp + 0x30], xmm6
lea rax, [0x14042c4a2]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov ecx, 0xfde9
mov edx, 0x80
lea r8, [rbp + 0x2040]
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r15, str._bi:_
test eax, eax
je 0x1401cd42c
jmp 0x1401cd707
mov rax, rsi
movabs rcx, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
cmp rdx, 0x1000
mov eax, 0x1000
cmovae rdx, rax
lea rax, [0x14042c4a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r9d, 0x1000
lea rcx, [rbp + 0x2040]
mov rdx, rbx
lea r8, [rbp - 0x38]
call fcn.140307e40
mov rbx, r12
lea r12, [0x1401cdca0]
cmp qword [rbp + 0x2040], 0
mov r15, qword [rbp + 0x2048]
jne 0x1401cd42c
cmp r15, 0x1001
jae 0x1401cda3f
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
mov edx, 0x80
lea r8, [rbp - 0x38]
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cdqe
add r13, rax
xor ecx, ecx
test eax, eax
sete cl
lea rax, str._bi:_
cmove r13, rax
mov r15, r13
jmp 0x1401cd423
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov r15, rax
shl r15, 0x20
or r15, 2
mov qword [rbp + 0x1fd0], r15
mov qword [rbp + 0x1fc8], 1
mov ecx, eax
call fcn.1402ff3a0
mov ecx, 1
cmp al, 0xb
jne 0x1401cd423
mov qword [rbp + 0x2010], r14
lea rcx, [rbp + 0x1fd0]
call fcn.140077a10
xor r15d, r15d
xor ecx, ecx
test rcx, rcx
je 0x1401cd5dd
mov qword [rbp - 0x38], r15
test r15, r15
je 0x1401cd5f2
mov eax, r15d
and eax, 3
cmp rax, 2
jb 0x1401cd45a
cmp eax, 2
jne 0x1401cd45a
mov rax, r15
shr rax, 0x20
cmp eax, 6
je 0x1401cd5c5
mov qword [rbp + 0x1ff0], r15
mov qword [rbp + 0x1fe8], 0
mov eax, r15d
and eax, 3
movsxd rax, dword [r12 + rax*4]
add rax, r12
jmp rax
movzx eax, byte [r15 + 0x10]
jmp case.0x1401cd4c0.0
mov rcx, r15
shr rcx, 0x20
call fcn.1402ff3a0
jmp case.0x1401cd4c0.0
mov rcx, r15
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x1401cd4c0
xor eax, eax
lea rdx, [0x1401cdcb0]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov al, 1
jmp case.0x1401cd4c0.0
invalid
pcmpgtd mm5, qword [rsi]
nop dword [rax + rax]
movzx eax, byte [r15 + 0xf]
cmp al, 0x23
jne 0x1401cd897
add eax, dword [rax]
invalid
add eax, dword [rax]
add byte [rax - 0x77], cl
mov ecx, ebx
call fcn.140077a10
invalid
xchg esi, eax
mov rcx, rbx
mov ecx, ebx
call fcn.140077a10
jmp 0x1401cd080
xchg esi, eax
sti
invalid
invalid
movsd dword [rdi], dword [rsi]
invalid
xchg esi, eax
sti
invalid
mov al, 0x25
jmp case.0x1401cd4c0.0
mov al, 0x23
jmp case.0x1401cd4c0.0
mov al, 0x24
jmp case.0x1401cd4c0.0
mov al, 0x1b
jmp case.0x1401cd4c0.0
mov al, 0x22
jmp case.0x1401cd4c0.0
mov al, 0x10
jmp case.0x1401cd4c0.0
mov al, 0xe
jmp case.0x1401cd4c0.0
mov al, 0x21
jmp case.0x1401cd4c0.0
mov al, 0xb
jmp case.0x1401cd4c0.0
mov al, 4
jmp case.0x1401cd4c0.0
mov al, 0x28
jmp case.0x1401cd4c0.0
mov al, 0xc
jmp case.0x1401cd4c0.0
mov al, 9
jmp case.0x1401cd4c0.0
mov al, 0x19
jmp case.0x1401cd4c0.0
mov al, 0x18
jmp case.0x1401cd4c0.0
mov al, 2
jmp case.0x1401cd4c0.0
mov al, 0xf
jmp case.0x1401cd4c0.0
mov al, 3
jmp case.0x1401cd4c0.0
mov al, 7
jmp case.0x1401cd4c0.0
mov al, 0x1f
jmp case.0x1401cd4c0.0
mov al, 0x11
jmp case.0x1401cd4c0.0
mov al, 0x29
jmp case.0x1401cd4c0.0
mov al, 0x14
jmp case.0x1401cd4c0.0
mov al, 5
jmp case.0x1401cd4c0.0
invalid
mov esi, dword [rax - 0x4f7814eb]
or eax, 0x6b083eb
jmp case.0x1401cd4c0.0
mov al, 6
mov al, 0x15
jmp case.0x1401cd4c0.0
mov al, 0xd
jmp case.0x1401cd4c0.0
mov al, 6
jmp case.0x1401cd4c0.0
invalid
mov al, 0x12
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 8
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x27
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x1401cd4c0.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x1401cd4c0.0
mov al, 0x26
jmp case.0x1401cd4c0.0
mov al, 0x1a
jmp case.0x1401cd4c0.0
mov rdi, rax
jmp 0x1401cd60a
lea rcx, [rbp - 0x38]
call fcn.140077a10
jmp 0x1401cd5f2
mov r15, r13
mov rbx, r12
lea r12, [0x1401cdca0]
cmp rsi, r15
cmovbe rsi, r15
movq xmm0, rsi
movq xmm7, r15
punpcklqdq xmm7, xmm0
mov qword [0x14042c488], 0
movdqu xmmword [0x14042c490], xmm7
movq r15, xmm7
movabs r9, 0xa0a0a0a0a0a0a0a
movabs r10, 0xfefefefefefefeff
movabs r11, 0x8080808080808080
cmp r15, 0x10
jae 0x1401cd690
test r15, r15
je 0x1401cd6db
xor ecx, ecx
nop dword [rax]
cmp byte [rdi + rcx], 0xa
je 0x1401cd7df
inc rcx
cmp r15, rcx
jne 0x1401cd640
mov rax, qword [rbp + 0x2020]
mov r14, qword [rbp + 0x1fe0]
sub rax, r14
cmp rax, r15
jae 0x1401cd6e5
lea rcx, [rbp + 0x2018]
mov rdx, r14
mov r8, r15
call fcn.140355dd0
mov r14, qword [rbp + 0x2028]
jmp 0x1401cd6e5
lea rax, [rdi + 7]
and rax, 0xfffffffffffffff8
sub rax, rdi
je 0x1401cd6d0
cmp rax, r15
cmovae rax, r15
test rax, rax
je 0x1401cd6d0
xor ecx, ecx
nop dword [rax + rax]
cmp byte [rdi + rcx], 0xa
je 0x1401cd7d5
inc rcx
cmp rax, rcx
jne 0x1401cd6b0
lea rcx, [r15 - 0x10]
jmp 0x1401cd7b5
lea rcx, [r15 - 0x10]
xor eax, eax
jmp 0x1401cd780
mov r14, qword [rbp + 0x2028]
xor r15d, r15d
mov rcx, qword [rbp + 0x2018]
add rcx, r14
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
xor eax, eax
mov rsi, r15
jmp 0x1401cd835
mov byte [0x14042c4a6], al
lea rcx, [rdi + r13]
movzx r15d, al
mov qword [rbp + 0x2010], r15
cmp r14, r15
cmovb r15, r14
lea rdx, [0x14042c4a2]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp r14, qword [rbp + 0x2010]
jae 0x1401cd76b
mov r8d, 4
sub r8, r15
lea rax, [0x14042c468]
lea rdx, [r15 + rax]
add rdx, 0x3a
lea rcx, [0x14042c4a2]
call sub.VCRUNTIME140.dll_memmove
movzx eax, byte [0x14042c4a6]
sub al, r15b
jmp 0x1401cd76d
xor eax, eax
mov byte [0x14042c4a6], al
add r15, r13
jmp 0x1401cd5dd
mov rdx, qword [rdi + rax]
mov r8, rdx
not r8
xor rdx, r9
add rdx, r10
and rdx, r8
test rdx, r11
jne 0x1401cd7c3
mov rdx, qword [rdi + rax + 8]
mov r8, rdx
not r8
xor rdx, r9
add rdx, r10
and rdx, r8
test rdx, r11
jne 0x1401cd7c3
add rax, 0x10
cmp rax, rcx
jbe 0x1401cd780
jmp 0x1401cd7c3
inc rax
cmp r15, rax
je 0x1401cd652
cmp byte [rdi + rax], 0xa
jne 0x1401cd7c0
mov rcx, rax
cmp rcx, 0xffffffffffffffff
je 0x1401cda7f
lea rsi, [rcx + 1]
cmp rcx, r15
jae 0x1401cda6b
mov rax, qword [rbp + 0x2020]
mov r14, qword [rbp + 0x2028]
sub rax, r14
cmp rax, rcx
ja 0x1401cd81b
lea rcx, [rbp + 0x2018]
mov rdx, r14
mov r8, rsi
call fcn.140355dd0
mov r14, qword [rbp + 0x2028]
mov rcx, qword [rbp + 0x2018]
add rcx, r14
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add r14, rsi
mov al, 1
mov rcx, qword [0x14042c488]
add rcx, rsi
mov rdx, qword [0x14042c490]
cmp rcx, rdx
cmovae rcx, rdx
mov qword [rbp + 0x2028], r14
mov qword [0x14042c488], rcx
add qword [rbp + 0x1ff8], rsi
test al, al
jne 0x1401cd86f
test rsi, rsi
jne 0x1401cd070
mov r15, qword [rbp + 0x1ff8]
mov qword [rbp + 0x2048], r15
mov qword [rbp + 0x2040], 0
mov dil, 1
lea rbx, str.stream_did_not_contain_valid_UTF_8
mov rdx, r14
jmp 0x1401cd8b5
mov qword [rbp + 0x2048], r15
mov qword [rbp + 0x2040], 1
mov rdx, qword [rbp + 0x2028]
xor edi, edi
mov rbx, r15
mov r8, rdx
mov rcx, qword [rbp + 0x2000]
sub r8, rcx
jae 0x1401cd8d5
lea r8, [0x1403a50a0]
call fcn.140354ef0
jmp 0x1401cda84
mov r12, rdx
mov r14, rcx
mov rsi, qword [rbp + 0x2018]
lea rdx, [rsi + rcx]
lea rcx, [rbp - 0x38]
call fcn.140223f10
cmp qword [rbp - 0x38], 0
jne 0x1401cd980
mov qword [rbp + 0x2028], r12
test dil, dil
je 0x1401cd98a
cmp byte [rbp + 0x2034], 0
jne 0x1401cd933
mov rax, qword [0x14042c600]
shl rax, 1
test rax, rax
je 0x1401cd933
call fcn.14035cd90
test al, al
jne 0x1401cd933
mov byte [0x14042c470], 1
lea rcx, [0x14042c468]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rbp + 0x2020], 0
je 0x1401ccf76
mov rcx, qword [0x14042c578]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 2
call fcn.1401ce360
ud2
lea r8, str.library_std_srcio_readbuf.rs
mov rdx, rsi
call fcn.140354ef0
jmp 0x1401cda84
mov qword [rbp + 0x2028], r14
mov r15, rbx
mov qword [rbp - 0x38], r15
lea rax, str.C:Usersidofi.cargo_registry_srcindex.crates.io_6f17d22bba15001fclap_3.0.5_srcparseerrors.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1403aeea8]
lea r9, fcn.140077a10
lea r8, [rbp - 0x38]
mov edx, 0x2b
call fcn.1403552f0
jmp 0x1401cda84
lea r8, str.library_std_src_syswindows_stdio.rs
mov edx, 4
mov rcx, r13
call fcn.140354f70
jmp 0x1401cda84
mov qword [rbp + 0x2010], r14
mov byte [rbp + 0x200c], 0
mov dword [rbp + 0x2008], 0
lea rax, [0x1403a62e8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x2038]
mov qword [rbp - 0x28], rax
pxor xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x2008]
lea rdx, [rbp - 0x38]
call fcn.1402fe670
mov qword [rbp + 0x1fd8], rax
lea rcx, [rbp + 0x1fd8]
call fcn.140082cd0
mov ecx, 7
int 0x29
ud2
lea r8, str.library_std_src_syswindows_stdio.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140354f70
jmp 0x1401cda84
lea r8, str.library_std_src_syswindows_stdio.rs
mov edx, 1
mov rcx, r15
call fcn.140354f70
jmp 0x1401cda84
lea r8, [0x1403a5270]
mov rcx, rsi
mov rdx, r15
call fcn.140354f70
jmp 0x1401cda84
call fcn.140355560
ud2
mov dword [rbp + 0x2034], 0
jmp 0x1401cd037