Function at 0x1400e08a0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [rcx + 8]
lea r14, [rcx + 8]
xor r13d, r13d
mov rsi, r9
mov r12d, r8d
mov r15, rdx
mov rbx, rcx
mov edi, r13d
test al, 2
je 0x1400e0957
mov qword [r11 - 0x58], r13
test al, 8
lea rax, [rcx + 0x10]
mov rcx, qword [rcx]
cmove rax, r13
xor r9d, r9d
mov qword [r11 - 0x60], rax
lea rax, [r11 - 0x48]
mov dword [r11 - 0x68], r8d
xor r8d, r8d
mov qword [r11 - 0x70], rdx
xor edx, edx
mov qword [r11 - 0x78], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400e092b
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x1400e0be2
mov eax, dword [rsp + 0x50]
test eax, eax
js 0x1400e0be2
mov rcx, qword [rsp + 0x58]
add qword [rbx + 0x10], rcx
test rsi, rsi
je 0x1400e0be2
mov dword [rsi], ecx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rcx + 0x24]
mov qword [rsp + 0xb0], rbp
mov ebp, dword [rcx + 0x28]
sub ebp, eax
jne 0x1400e0b1b
mov rax, r14
cmp dword [rcx + 0x2c], r13d
je 0x1400e0987
call fcn.1400e0f20
test eax, eax
js 0x1400e0bda
lea rax, [rbx + 8]
mov ecx, dword [rbx + 0x20]
cmp r12d, ecx
jb 0x1400e0a14
test byte [r14], 8
lea rax, [rbx + 0x10]
mov rcx, qword [rbx]
cmove rax, r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r15
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x24], r13
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400e09f3
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x1400e0bda
mov eax, dword [rsp + 0x50]
test eax, eax
js 0x1400e0bda
mov rcx, qword [rsp + 0x58]
add qword [rbx + 0x10], rcx
test rsi, rsi
je 0x1400e0bda
mov dword [rsi], ecx
jmp 0x1400e0bda
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x1400e0a78
mov qword [rsp + 0x50], rcx
lea r9, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0xa0], r13
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1400e0aff
mov rdx, qword [rsp + 0xa0]
mov qword [rbx + 0x18], rdx
test rdx, rdx
je 0x1400e0b03
lea rax, [rbx + 8]
test byte [rax], 8
lea rax, [rbx + 0x10]
mov ecx, dword [rbx + 0x20]
cmove rax, r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x50]
mov rcx, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x28], rdx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400e0ad9
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400e0bd8
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400e0bd8
mov rbp, qword [rsp + 0x58]
add qword [rbx + 0x10], rbp
test ebp, ebp
jne 0x1400e0b0d
test rsi, rsi
je 0x1400e0bd8
mov dword [rsi], r13d
jmp 0x1400e0bd8
mov qword [rbx + 0x18], r13
mov eax, 0xc0000017
jmp 0x1400e0bda
mov dword [rbx + 0x24], r13d
lea r14, [rbx + 8]
mov dword [rbx + 0x28], ebp
mov eax, r13d
mov edx, eax
cmp ebp, r12d
mov rcx, r15
cmova ebp, r12d
add rdx, qword [rbx + 0x18]
mov r8d, ebp
mov r13d, ebp
call fcn.1401317c0
add dword [rbx + 0x24], ebp
cmp ebp, r12d
jae 0x1400e0bd1
mov eax, dword [rbx + 0x20]
cmp dword [rbx + 0x28], eax
jne 0x1400e0bd1
test byte [r14], 8
lea rcx, [rbx + 0x10]
mov rax, qword [rsp + 0xa8]
mov r14d, 0
cmove rcx, r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rcx
add rax, r13
mov rcx, qword [rbx]
sub r12d, ebp
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x1400e0bbe
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x1400e0bd8
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x1400e0bd8
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
add ebp, eax
mov qword [rbx + 0x24], r14
test rsi, rsi
je 0x1400e0bd8
mov dword [rsi], ebp
mov eax, edi
mov rbp, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret