Function at 0x1400010fc
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x110], xmm6
mov qword [rbp + 0x108], 0xfffffffffffffffe
mov rsi, rcx
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp - 0x40]
and qword [rbp - 0x40], 0
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
test rax, rax
je 0x140001163
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x30]
and qword [rbp - 0x30], 0
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp - 0x20]
and qword [rbp - 0x20], 0
push 1
pop r8
mov qword [rbp + 0x40], r8
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x98], r8
movups xmmword [rbp + 0xa0], xmm0
mov rdx, qword [rbp - 0x18]
test rcx, rcx
mov qword [rbp + 8], rsi
je 0x140001240
test rax, rax
je 0x140001479
mov qword [rbp + 0xf8], rdx
mov byte [rbp + 0x107], 1
lea rcx, [rbp + 0xb0]
lea r8, [rbp + 0x40]
mov rdx, qword [rbp + 0xf0]
call fcn.1400abaa0
mov rax, qword [rbp + 0xb0]
cmp rax, 3
je 0x140001e91
lea rcx, [rbp + 0xb0]
mov rdx, qword [rcx + 8]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdx
lea r8, [rbp + 0x98]
mov rdx, qword [rbp + 0xf8]
call fcn.1400abaa0
mov rax, qword [rbp + 0xb0]
cmp rax, 3
jne 0x140001994
mov r13, qword [rbp + 0xb8]
jmp 0x140001b7c
test rax, rax
je 0x140001b95
mov qword [rbp + 0xf8], rdx
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 + 0xe8], rax
mov qword [rbp + 0xf0], r8
cmp r14, rsi
jne 0x1400012a6
lea rcx, [rbp + 0x98]
mov rdx, rsi
push 0x20
pop r8
call fcn.140111aa0
mov r14, qword [rbp + 0xa8]
mov rax, qword [rbp + 0x98]
mov rsi, qword [rbp + 0xa0]
jmp 0x1400012ad
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xf0], 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 + 0x60], 0
movaps xmmword [rbp + 0xb0], xmm6
and qword [rbp + 0xc0], 0
lea rax, [rbp + 0x60]
mov qword [rbp + 0xc8], rax
lea rax, [0x1400a0880]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xf8]
lea r9, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140001329
mov ecx, r15d
mov edx, r12d
call rbx
cmp dword [rbp + 0x60], 0
je 0x140001312
mov edi, dword [rbp + 0x64]
test edi, edi
jne 0x140001331
jmp 0x140001345
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.14008ff10
cmp al, 0x23
je 0x140001277
jmp 0x140001973
mov ecx, dword [rbp + 0x68]
mov rax, qword [rbp + 0xe8]
cmp rax, rcx
cmovbe rax, rcx
test rcx, rcx
je 0x140001dfb
cmp rax, r13
ja 0x140001f1c
cmp rcx, r13
mov r8, qword [rbp + 0xf0]
ja 0x140001f0b
sub rax, rcx
mov qword [rbp + 0xe8], rax
add r14, rcx
mov qword [rbp + 0xa8], r14
mov rax, rsi
or rax, r14
jne 0x140001270
movaps xmmword [rbp + 0x70], xmm6
movaps xmmword [rbp + 0x60], xmm6
mov rsi, qword [rbp + 0xf8]
lea r14, [rbp + 0x10]
and dword [rbp + 0x10], 0
movaps xmmword [rbp + 0xb0], xmm6
and qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], r14
lea rax, [0x1400a0880]
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea rdx, [rbp + 0x60]
push 0x20
pop r8
lea r9, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140001404
mov ecx, r15d
mov edx, r12d
call rbx
cmp dword [rbp + 0x10], 0
je 0x1400013ed
mov edi, dword [rbp + 0x14]
test edi, edi
jne 0x14000140c
jmp 0x14000141c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call fcn.14008ff10
cmp al, 0x23
je 0x1400013ab
jmp 0x140001db6
mov edi, dword [rbp + 0x18]
test rdi, rdi
je 0x140001986
cmp edi, 0x21
jae 0x140001f30
lea rcx, [rbp + 0x98]
xor edx, edx
mov r8, rdi
call fcn.140111aa0
mov r13, qword [rbp + 0x98]
mov rsi, qword [rbp + 0xa0]
mov r14, qword [rbp + 0xa8]
lea rcx, [r14 + r13]
lea rdx, [rbp + 0x60]
mov r8, rdi
call fcn.1400ffbc0
add r14, rdi
mov r8, r13
mov qword [rbp + 0xa8], r14
jmp 0x140001270
xor r15d, r15d
lea r14, [rbp + 0x60]
xorps xmm6, xmm6
lea r13, [0x140002288]
xor r12d, r12d
xor ebx, ebx
cmp r12, r15
jne 0x1400014ac
lea rcx, [rbp + 0x40]
mov rdx, r15
push 0x20
pop r8
call fcn.140111aa0
mov r15, qword [rbp + 0x48]
mov r12, qword [rbp + 0x50]
mov rax, qword [rbp + 0x40]
add rax, r12
mov rcx, r15
sub rcx, r12
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rcx
and qword [rbp + 0x70], 0
mov qword [rbp + 0x78], rbx
mov rcx, qword [rbp + 0xf0]
mov rdx, r14
call fcn.140099eb0
mov rdi, rax
test rax, rax
je 0x1400015a0
mov esi, edi
and esi, 3
movsxd rax, dword [r13 + rsi*4]
add rax, r13
jmp rax
mov al, byte [rdi + 0x10]
jmp 0x140001530
mov rcx, rdi
shr rcx, 0x20
call fcn.14008ff10
jmp 0x140001530
mov al, byte [rdi + 0xf]
cmp al, 0x23
jne 0x140001e07
lea rax, [rsi - 2]
cmp rax, 2
jb 0x14000148f
test rsi, rsi
je 0x14000148f
mov rax, rdi
dec rax
mov qword [rbp + 0xf8], rax
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0xe8], rax
call qword [rax]
mov rax, qword [rbp + 0xe8]
cmp qword [rax + 8], 0
je 0x14000158c
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
call fcn.14002a040
mov rcx, qword [rbp + 0xf8]
push 8
pop rdx
call fcn.14002a040
jmp 0x14000148f
mov rsi, qword [rbp + 0x70]
test rsi, rsi
je 0x14000196a
mov rdx, qword [rbp + 0x78]
mov rbx, rdx
sub rbx, rsi
jb 0x140001e66
mov rax, qword [rbp + 0x68]
cmp rdx, rax
ja 0x140001e4f
cmp rsi, rax
ja 0x140001e38
add rsi, r12
mov qword [rbp + 0x50], rsi
mov rax, r15
or rax, rsi
jne 0x14000184a
movaps xmmword [rbp + 0xc0], xmm6
movaps xmmword [rbp + 0xb0], xmm6
lea rcx, [rbp + 0x10]
mov rdx, qword [rbp + 0xf0]
lea r8, [rbp + 0xb0]
call fcn.14009a1e0
cmp qword [rbp + 0x10], 0
je case.default.0x14000162d
mov rdi, qword [rbp + 0x18]
mov esi, edi
and esi, 3
lea rcx, [0x14000233c]
movsxd rax, dword [rcx + rsi*4]
add rax, rcx
jmp rax
mov al, byte [rdi + 0x10]
jmp 0x14000166b
cmp al, 0x23
jne 0x140001e07
lea rax, [rsi - 2]
cmp rax, 2
jb 0x1400016cc
test rsi, rsi
je 0x1400016cc
lea rax, [rdi - 1]
mov qword [rbp + 0xf8], rax
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0xe8], rax
call qword [rax]
mov rax, qword [rbp + 0xe8]
cmp qword [rax + 8], 0
je 0x1400016bd
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x58]
call fcn.14002a040
mov rcx, qword [rbp + 0xf8]
push 8
pop rdx
call fcn.14002a040
lea rcx, [rbp + 0x10]
mov rdx, qword [rbp + 0xf0]
lea r8, [rbp + 0xb0]
call fcn.14009a1e0
jmp 0x14000160b
mov r12, qword [rbp + 0x18]
test r12, r12
je 0x14000196a
cmp r12, 0x21
jae 0x140001e7a
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8, r12
call fcn.140111aa0
mov r15, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x40]
add rcx, rsi
lea rdx, [rbp + 0xb0]
mov r8, r12
call fcn.1400ffbc0
add rsi, r12
mov qword [rbp + 0x50], rsi
mov r12, rsi
jmp 0x14000148f
mov rsi, qword [rbp + 0xf0]
jmp 0x140001986
movzx eax, al
cmp eax, 0xb
mov rsi, qword [rbp + 0xf8]
jne 0x140001dc2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b95
lea rsi, [rbp + 0xb0]
mov rcx, qword [rsi + 8]
movups xmm0, xmmword [rsi + 0x20]
lea rdi, [rbp + 0x60]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm0
mov qword [rdi], rax
mov qword [rdi + 8], rcx
lea rax, [rbp + 0x10]
mov rax, qword [rax + 0x28]
mov rcx, qword [rdi + 0x28]
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 0x140001a40
test eax, eax
jne 0x140001b62
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x140001ad7
cmp eax, 1
jne 0x140001ac1
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
and dword [rbp + 0xb0], 0
mov r8, rsi
push 1
pop r9
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140001b1a
mov eax, dword [rbp + 0xb0]
jmp 0x140001ac5
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x140001a97
cmp eax, 1
jne 0x140001a7d
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x80]
and dword [rbp + 0xb0], 0
mov r8, rsi
push 1
pop r9
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140001afb
mov eax, dword [rbp + 0xb0]
jmp 0x140001a81
mov rax, qword [rbp + 0x68]
and qword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x78]
add qword [rcx + 0x10], rax
test rax, rax
je 0x140001b54
mov rcx, rsi
mov rdx, rdi
call fcn.1400abd40
cmp byte [rbp + 0xb0], 0
jne 0x140001b40
test byte [rbp + 0xb1], 1
jne 0x1400019e0
jmp 0x140001b54
mov rax, qword [rbp + 0x18]
and qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x28]
add qword [rcx + 0x10], rax
test rax, rax
je 0x140001b49
mov rcx, rsi
lea rdx, [rbp + 0x10]
call fcn.1400abd40
cmp byte [rbp + 0xb0], 0
jne 0x140001b40
test byte [rbp + 0xb1], 1
jne 0x1400019e0
jmp 0x140001b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140001b35
mov r13d, eax
mov eax, 0
cmp r13d, 0x26
je 0x140001a81
jmp 0x140001b6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140001b3c
mov r13d, eax
mov eax, 0
cmp r13d, 0x26
je 0x140001ac5
jmp 0x140001b6b
xor eax, eax
jmp 0x140001a81
xor eax, eax
jmp 0x140001ac5
mov r13, qword [rbp + 0xb8]
jmp 0x140001b73
lea rcx, [rbp + 0x60]
call fcn.1400abe60
jmp 0x140001b5d
lea rcx, [rbp + 0x10]
call fcn.1400abe60
mov r13, rax
jmp 0x140001b73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
lea rcx, [rbp + 0x60]
call fcn.1400abbc0
mov byte [rbp + 0x107], 0
lea rcx, [rbp + 0x10]
call fcn.1400abbc0
test r13, r13
jne 0x140001ea5
mov rsi, qword [rbp - 0x10]
push 0xffffffffffffffff
pop rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001c49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rbp + 8]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xb8], rax
and qword [rbp + 0xb0], 0
cmp qword [rbp + 0xa0], 0
je 0x140001be7
mov rcx, qword [rbp + 0x98]
push 1
pop rdx
call fcn.14002a040
cmp qword [rbp + 0x48], 0
je 0x140001bfa
mov rcx, qword [rbp + 0x40]
push 1
pop rdx
call fcn.14002a040
mov rdi, qword [rbp - 8]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call rbx
mov rcx, rdi
call rbx
lea rcx, [rbp + 0xb8]
call fcn.14003e182
mov rsi, qword [r15 + 0x40]
mov rdi, qword [r15 + 0x48]
mov rcx, rsi
mov rdx, rdi
call fcn.140007aa0
movaps xmm6, xmmword [rbp + 0x110]
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rbp + 0xb0]
and dword [rdx], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov r15, qword [rbp + 8]
je 0x140001dab
mov eax, dword [rbp + 0xb0]
mov rcx, qword [rbp + 0x50]
mov qword [rbp + 0x70], rcx
movups xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rbp + 0x98]
movups xmmword [rbp + 0x78], xmm1
mov rcx, qword [rbp + 0xa8]
mov qword [rbp + 0x88], rcx
movaps xmmword [rbp + 0xb0], xmm0
mov rcx, qword [rbp + 0x70]
mov qword [rbp + 0xc0], rcx
mov rcx, qword [rbp + 0x78]
mov qword [rbp + 0xc8], rcx
mov rcx, qword [rbp + 0x80]
mov qword [rbp + 0xd0], rcx
mov rcx, qword [rbp + 0x88]
mov qword [rbp + 0xd8], rcx
mov dword [rbp + 0xe0], eax
mov rbx, qword [rbp + 0xb0]
mov rdi, qword [rbp - 8]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call r14
mov rcx, rdi
call r14
test rbx, rbx
je 0x140001c0f
mov rax, qword [rbp + 0xe0]
lea rdx, [rbp - 0x40]
mov qword [rdx + 0x30], rax
movaps xmm0, xmmword [rbp + 0xb0]
movaps xmm1, xmmword [rbp + 0xc0]
movaps xmm2, xmmword [rbp + 0xd0]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rsi, [rbp + 0x98]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rcx, rsi
call fcn.1400090db
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1400090db
mov rax, qword [rsi + 0x10]
lea r9, [rbp + 0x60]
mov qword [r9 + 0x10], rax
movups xmm0, xmmword [rsi]
movaps xmmword [r9], xmm0
mov rsi, qword [r15 + 0x40]
mov rdi, qword [r15 + 0x48]
lea rbx, [rbp + 0x10]
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.1400048e2
cmp qword [rbx], 0
jne 0x140001ed3
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
call fcn.1400c2022
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
call fcn.1400c2022
jmp 0x140001c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001bb7
movzx eax, al
cmp eax, 0xb
je 0x140001986
shl rdi, 0x20
or rdi, 2
lea r8, [rbp + 0xb0]
mov qword [r8], rdi
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14014260b]
lea r9, fcn.1400972f0
push 0x2b
pop rdx
call fcn.14010ee60
jmp 0x140001f42
mov rsi, qword [rbp + 0xf8]
jmp 0x140001986
lea r8, [rbp + 0xb0]
mov qword [r8], rdi
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14014260b]
lea r9, fcn.1400972f0
push 0x2b
pop rdx
call fcn.14010ee60
jmp 0x140001f42
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
mov rdx, rax
call fcn.14010eb50
jmp 0x140001f42
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdx
mov rdx, rax
call fcn.14010eb50
jmp 0x140001f42
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.14010ede0
jmp 0x140001f42
lea r8, [0x14013b560]
push 0x20
pop rdx
mov rcx, r12
call fcn.14010eb50
jmp 0x140001f42
mov r13, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp + 0xb0]
mov qword [r8], r13
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14014260b]
lea r9, fcn.1400972f0
push 0x2b
pop rdx
call fcn.14010ee60
jmp 0x140001f42
mov rax, qword [rbp + 0x20]
lea r8, [rbp + 0x60]
mov qword [r8 + 0x10], rax
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [r8], xmm0
lea rax, str.srcplatformwindows.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14014260b]
lea r9, [0x1401158c0]
push 0x2b
pop rdx
call fcn.14010ee60
ud2
lea r8, str.library_std_srcio_readbuf.rs
mov rdx, r13
call fcn.14010eb50
jmp 0x140001f42
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rax
mov rdx, r13
call fcn.14010eb50
jmp 0x140001f42
lea r8, [0x14013b560]
push 0x20
pop rdx
mov rcx, rdi
call fcn.14010eb50
ud2