Function at 0x18001b3f0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
movaps xmm0, xmmword [0x1800481b0]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.180031c60
mov rsi, rdx
test rax, rax
je 0x18001b499
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x18001b48d
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x18001b480
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.1800058e0
mov edx, 8
mov rcx, rbx
call fcn.1800058e0
mov qword [rdi], 0
jmp 0x18001b6b6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x18001b55f
test byte [rsp + 0x41], 4
je 0x18001b4fa
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rsi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x18001b55f
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rsi, rsi
je 0x18001b5c5
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x18001b616
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x18001b5ce
jmp 0x18001b62f
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov al, 1
test al, al
jne 0x18001b5a6
shl rbx, 0x20
or rbx, 2
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x18001b599
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.1800058e0
mov edx, 8
mov rcx, r14
call fcn.1800058e0
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor eax, eax
xor ebx, ebx
test rax, rax
je 0x18001b62f
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x18001b60a
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x18001b5fd
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.1800058e0
mov edx, 8
mov rcx, r14
call fcn.1800058e0
mov qword [rdi], 0
jmp 0x18001b6ae
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x18001b5ce
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x18001b69f
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x18001b69f
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x18001b6ae
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret