Function at 0x18001a330
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 [0x1800471b0]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.180030ba0
mov rsi, rdx
test rax, rax
je 0x18001a3d9
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x18001a3cd
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 0x18001a3c0
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.180004ff0
mov edx, 8
mov rcx, rbx
call fcn.180004ff0
mov qword [rdi], 0
jmp 0x18001a5f6
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 0x18001a49f
test byte [rsp + 0x41], 4
je 0x18001a43a
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 0x18001a49f
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rsi, rsi
je 0x18001a505
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 0x18001a556
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x18001a50e
jmp 0x18001a56f
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov al, 1
test al, al
jne 0x18001a4e6
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 0x18001a4d9
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.180004ff0
mov edx, 8
mov rcx, r14
call fcn.180004ff0
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 0x18001a56f
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x18001a54a
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 0x18001a53d
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.180004ff0
mov edx, 8
mov rcx, r14
call fcn.180004ff0
mov qword [rdi], 0
jmp 0x18001a5ee
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x18001a50e
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 0x18001a5df
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 0x18001a5df
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x18001a5ee
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