Function at 0x1400011a8
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x100], xmm6
mov qword [rbp + 0xf8], 0xfffffffffffffffe
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
mov qword [rbp], rcx
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm1
mov rax, qword [rbp - 0x30]
and qword [rbp - 0x30], 0
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x40], xmm0
test rax, rax
je 0x140001210
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp + 0x38], 0
push 1
pop r9
mov qword [rbp + 0x40], r9
and qword [rbp + 0x48], 0
and qword [rbp + 0xc0], 0
and qword [rbp + 0xd0], 0
mov rcx, qword [rbp - 0x20]
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp - 0x10]
and qword [rbp - 0x10], 0
xor edx, edx
mov qword [rbp + 0xc8], r9
mov r8, qword [rbp - 8]
cmp rcx, rdx
je 0x1400012f7
test rax, rax
je 0x14000152e
mov qword [rbp + 0xe8], r8
mov byte [rbp + 0xf6], 1
lea rcx, [rbp + 0x80]
lea r8, [rbp + 0x38]
mov rdx, qword [rbp + 0xe0]
call fcn.1400d8730
mov rax, qword [rbp + 0x80]
cmp rax, 3
je 0x140001cde
lea rcx, [rbp + 0x80]
mov rdx, qword [rcx + 8]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rbp + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rdx
lea r8, [rbp + 0xc0]
mov rdx, qword [rbp + 0xe8]
call fcn.1400d8730
mov rax, qword [rbp + 0x80]
cmp rax, 3
jne 0x140001808
mov r13, qword [rbp + 0x88]
jmp 0x1400019ea
test rax, rax
je 0x140001a03
mov qword [rbp + 0xe8], r8
xor esi, esi
xorps xmm6, xmm6
push 0xffffffffffffffff
pop r15
push 1
pop r12
mov rbx, qword [sym.imp.KERNEL32.dll_SleepEx]
xor r14d, r14d
xor eax, eax
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], r9
cmp r14, rsi
jne 0x14000135d
lea rcx, [rbp + 0xc0]
mov rdx, rsi
push 0x20
pop r8
call fcn.14012ec50
mov r14, qword [rbp + 0xd0]
mov rsi, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc8]
jmp 0x140001364
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0xe0], rax
lea rdx, [rax + r14]
mov r13, rsi
sub r13, r14
mov eax, 0xffffffff
cmp r13, rax
mov r8d, 0xffffffff
cmovb r8, r13
and dword [rbp + 0x50], 0
movaps xmmword [rbp + 0x80], xmm6
and qword [rbp + 0x90], 0
lea rax, [rbp + 0x50]
mov qword [rbp + 0x98], rax
lea rax, [0x1400cd2e0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xe8]
lea r9, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400013e0
mov ecx, r15d
mov edx, r12d
call rbx
cmp dword [rbp + 0x50], 0
je 0x1400013c9
mov edi, dword [rbp + 0x54]
test edi, edi
jne 0x1400013e7
jmp 0x1400013fb
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.1400bce30
cmp al, 0x23
je 0x14000132e
jmp 0x1400017e7
mov ecx, dword [rbp + 0x58]
mov rax, qword [rbp + 0xd8]
cmp rax, rcx
cmovbe rax, rcx
test rcx, rcx
je 0x140001c48
cmp rax, r13
ja 0x140001d69
cmp rcx, r13
mov r9, qword [rbp + 0xe0]
ja 0x140001d58
sub rax, rcx
mov qword [rbp + 0xd8], rax
add r14, rcx
mov qword [rbp + 0xd0], r14
mov rax, rsi
or rax, r14
jne 0x140001327
movaps xmmword [rbp + 0x60], xmm6
movaps xmmword [rbp + 0x50], xmm6
mov rsi, qword [rbp + 0xe8]
lea r14, [rbp + 8]
and dword [rbp + 8], 0
movaps xmmword [rbp + 0x80], xmm6
and qword [rbp + 0x90], 0
mov qword [rbp + 0x98], r14
lea rax, [0x1400cd2e0]
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea rdx, [rbp + 0x50]
push 0x20
pop r8
lea r9, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400014ba
mov ecx, r15d
mov edx, r12d
call rbx
cmp dword [rbp + 8], 0
je 0x1400014a3
mov edi, dword [rbp + 0xc]
test edi, edi
jne 0x1400014c1
jmp 0x1400014d1
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.1400bce30
cmp al, 0x23
je 0x140001461
jmp 0x140001c03
mov edi, dword [rbp + 0x10]
test rdi, rdi
je 0x1400017fa
cmp edi, 0x21
jae 0x140001d7d
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.14012ec50
mov rsi, qword [rbp + 0xc0]
mov r13, qword [rbp + 0xc8]
mov r14, qword [rbp + 0xd0]
lea rcx, [r14 + r13]
lea rdx, [rbp + 0x50]
mov r8, rdi
call fcn.14011e5a0
add r14, rdi
mov r9, r13
mov qword [rbp + 0xd0], r14
jmp 0x140001327
xor r13d, r13d
lea rbx, [rbp + 0x50]
xorps xmm6, xmm6
lea rdi, [0x14000220c]
xor r15d, r15d
xor esi, esi
cmp r15, r13
jne 0x140001561
lea rcx, [rbp + 0x38]
mov rdx, r13
push 0x20
pop r8
call fcn.14012ec50
mov r13, qword [rbp + 0x38]
mov r15, qword [rbp + 0x48]
mov rax, qword [rbp + 0x40]
add rax, r15
mov rcx, r13
sub rcx, r15
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rcx
and qword [rbp + 0x60], 0
mov qword [rbp + 0x68], rsi
mov rcx, qword [rbp + 0xe0]
mov rdx, rbx
call fcn.1400c6890
mov rcx, rax
test rax, rax
je 0x14000164c
mov r14d, ecx
and r14d, 3
movsxd rax, dword [rdi + r14*4]
add rax, rdi
jmp rax
mov r12, rcx
mov al, byte [rcx + 0x10]
jmp 0x1400015be
cmp al, 0x23
jne 0x140001c54
cmp r14d, 1
jne 0x140001544
jmp 0x1400015f7
mov r12, rcx
cmp byte [rcx + 0xf], 0x23
jne 0x140001c54
mov rax, r12
dec rax
mov qword [rbp + 0xd8], rax
mov rcx, qword [r12 - 1]
mov qword [rbp + 0xe8], r12
mov rax, qword [r12 + 7]
call qword [rax]
mov rax, qword [rbp + 0xe8]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov r14, qword [rbp + 0xd8]
je 0x14000163c
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.140040300
mov rcx, r14
push 8
pop rdx
call fcn.140040300
jmp 0x140001544
mov r14, qword [rbp + 0x60]
test r14, r14
je 0x1400017de
mov rdx, qword [rbp + 0x68]
mov rsi, rdx
sub rsi, r14
jb 0x140001cb3
mov rax, qword [rbp + 0x58]
cmp rdx, rax
ja 0x140001c9c
cmp r14, rax
ja 0x140001c85
add r14, r15
mov qword [rbp + 0x48], r14
mov rax, r13
or rax, r14
jne 0x1400017d6
movaps xmmword [rbp + 0x90], xmm6
movaps xmmword [rbp + 0x80], xmm6
lea rcx, [rbp + 8]
mov rdx, qword [rbp + 0xe0]
lea r8, [rbp + 0x80]
call fcn.1400c6a00
cmp qword [rbp + 8], 0
je case.default.0x1400016db
mov rdx, qword [rbp + 0x10]
mov r14d, edx
and r14d, 3
lea rcx, [0x14000221c]
movsxd rax, dword [rcx + r14*4]
add rax, rcx
jmp rax
mov r12, rdx
mov al, byte [rdx + 0x10]
jmp 0x1400016f4
cmp al, 0x23
jne 0x140001c54
cmp r14d, 1
je 0x140001725
jmp 0x140001774
lea rax, [r12 - 1]
mov qword [rbp + 0xd8], rax
mov rcx, qword [r12 - 1]
mov qword [rbp + 0xe8], r12
mov rax, qword [r12 + 7]
call qword [rax]
mov rax, qword [rbp + 0xe8]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov r14, qword [rbp + 0xd8]
je 0x140001769
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.140040300
mov rcx, r14
push 8
pop rdx
call fcn.140040300
lea rcx, [rbp + 8]
mov rdx, qword [rbp + 0xe0]
lea r8, [rbp + 0x80]
call fcn.1400c6a00
jmp 0x1400016b7
mov r15, qword [rbp + 0x10]
test r15, r15
je 0x1400017de
cmp r15, 0x21
jae 0x140001cc7
lea rcx, [rbp + 0x38]
xor edx, edx
mov r8, r15
call fcn.14012ec50
mov r13, qword [rbp + 0x38]
mov r14, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
add rcx, r14
lea rdx, [rbp + 0x80]
mov r8, r15
call fcn.14011e5a0
add r14, r15
mov qword [rbp + 0x48], r14
mov r15, r14
jmp 0x140001544
mov rsi, qword [rbp + 0xe0]
jmp 0x1400017fa
movzx eax, al
cmp eax, 0xb
mov rsi, qword [rbp + 0xe8]
jne 0x140001c0f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a03
lea rsi, [rbp + 0x80]
mov rcx, qword [rsi + 8]
movups xmm0, xmmword [rsi + 0x10]
lea rdi, [rbp + 0x50]
movups xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x20], xmm0
mov qword [rdi], rax
mov qword [rdi + 8], rcx
lea rax, [rbp + 8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rdi + 0x18]
lea r14, [rbp - 0x50]
mov qword [r14], rax
mov qword [r14 + 8], rcx
push 2
pop r15
push 0xffffffffffffffff
pop r12
mov rbx, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, r15d
mov rdx, r14
xor r8d, r8d
mov r9d, r12d
call rbx
cmp eax, 1
je 0x1400018b4
test eax, eax
jne 0x1400019d1
mov rax, qword [rbp + 8]
test rax, rax
je 0x140001948
cmp eax, 1
jne 0x140001932
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x28]
and dword [rbp + 0x80], 0
mov r8, rsi
push 1
pop r9
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14000198a
mov eax, dword [rbp + 0x80]
jmp 0x140001936
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x140001908
cmp eax, 1
jne 0x1400018ee
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x70]
and dword [rbp + 0x80], 0
mov r8, rsi
push 1
pop r9
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14000196c
mov eax, dword [rbp + 0x80]
jmp 0x1400018f2
mov rax, qword [rbp + 0x58]
and qword [rbp + 0x50], 0
mov rcx, qword [rbp + 0x78]
add qword [rcx + 0x10], rax
test rax, rax
je 0x1400019c3
mov rcx, rsi
mov rdx, rdi
call fcn.1400d89b0
cmp byte [rbp + 0x80], 0
jne 0x1400019af
test byte [rbp + 0x81], 1
jne 0x140001854
jmp 0x1400019c3
mov rax, qword [rbp + 0x10]
and qword [rbp + 8], 0
mov rcx, qword [rbp + 0x30]
add qword [rcx + 0x10], rax
test rax, rax
je 0x1400019b8
mov rcx, rsi
lea rdx, [rbp + 8]
call fcn.1400d89b0
cmp byte [rbp + 0x80], 0
jne 0x1400019af
test byte [rbp + 0x81], 1
jne 0x140001854
jmp 0x1400019b8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x1400019a4
mov r13d, eax
mov eax, 0
cmp r13d, 0x26
je 0x1400018f2
jmp 0x1400019d9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x1400019ab
mov r13d, eax
mov eax, 0
cmp r13d, 0x26
je 0x140001936
jmp 0x1400019d9
xor eax, eax
jmp 0x1400018f2
xor eax, eax
jmp 0x140001936
mov r13, qword [rbp + 0x88]
jmp 0x1400019e1
lea rcx, [rbp + 0x50]
call fcn.1400d8ad0
jmp 0x1400019cc
lea rcx, [rbp + 8]
call fcn.1400d8ad0
mov r13, rax
jmp 0x1400019e1
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
lea rcx, [rbp + 0x50]
call fcn.1400d8840
mov byte [rbp + 0xf6], 0
lea rcx, [rbp + 8]
call fcn.1400d8840
test r13, r13
jne 0x140001cf2
mov rsi, qword [rbp - 0x40]
push 0xffffffffffffffff
pop rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001aa9
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x80], rax
and qword [rbp + 0x88], 0
cmp qword [rbp + 0xc0], 0
je 0x140001a50
mov rcx, qword [rbp + 0xc8]
push 1
pop rdx
call fcn.140040300
cmp qword [rbp + 0x38], 0
je 0x140001a63
mov rcx, qword [rbp + 0x40]
push 1
pop rdx
call fcn.140040300
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call rdi
mov rcx, qword [rbp - 0x38]
call rdi
lea rcx, [rbp + 0x80]
call fcn.140077ed0
mov rcx, qword [rbp]
add rcx, 0x40
call fcn.14000ad2b
movaps xmm6, xmmword [rbp + 0x100]
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rbp + 0x80]
and dword [rdx], 0
mov rcx, rsi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
je 0x140001a1b
mov eax, dword [rbp + 0x80]
mov rcx, qword [rbp + 0x48]
mov qword [rbp + 0x60], rcx
movups xmm0, xmmword [rbp + 0x38]
movaps xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rbp + 0x68], xmm1
mov rcx, qword [rbp + 0xd0]
mov qword [rbp + 0x78], rcx
movaps xmmword [rbp + 0x80], xmm0
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x90], rcx
mov rcx, qword [rbp + 0x68]
mov qword [rbp + 0x98], rcx
mov rcx, qword [rbp + 0x70]
mov qword [rbp + 0xa0], rcx
mov rcx, qword [rbp + 0x78]
mov qword [rbp + 0xa8], rcx
mov dword [rbp + 0xb0], eax
mov rdi, qword [rbp + 0x88]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call rbx
mov rcx, qword [rbp - 0x38]
call rbx
test rdi, rdi
je 0x140001a75
mov rax, qword [rbp + 0xb0]
lea rdx, [rbp - 0x40]
mov qword [rdx + 0x30], rax
movaps xmm0, xmmword [rbp + 0x80]
movaps xmm1, xmmword [rbp + 0x90]
movaps xmm2, xmmword [rbp + 0xa0]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rcx, [rbp + 0xc0]
and qword [rcx], 0
mov qword [rcx + 8], 1
and qword [rcx + 0x10], 0
mov byte [rbp + 0xf7], 1
call fcn.14000f804
lea rdx, [rbp - 0x28]
mov byte [rbp + 0xf7], 1
lea rcx, [rbp + 0xc0]
call fcn.14000f804
mov rax, qword [rbp + 0xd0]
lea r9, [rbp + 0x50]
mov qword [r9 + 0x10], rax
movups xmm0, xmmword [rbp + 0xc0]
movaps xmmword [r9], xmm0
mov rax, qword [rbp]
mov rdx, qword [rax + 0x40]
mov r8, qword [rax + 0x48]
mov byte [rbp + 0xf7], 0
lea rcx, [rbp + 8]
call fcn.140004593
cmp qword [rbp + 0x10], 0
jne 0x140001d20
lea rcx, [rbp - 0x40]
call fcn.140008ac8
jmp 0x140001a81
movzx eax, al
cmp eax, 0xb
je 0x1400017fa
shl rdi, 0x20
or rdi, 2
lea r8, [rbp + 0x80]
mov qword [r8], rdi
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140159133]
lea r9, fcn.1400c4390
push 0x2b
pop rdx
call fcn.14012bbe0
jmp 0x140001d8f
mov rsi, qword [rbp + 0xe8]
jmp 0x1400017fa
lea r8, [rbp + 0x80]
mov qword [r8], r12
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140159133]
lea r9, fcn.1400c4390
push 0x2b
pop rdx
call fcn.14012bbe0
jmp 0x140001d8f
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r14
mov rdx, rax
call fcn.14012b9b0
jmp 0x140001d8f
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdx
mov rdx, rax
call fcn.14012b9b0
jmp 0x140001d8f
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r14
call fcn.14012bbd0
jmp 0x140001d8f
lea r8, [0x140152c30]
push 0x20
pop rdx
mov rcx, r15
call fcn.14012b9b0
jmp 0x140001d8f
mov r13, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp + 0x80]
mov qword [r8], r13
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140159133]
lea r9, fcn.1400c4390
push 0x2b
pop rdx
call fcn.14012bbe0
jmp 0x140001d8f
mov rax, qword [rbp + 0x18]
lea r8, [rbp + 0x50]
mov qword [r8 + 0x10], rax
movups xmm0, xmmword [rbp + 8]
movaps xmmword [r8], xmm0
lea rax, [0x1401337b0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140159133]
lea r9, fcn.140008aee
push 0x2b
pop rdx
call fcn.14012bbe0
jmp 0x140001d8f
lea r8, str.library_std_srcio_readbuf.rs
mov rdx, r13
call fcn.14012b9b0
jmp 0x140001d8f
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rax
mov rdx, r13
call fcn.14012b9b0
jmp 0x140001d8f
lea r8, [0x140152c30]
push 0x20
pop rdx
mov rcx, rdi
call fcn.14012b9b0
ud2