Function at 0x1402598a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xf0], xmm6
mov qword [rbp + 0xe8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x38]
mov r8d, 2
xor r9d, r9d
call fcn.14024e340
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
cmp rax, 2
jne 0x140259900
mov qword [rsi], rbx
mov qword [rsi + 8], 0
jmp 0x14025a262
mov qword [rbp + 8], rsi
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
mov r15, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov r14, qword [rbp - 8]
mov rsi, qword [rbp]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rdi
mov qword [rbp + 0xd8], rsi
mov qword [rbp], rsi
mov qword [rbp - 0x28], 0
test rax, rax
je 0x14025994e
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 1
mov qword [rbp + 0x98], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 1
mov qword [rbp + 0x80], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 8], 0
test r15, r15
mov qword [rbp - 0x48], rbx
je 0x140259a37
test r14, r14
je 0x140259c6c
mov byte [rbp + 0xe7], 1
lea rcx, [rbp + 0xa0]
lea r8, [rbp + 0x88]
mov rdx, rdi
call fcn.14025a690
mov rax, qword [rbp + 0xa0]
cmp rax, 3
je 0x14025a2f6
mov rcx, qword [rbp + 0xa8]
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rcx
lea rcx, [rbp + 0xa0]
lea r8, [rbp + 0x70]
mov rdx, qword [rbp + 0xd8]
call fcn.14025a690
mov rax, qword [rbp + 0xa0]
cmp rax, 3
jne 0x140259f1f
mov rbx, qword [rbp + 0xa8]
jmp 0x14025a128
test r14, r14
je 0x14025a141
xorps xmm6, xmm6
mov r14, qword [sym.imp.KERNEL32.DLL_SleepEx]
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
jmp 0x140259a78
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1e0
cmp al, 0x23
jne 0x140259eb7
mov rsi, rbx
sub rsi, r15
jne 0x140259aa9
cmp rsi, 0x20
jae 0x140259aa9
mov r8d, 0x20
lea rcx, [rbp + 0x70]
mov rdx, rbx
call fcn.1403b9b60
mov rbx, qword [rbp + 0x70]
mov r15, qword [rbp + 0x80]
mov rsi, rbx
sub rsi, r15
mov r8, rsi
sub r8, r13
jb 0x14025a2df
mov rdi, qword [rbp + 0x78]
add rdi, r15
lea rcx, [rdi + r13]
xor edx, edx
call fcn.1403ac180
mov eax, 0xffffffff
cmp rsi, rax
mov r8d, 0xffffffff
cmovb r8, rsi
mov dword [rbp + 0x40], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
lea rax, [rbp + 0x40]
mov qword [rbp + 0xb8], rax
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xd8]
mov rdx, rdi
lea r9, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140259a60
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0x40], 1
jne 0x140259b30
mov r12d, dword [rbp + 0x44]
test r12d, r12d
jne 0x140259a68
mov eax, dword [rbp + 0x48]
cmp rsi, rax
mov r13, rax
cmova r13, rsi
test rax, rax
je 0x140259f0a
cmp rsi, rax
jb 0x14025a33e
sub r13, rax
add r15, rax
mov qword [rbp + 0x80], r15
mov rax, rbx
or rax, r15
jne 0x140259a78
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
lea rsi, [rbp + 0x10]
jmp 0x140259bae
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1e0
cmp al, 0x23
jne 0x140259eb7
mov dword [rbp + 0x10], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], rsi
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xd8]
lea rdx, [rbp + 0x40]
mov r8d, 0x20
lea r9, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140259b96
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0x10], 1
jne 0x140259c00
mov r12d, dword [rbp + 0x14]
test r12d, r12d
jne 0x140259b9e
mov esi, dword [rbp + 0x18]
test rsi, rsi
je 0x140259f0a
cmp esi, 0x21
jae 0x14025a366
lea rcx, [rbp + 0x70]
xor edx, edx
mov r8, rsi
call fcn.1403b9b60
mov rbx, qword [rbp + 0x70]
mov r15, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x78]
add rcx, r15
lea rdx, [rbp + 0x40]
mov r8, rsi
call fcn.1403abad0
add r15, rsi
mov qword [rbp + 0x80], r15
jmp 0x140259a78
mov qword [rbp + 0xd8], rdi
xorps xmm6, xmm6
mov r13, qword [sym.imp.KERNEL32.DLL_SleepEx]
xor r15d, r15d
xor ebx, ebx
xor edi, edi
jmp 0x140259ca8
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1e0
cmp al, 0x23
jne 0x140259efe
mov r14, r15
sub r14, rbx
jne 0x140259cdf
cmp r14, 0x20
jae 0x140259cdf
mov r8d, 0x20
lea rcx, [rbp + 0x88]
mov rdx, r15
call fcn.1403b9b60
mov r15, qword [rbp + 0x88]
mov rbx, qword [rbp + 0x98]
mov r14, r15
sub r14, rbx
mov r8, r14
sub r8, rdi
jb 0x14025a2c8
mov rsi, qword [rbp + 0x90]
add rsi, rbx
lea rcx, [rsi + rdi]
xor edx, edx
call fcn.1403ac180
mov eax, 0xffffffff
cmp r14, rax
mov r8d, 0xffffffff
cmovb r8, r14
mov dword [rbp + 0x40], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
lea rax, [rbp + 0x40]
mov qword [rbp + 0xb8], rax
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xd8]
mov rdx, rsi
lea r9, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140259c90
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0x40], 1
jne 0x140259d70
mov r12d, dword [rbp + 0x44]
test r12d, r12d
jne 0x140259c98
mov eax, dword [rbp + 0x48]
cmp r14, rax
mov rdi, rax
cmova rdi, r14
test rax, rax
je 0x140259f0a
cmp r14, rax
jb 0x14025a352
sub rdi, rax
add rbx, rax
mov qword [rbp + 0x98], rbx
mov rax, r15
or rax, rbx
jne 0x140259ca8
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
mov rsi, qword [rbp + 0xd8]
lea rbx, [rbp + 0x10]
jmp 0x140259df5
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1e0
cmp al, 0x23
jne 0x14025a27d
mov dword [rbp + 0x10], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], rbx
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea rdx, [rbp + 0x40]
mov r8d, 0x20
lea r9, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140259ddd
nop
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0x10], 1
jne 0x140259e40
mov r12d, dword [rbp + 0x14]
test r12d, r12d
jne 0x140259de5
mov r14d, dword [rbp + 0x18]
test r14, r14
je 0x140259f11
cmp r14d, 0x21
jae 0x14025a37c
lea rcx, [rbp + 0x88]
xor edx, edx
mov r8, r14
call fcn.1403b9b60
mov r15, qword [rbp + 0x88]
mov rbx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x90]
add rcx, rbx
lea rdx, [rbp + 0x40]
mov r8, r14
call fcn.1403abad0
add rbx, r14
mov qword [rbp + 0x98], rbx
jmp 0x140259ca8
movzx eax, al
cmp eax, 0xb
je 0x140259f0a
shl r12, 0x20
or r12, 2
mov qword [rbp + 0xa0], r12
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ef56b]
lea r9, fcn.1402425d0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a390
movzx eax, al
cmp eax, 0xb
jne 0x14025a289
mov rsi, qword [rbp + 0xd8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14025a141
mov rcx, qword [rbp + 0xa8]
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x58]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rcx
lea r15, [rbp - 0x58]
mov rsi, qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
lea rdi, [rbp + 0xa0]
lea r12, [rbp + 0x40]
mov r13, qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
lea r14, [rbp + 0x10]
nop word cs:[rax + rax]
mov ecx, 2
mov rdx, r15
xor r8d, r8d
mov r9d, 0xffffffff
call rsi
cmp eax, 1
je 0x140259ff0
test eax, eax
jne 0x14025a110
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x14025a08c
cmp eax, 1
jne 0x14025a073
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov dword [rbp + 0xa0], 0
mov r8, rdi
mov r9d, 1
call r13
test eax, eax
je 0x14025a0cb
mov eax, dword [rbp + 0xa0]
jmp 0x14025a077
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14025a049
cmp eax, 1
jne 0x14025a02c
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x60]
mov dword [rbp + 0xa0], 0
mov r8, rdi
mov r9d, 1
call r13
test eax, eax
je 0x14025a0af
mov eax, dword [rbp + 0xa0]
jmp 0x14025a030
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], 0
mov rcx, qword [rbp + 0x68]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14025a0f7
mov rcx, rdi
mov rdx, r12
call fcn.14025a910
cmp byte [rbp + 0xa0], 0
jne 0x14025a0ee
test byte [rbp + 0xa1], 1
jne 0x140259f80
jmp 0x14025a0f7
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x38]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14025a102
mov rcx, rdi
mov rdx, r14
call fcn.14025a910
cmp byte [rbp + 0xa0], 0
jne 0x14025a0ee
test byte [rbp + 0xa1], 1
jne 0x140259f80
jmp 0x14025a102
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
je 0x14025a0e3
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x14025a030
jmp 0x14025a117
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
je 0x14025a0ea
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x14025a077
jmp 0x14025a117
xor eax, eax
jmp 0x14025a030
xor eax, eax
jmp 0x14025a077
mov rbx, qword [rbp + 0xa8]
jmp 0x14025a11f
lea rcx, [rbp + 0x10]
call fcn.14025aa30
jmp 0x14025a10b
lea rcx, [rbp + 0x40]
call fcn.14025aa30
mov rbx, rax
jmp 0x14025a11f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rcx, [rbp + 0x40]
call fcn.14025a7a0
mov byte [rbp + 0xe7], 0
lea rcx, [rbp + 0x10]
call fcn.14025a7a0
test rbx, rbx
jne 0x14025a30a
mov qword [rbp - 0x28], 0
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x14025a1be
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 8]
mov qword [rcx], rax
mov qword [rcx + 8], 0
cmp qword [rbp + 0x70], 0
je 0x14025a195
mov r8, qword [rbp + 0x78]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
cmp qword [rbp + 0x88], 0
je 0x14025a1b5
mov r8, qword [rbp + 0x90]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rbx, qword [rbp - 0x30]
jmp 0x14025a251
mov dword [rbp + 0xa0], 0
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x14025a15f
mov eax, dword [rbp + 0xa0]
mov rcx, qword [rbp + 0x98]
mov qword [rbp + 0xb0], rcx
movups xmm0, xmmword [rbp + 0x88]
movaps xmmword [rbp + 0xa0], xmm0
mov rcx, qword [rbp + 0x80]
mov qword [rbp + 0xc8], rcx
movups xmm1, xmmword [rbp + 0x70]
movups xmmword [rbp + 0xb8], xmm1
mov rdx, qword [rbp + 8]
movups xmmword [rdx], xmm0
mov rcx, qword [rbp + 0xc0]
mov qword [rdx + 0x20], rcx
mov rcx, qword [rbp + 0xc8]
mov qword [rdx + 0x28], rcx
mov rcx, qword [rbp + 0xb0]
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbp + 0xb8]
mov qword [rdx + 0x18], rcx
mov dword [rdx + 0x30], eax
mov rbx, qword [rbp - 0x40]
mov rsi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rdi
call rsi
mov rcx, rbx
call rsi
movaps xmm6, xmmword [rbp + 0xf0]
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx eax, al
cmp eax, 0xb
je 0x140259f11
shl r12, 0x20
or r12, 2
mov qword [rbp + 0xa0], r12
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ef56b]
lea r9, fcn.1402425d0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a390
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdi
mov rdx, r14
call fcn.1403af930
jmp 0x14025a390
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r13
mov rdx, rsi
call fcn.1403af930
jmp 0x14025a390
mov rbx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0xa0], rbx
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ef56b]
lea r9, fcn.1402425d0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a390
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r13
mov rdx, rsi
call fcn.1403af940
jmp 0x14025a390
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdi
mov rdx, r14
call fcn.1403af940
jmp 0x14025a390
lea r8, [0x1404c0a30]
mov edx, 0x20
mov rcx, rsi
call fcn.1403af940
jmp 0x14025a390
lea r8, [0x1404c0a30]
mov edx, 0x20
mov rcx, r14
call fcn.1403af940
ud2