Function at 0x14002e730
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
add al, ch
retf 0x1a1
add byte [rax + 0x29], cl
invalid
lea rbp, [rsp + 0x80]
movapd xmmword [rbp + 0x2070], xmm9
movaps xmmword [rbp + 0x2060], xmm8
sub dword [rbp + 0x2060], eax
movaps xmmword [rbp + 0x2050], xmm7
movaps xmmword [rbp + 0x2040], xmm6
mov qword [rbp + 0x2038], 0xfffffffffffffffe
and byte [rax], al
add dh, bh
invalid
invalid
dec dword [rcx - 0x77]
int3
mov cl, 1
xor eax, eax
lock cmpxchg byte [r12], cl
jne 0x14002ef8c
add byte [rax], al
mov rax, qword [0x14006a318]
shl rax, 1
test rax, rax
jne 0x14002efad
mov dword [rbp + 0x2024], 0
movzx eax, byte [r12 + 1]
mov qword [rbp + 0x2010], rdx
mov rsi, qword [rdx + 0x10]
lea rax, [r12 + 0x30]
mov qword [rbp + 0x2000], rax
add byte [rax], ah
add byte [rax], al
lea rax, [r12 + 0x32]
mov qword [rbp + 0x2018], rax
lea rbx, [0x14005b664]
movdqa xmm6, xmmword [str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n]
movdqa xmm7, xmmword [0x140050630]
xorps xmm8, xmm8
mov qword [rbp + 0x1fe8], rsi
xor eax, eax
mov qword [rbp + 0x1ff0], rax
mov qword [rbp + 0x2030], r12
jmp 0x14002e823
cmp byte [r13 + 0xf], 0x23
jne 0x14002ee3b
mov rcx, r13
call fcn.140017860
mov r12, qword [rbp + 0x2030]
mov r14, qword [r12 + 8]
mov rax, qword [r12 + 0x18]
mov r13, qword [r12 + 0x20]
sub r13, rax
jbe 0x14002e870
test r14, r14
jne 0x14002ec0c
mov eax, r13d
and eax, 3
mov r15d, 1
xor ecx, ecx
movsxd rax, dword [rbx + rax*4]
add rax, rbx
mov r14, r13
jmp rax
invalid
mov r15, qword [r12 + 0x10]
mov rcx, qword [r12 + 0x28]
mov r8, r15
mov eax, edi
sub r8, rcx
jb 0x14002efdd
add rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movq xmm9, r15
outsb dx, byte [rsi]
iretd
pslldq xmm9, 8
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
movabs r13, 0x600000002
invalid
add byte [rax], al
add byte [rax - 0x7b], cl
invalid
je 0x14002e8d3
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002e945
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
test r13, r13
je 0x14002ed19
mov eax, r13d
and eax, 3
cmp rax, 2
clc
add dh, byte [rdx + 0x15]
cmp eax, 2
jne 0x14002e8fd
mov rax, r13
shr rax, 0x20
cmp eax, 6
je 0x14002ec6c
mov eax, r13d
and eax, 3
mov r15d, 1
xor ecx, ecx
movsxd rax, dword [rbx + rax*4]
add rax, rbx
mov r14, r13
jmp rax
cmp byte [r13 + 0x10], 0x23
je 0x14002e81b
jmp 0x14002ee3b
mov rax, r13
shr rax, 0x20
cmp eax, 0x23
je 0x14002e81b
jmp 0x14002ee3b
mov dword [rbp - 0x30], 0
mov rcx, rdi
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14002e9d9
movzx r13d, byte [r12 + 0x36]
cmp r15, r13
mov r12, r13
cmovb r12, r15
cmp r12, 5
jae 0x14002eff1
mov rbx, rsi
mov rsi, rdi
mov rcx, r14
mov rdi, qword [rbp + 0x2018]
mov rdx, rdi
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
cmp r15, r13
jae 0x14002ea93
mov r8d, 4
sub r8, r12
lea rdx, [rdi + r12]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov rcx, qword [rbp + 0x2030]
movzx eax, byte [rcx + 0x36]
sub al, r12b
mov byte [rcx + 0x36], al
cmp r15, r13
ja 0x14002eaa8
mov rsi, rbx
lea rbx, [0x14005b664]
jmp 0x14002ed0f
movupd xmm0, xmmword [0x140058cc8]
movapd xmmword [rbp + 0x1fd0], xmm0
mov eax, 0xffffffff
cmp r15, rax
cmovb rax, r15
movups xmmword [rsp + 0x38], xmm8
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x1fd0]
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002ea3c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x1fd0]
cmp eax, 0xc0000011
je 0x14002ec79
cmp eax, 0x103
je 0x14002f00a
test eax, eax
jns 0x14002ec81
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov r13, rax
shl r13, 0x20
or r13, 2
mov ecx, eax
call fcn.14002a8c0
cmp al, 0xb
jne 0x14002e8dc
mov qword [rbp + 0x2008], rdi
mov rcx, r13
call fcn.140017860
xor r12d, r12d
jmp 0x14002ed0f
xor eax, eax
mov rcx, qword [rbp + 0x2030]
mov byte [rcx + 0x36], al
cmp r15, r13
jbe 0x14002e9ca
mov r10, rsi
mov r13, r15
sub r13, r12
cmp r13, 4
mov rsi, rbx
jae 0x14002eb4c
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x2000]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov r9d, 1
mov rcx, r10
lea rdx, [rbp - 0x30]
call fcn.14002e1b0
lea rbx, [0x14005b664]
test rax, rax
jne 0x14002eb9c
mov r9, rdx
cmp rdx, 2
jae 0x14002f09b
test r9, r9
mov rax, qword [rbp + 0x2018]
je 0x14002ec8a
movups xmmword [rsp + 0x30], xmm8
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov ecx, 0xfde9
mov edx, 0x80
lea r8, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.Windows_stdin_in_console_mode_does_not_support_non_UTF_16_input__encountered_unpaired_surrogate
test eax, eax
je 0x14002eb9c
jmp 0x14002ec8c
mov rax, r15
movabs rcx, 0xaaaaaaaaaaaaaaab
mul rcx
mov r9, rdx
shr r9, 1
cmp r9, 0x1000
mov eax, 0x1000
cmovae r9, rax
mov rax, qword [rbp + 0x2000]
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov rcx, r10
lea rdx, [rbp - 0x30]
call fcn.14002e1b0
lea rbx, [0x14005b664]
test rax, rax
je 0x14002ebb4
mov r12, qword [rbp + 0x2030]
mov r13, rdx
test r13, r13
jne 0x14002e8dc
jmp 0x14002ed19
mov r9, rdx
cmp rdx, 0x1001
jae 0x14002f085
test r9, r9
je 0x14002ecec
movups xmmword [rsp + 0x30], xmm8
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
mov edx, 0x80
lea r8, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14002ed01
lea r13, str.Windows_stdin_in_console_mode_does_not_support_non_UTF_16_input__encountered_unpaired_surrogate
mov r12, qword [rbp + 0x2030]
jmp 0x14002e8dc
add r14, rax
cmp r13, 0x10
mov r15, qword [rbp + 0x2010]
jb 0x14002ed45
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
movabs r8, 0x8080808080808080
jne 0x14002ec42
lea rcx, [r13 - 0x10]
xor eax, eax
jmp 0x14002ed70
cmp rax, r13
cmovae rax, r13
xor ecx, ecx
nop dword [rax + rax]
cmp byte [r14 + rcx], 0xa
je 0x14002ee48
inc rcx
cmp rax, rcx
jne 0x14002ec50
lea rcx, [r13 - 0x10]
jmp 0x14002ed9d
mov rcx, r13
call fcn.140017860
jmp 0x14002ed19
xor r12d, r12d
jmp 0x14002ed06
mov r12, qword [rbp + 0x1fd8]
jmp 0x14002ed06
xor eax, eax
mov rcx, qword [rbp + 0x2030]
mov byte [rcx + 0x36], al
lea rcx, [r14 + r12]
movzx edi, al
mov qword [rbp + 0x2008], rdi
cmp r13, rdi
cmovb rdi, r13
mov rdx, qword [rbp + 0x2018]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
cmp r13, qword [rbp + 0x2008]
jae 0x14002ecf0
mov r8d, 4
sub r8, rdi
mov rcx, qword [rbp + 0x2018]
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov rcx, qword [rbp + 0x2030]
movzx eax, byte [rcx + 0x36]
sub al, dil
jmp 0x14002ecf9
xor eax, eax
jmp 0x14002ed03
xor eax, eax
mov rcx, qword [rbp + 0x2030]
mov byte [rcx + 0x36], al
add r12, rdi
jmp 0x14002ed06
cdqe
add r12, rax
cmp r15, r12
jb 0x14002f0cc
movq xmm0, r12
movsd xmm9, xmm0
mov r12, qword [rbp + 0x2030]
mov qword [r12 + 0x18], 0
movups xmmword [r12 + 0x20], xmm9
movq r13, xmm9
cmp r13, 0x10
mov r15, qword [rbp + 0x2010]
jae 0x14002ec20
test r13, r13
je 0x14002edc3
xor ecx, ecx
nop dword [rax]
cmp byte [r14 + rcx], 0xa
je case.0x14002cec4.35
inc rcx
cmp r13, rcx
jne 0x14002ed50
jmp 0x14002edc3
movdqu xmm0, xmmword [r14 + rax]
movdqa xmm1, xmm0
pxor xmm1, xmm6
paddq xmm1, xmm7
pandn xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rdx, xmm1
test rdx, r8
jne 0x14002eda2
add rax, 0x10
cmp rax, rcx
jbe 0x14002ed70
mov rdx, r13
sub rdx, rax
je 0x14002edc3
lea r8, [r14 + rax]
xor ecx, ecx
cmp byte [r8 + rcx], 0xa
je 0x14002ee45
inc rcx
cmp rdx, rcx
jne 0x14002edb0
mov rax, qword [r15]
sub rax, rsi
cmp rax, r13
jae 0x14002edf4
mov rcx, r15
mov rdx, rsi
mov rdi, r13
mov r8, r13
call fcn.14004bd50
mov r15, qword [rbp + 0x2010]
mov rsi, qword [r15 + 0x10]
mov r12, qword [rbp + 0x2030]
and byte [rax], al
add byte [rcx - 0x77], cl
std
mov rcx, qword [r15 + 8]
add rcx, rsi
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
add rsi, r13
mov qword [r15 + 0x10], rsi
mov rax, qword [r12 + 0x18]
add rax, r13
mov rcx, qword [r12 + 0x20]
cmp rax, rcx
cmovae rax, rcx
mov qword [r12 + 0x18], rax
mov dword [rsp + 0x18], eax
add qword [rbp + 0x1ff0], r13
test r13, r13
jne 0x14002e823
jmp 0x14002eec3
xor ecx, ecx
mov r14, r13
jmp case.0x14002e85f.2
add rcx, rax
cmp rcx, 0xffffffffffffffff
je 0x14002f0c5
lea rdi, [rcx + 1]
cmp rcx, r13
jae 0x14002f0b1
mov rax, qword [r15]
sub rax, rsi
cmp rax, rcx
ja case.0x14002d134.21
mov rcx, r15
mov rdx, rsi
mov r8, rdi
call fcn.14004bd50
mov r15, qword [rbp + 0x2010]
mov rsi, qword [r15 + 0x10]
mov r12, qword [rbp + 0x2030]
mov rcx, qword [r15 + 8]
add rcx, rsi
mov rdx, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rsi, rdi
mov qword [r15 + 0x10], rsi
mov rax, qword [r12 + 0x18]
add rax, rdi
mov rcx, qword [r12 + 0x20]
cmp rax, rcx
cmovae rax, rcx
mov qword [r12 + 0x18], rax
add qword [rbp + 0x1ff0], rdi
mov cl, 1
lea r14, [0x1400578f8]
xor r15d, r15d
mov r13, qword [rbp + 0x1ff0]
mov dword [rbp + 0x2018], ecx
mov r8, rsi
mov rdi, qword [rbp + 0x1fe8]
sub r8, rdi
jb 0x14002f06a
mov rbx, qword [rbp + 0x2010]
mov rdx, qword [rbx + 8]
add rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140013b40
mov rax, rdi
mov rdi, qword [rbp - 0x30]
test rdi, rdi
cmovne rsi, rax
mov qword [rbx + 0x10], rsi
cmp byte [rbp + 0x2024], 0
jne 0x14002ef34
mov rax, qword [0x14006a318]
shl rax, 1
test rax, rax
jne 0x14002efc5
xor eax, eax
xchg byte [r12], al
cmp al, 2
jne 0x14002ef47
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
test rdi, rdi
mov eax, 1
cmove rax, r15
cmove r14, r13
mov rdx, r14
movaps xmm6, xmmword [rbp + 0x2040]
movaps xmm7, xmmword [rbp + 0x2050]
movaps xmm8, xmmword [rbp + 0x2060]
movaps xmm9, xmmword [rbp + 0x2070]
add rsp, 0x2108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r12
mov rsi, rdx
call fcn.14004bdf0
mov rdx, rsi
mov rax, qword [0x14006a318]
shl rax, 1
test rax, rax
je 0x14002e7a1
mov rsi, rdx
call fcn.14004beb0
mov rdx, rsi
xor al, 1
mov dword [rbp + 0x2024], eax
jmp 0x14002e7ab
call fcn.14004beb0
test al, al
jne 0x14002ef34
mov byte [r12 + 1], 1
jmp 0x14002ef34
lea r8, [0x140056fc8]
mov rdx, r15
call fcn.140049600
jmp 0x14002f0e4
lea r8, str.library_std_src_syspalwindows_stdio.rs8
mov edx, 4
mov rcx, r12
call fcn.140049680
jmp 0x14002f0e4
mov qword [rbp + 0x2008], rdi
mov dword [rbp + 0x1ff8], 0
mov byte [rbp + 0x1ffc], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rax, [rbp + 0x2028]
mov qword [rbp - 0x20], rax
xorpd xmm0, xmm0
movupd xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 0x1ff8]
lea rdx, [rbp - 0x30]
call fcn.140027900
mov rcx, rax
call fcn.140027990
mov ecx, 7
int 0x29
ud2
mov qword [rbp + 0x2000], r13
lea r8, [0x140057de0]
mov rcx, rdi
mov rdx, rsi
call fcn.140049600
jmp 0x14002f0e4
lea r8, str.library_std_src_syspalwindows_stdio.rs8
mov edx, 0x1000
mov rcx, r9
call fcn.140049680
jmp 0x14002f0e4
lea r8, str.library_std_src_syspalwindows_stdio.rs8
mov edx, 1
mov rcx, r9
call fcn.140049680
jmp 0x14002f0e4
lea r8, [0x140057f40]
mov rcx, rdi
mov rdx, r13
call fcn.140049680
jmp 0x14002f0e4
call fcn.140049a80
jmp 0x14002f0e4
lea rcx, str.assertion_failed:_self.buf.init___self.buf.filled__n
lea r8, [0x140057e30]
mov edx, 0x36
call fcn.140049690
ud2
cli
cli
add ebp, ecx
add word [rax], ax
add byte [rdi], cl
movzx eax, byte [0x14006a270]
movzx eax, al
lea eax, [rbp - 8]
dec dword [rax - 0x75]
push rbp
rol byte [rax + rax*8 - 0x7ab7da8c], 1
je 0x140033e92
test rdx, rdx
lea rcx, str.formatter_error
invalid
add al, byte [rax]
int3
add byte [rax], al
add byte [rsi + rdx + 0x4c], dh
je 0x14003ed62
mov r8, qword [rsi + 0x198]
sal byte [rdi + rcx + 0x48], 0x8b
or eax, 0x2b4e0
add al, byte [rax]
lea ecx, [rsi + 8]
jp 0x1400406e2
and ecx, dword [rdi]
test dword [rbp], edi
add byte [rax], al
inc esi