Function at 0x7ff7c00d3f00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r13d, r13d
mov r14, r9
test byte [rcx + 8], 2
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
mov edi, r13d
je 0x7ff7c00d3f33
call fcn.7ff7c00d3e60
jmp 0x7ff7c00d415a
mov eax, dword [rbx + 0x28]
mov ecx, dword [rcx + 0x24]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], r15
sub eax, ecx
jne 0x7ff7c00d4094
mov r8d, dword [rbx + 0x2c]
test r8d, r8d
je 0x7ff7c00d3f72
mov rdx, qword [rbx + 0x18]
mov rcx, rbx
call fcn.7ff7c00d4170
test eax, eax
js 0x7ff7c00d414a
mov dword [rbx + 0x2c], r13d
mov edx, dword [rbx + 0x20]
cmp ebp, edx
jb 0x7ff7c00d3f93
mov r9, r14
mov qword [rbx + 0x24], r13
mov r8d, ebp
mov rdx, r12
mov rcx, rbx
call fcn.7ff7c00d3e60
jmp 0x7ff7c00d414a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x7ff7c00d3ff3
xor r8d, r8d
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x20], 0x1000
lea rcx, [r8 - 1]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x7ff7c00d407a
mov rcx, qword [rsp + 0x90]
mov qword [rbx + 0x18], rcx
test rcx, rcx
je 0x7ff7c00d407e
mov edx, dword [rbx + 0x20]
test byte [rbx + 8], 8
lea rax, [rbx + 0x10]
mov qword [rsp + 0x40], r13
cmove rax, r13
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x7ff7c00d4054
mov rcx, qword ds:[rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x7ff7c00d4148
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x7ff7c00d4148
mov rsi, qword [rsp + 0x58]
add qword [rbx + 0x10], rsi
test esi, esi
jne 0x7ff7c00d4088
test r14, r14
je 0x7ff7c00d4148
mov dword [r14], r13d
jmp 0x7ff7c00d4148
mov qword [rbx + 0x18], r13
mov eax, 0xc0000017
jmp 0x7ff7c00d414a
mov dword [rbx + 0x24], r13d
mov ecx, r13d
mov dword [rbx + 0x28], esi
jmp 0x7ff7c00d4096
mov esi, eax
mov edx, ecx
cmp esi, ebp
mov rcx, r12
cmova esi, ebp
add rdx, qword [rbx + 0x18]
mov r8d, esi
call fcn.7ff7c0125120
add dword [rbx + 0x24], esi
cmp esi, ebp
jae 0x7ff7c00d413b
mov eax, dword [rbx + 0x20]
cmp dword [rbx + 0x28], eax
jne 0x7ff7c00d413b
test byte ds:[rbx + 8], 8
lea rax, [r12 + rsi]
lea rcx, [rbx + 0x10]
cmove rcx, r13
xor r12d, r12d
mov qword [rsp + 0x40], r12
sub ebp, esi
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
cmp eax, 0x103
jne 0x7ff7c00d4128
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov edi, eax
test eax, eax
js 0x7ff7c00d4148
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x7ff7c00d4148
mov rax, qword [rsp + 0x58]
add qword [rbx + 0x10], rax
add esi, eax
mov qword [rbx + 0x24], r12
nop dword [rax + rax]
test r14, r14
je 0x7ff7c00d4148
mov dword [r14], esi
mov eax, edi
mov rsi, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret