Function at 0x140259890
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.14024e330
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
cmp rax, 2
jne 0x1402598f0
mov qword [rsi], rbx
mov qword [rsi + 8], 0
jmp 0x14025a252
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 0x14025993e
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 0x140259a27
test r14, r14
je 0x140259c5c
mov byte [rbp + 0xe7], 1
lea rcx, [rbp + 0xa0]
lea r8, [rbp + 0x88]
mov rdx, rdi
call fcn.14025a680
mov rax, qword [rbp + 0xa0]
cmp rax, 3
je 0x14025a2e6
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.14025a680
mov rax, qword [rbp + 0xa0]
cmp rax, 3
jne 0x140259f0f
mov rbx, qword [rbp + 0xa8]
jmp 0x14025a118
test r14, r14
je 0x14025a131
xorps xmm6, xmm6
mov r14, qword [sym.imp.KERNEL32.DLL_SleepEx]
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
jmp 0x140259a68
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1d0
cmp al, 0x23
jne 0x140259ea7
mov rsi, rbx
sub rsi, r15
jne 0x140259a99
cmp rsi, 0x20
jae 0x140259a99
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 0x14025a2cf
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, [0x14024df20]
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 0x140259a50
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0x40], 1
jne 0x140259b20
mov r12d, dword [rbp + 0x44]
test r12d, r12d
jne 0x140259a58
mov eax, dword [rbp + 0x48]
cmp rsi, rax
mov r13, rax
cmova r13, rsi
test rax, rax
je 0x140259efa
cmp rsi, rax
jb 0x14025a32e
sub r13, rax
add r15, rax
mov qword [rbp + 0x80], r15
mov rax, rbx
or rax, r15
jne 0x140259a68
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
lea rsi, [rbp + 0x10]
jmp 0x140259b9e
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1d0
cmp al, 0x23
jne 0x140259ea7
mov dword [rbp + 0x10], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], rsi
lea rax, [0x14024df20]
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 0x140259b86
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0x10], 1
jne 0x140259bf0
mov r12d, dword [rbp + 0x14]
test r12d, r12d
jne 0x140259b8e
mov esi, dword [rbp + 0x18]
test rsi, rsi
je 0x140259efa
cmp esi, 0x21
jae 0x14025a356
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 0x140259a68
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 0x140259c98
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1d0
cmp al, 0x23
jne 0x140259eee
mov r14, r15
sub r14, rbx
jne 0x140259ccf
cmp r14, 0x20
jae 0x140259ccf
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 0x14025a2b8
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, [0x14024df20]
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 0x140259c80
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0x40], 1
jne 0x140259d60
mov r12d, dword [rbp + 0x44]
test r12d, r12d
jne 0x140259c88
mov eax, dword [rbp + 0x48]
cmp r14, rax
mov rdi, rax
cmova rdi, r14
test rax, rax
je 0x140259efa
cmp r14, rax
jb 0x14025a342
sub rdi, rax
add rbx, rax
mov qword [rbp + 0x98], rbx
mov rax, r15
or rax, rbx
jne 0x140259c98
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
mov rsi, qword [rbp + 0xd8]
lea rbx, [rbp + 0x10]
jmp 0x140259de5
call sub.KERNEL32.DLL_GetLastError
mov r12d, eax
mov ecx, r12d
call fcn.14023d1d0
cmp al, 0x23
jne 0x14025a26d
mov dword [rbp + 0x10], 0
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], rbx
lea rax, [0x14024df20]
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 0x140259dcd
nop
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0x10], 1
jne 0x140259e30
mov r12d, dword [rbp + 0x14]
test r12d, r12d
jne 0x140259dd5
mov r14d, dword [rbp + 0x18]
test r14, r14
je 0x140259f01
cmp r14d, 0x21
jae 0x14025a36c
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 0x140259c98
movzx eax, al
cmp eax, 0xb
je 0x140259efa
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.1402425c0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a380
movzx eax, al
cmp eax, 0xb
jne 0x14025a279
mov rsi, qword [rbp + 0xd8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x14025a131
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 0x140259fe0
test eax, eax
jne 0x14025a100
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x14025a07c
cmp eax, 1
jne 0x14025a063
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 0x14025a0bb
mov eax, dword [rbp + 0xa0]
jmp 0x14025a067
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14025a039
cmp eax, 1
jne 0x14025a01c
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 0x14025a09f
mov eax, dword [rbp + 0xa0]
jmp 0x14025a020
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], 0
mov rcx, qword [rbp + 0x68]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14025a0e7
mov rcx, rdi
mov rdx, r12
call fcn.14025a900
cmp byte [rbp + 0xa0], 0
jne 0x14025a0de
test byte [rbp + 0xa1], 1
jne 0x140259f70
jmp 0x14025a0e7
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x38]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14025a0f2
mov rcx, rdi
mov rdx, r14
call fcn.14025a900
cmp byte [rbp + 0xa0], 0
jne 0x14025a0de
test byte [rbp + 0xa1], 1
jne 0x140259f70
jmp 0x14025a0f2
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
je 0x14025a0d3
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x14025a020
jmp 0x14025a107
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
je 0x14025a0da
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x14025a067
jmp 0x14025a107
xor eax, eax
jmp 0x14025a020
xor eax, eax
jmp 0x14025a067
mov rbx, qword [rbp + 0xa8]
jmp 0x14025a10f
lea rcx, [rbp + 0x10]
call fcn.14025aa20
jmp 0x14025a0fb
lea rcx, [rbp + 0x40]
call fcn.14025aa20
mov rbx, rax
jmp 0x14025a10f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rcx, [rbp + 0x40]
call fcn.14025a790
mov byte [rbp + 0xe7], 0
lea rcx, [rbp + 0x10]
call fcn.14025a790
test rbx, rbx
jne 0x14025a2fa
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 0x14025a1ae
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 0x14025a185
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 0x14025a1a5
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 0x14025a241
mov dword [rbp + 0xa0], 0
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x14025a14f
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 0x140259f01
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.1402425c0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a380
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdi
mov rdx, r14
call fcn.1403af930
jmp 0x14025a380
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r13
mov rdx, rsi
call fcn.1403af930
jmp 0x14025a380
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.1402425c0
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.1403afcb0
jmp 0x14025a380
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, r13
mov rdx, rsi
call fcn.1403af940
jmp 0x14025a380
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rdi
mov rdx, r14
call fcn.1403af940
jmp 0x14025a380
lea r8, [0x1404c0a30]
mov edx, 0x20
mov rcx, rsi
call fcn.1403af940
jmp 0x14025a380
lea r8, [0x1404c0a30]
mov edx, 0x20
mov rcx, r14
call fcn.1403af940
ud2