Function at 0x140098040
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r15, rcx
lea rcx, [rsp + 0x40]
call fcn.1400adfd0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test rbx, rbx
je 0x1400981a4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
mov rdi, rax
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400980bd
call sub.kernel32.dll_GetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
test rsi, rsi
je 0x1400980cf
mov edx, 2
mov rcx, rbx
call fcn.140009bb0
cmp rdi, 0xffffffffffffffff
je 0x1400981a1
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, r13
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x1400981ec
test byte [rsp + 0x41], 4
je 0x140098138
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, r13
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x1400981ec
mov r12d, dword [rsp + 0x60]
mov r14d, dword [rsp + 0x64]
test r13, r13
je 0x140098254
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, r13
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1400982a5
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x14009825d
jmp 0x1400982be
mov rsi, r13
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x1400981e0
lea rdi, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x1400981d3
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140009bb0
mov edx, 8
mov rcx, rdi
call fcn.140009bb0
mov qword [r15], 0
jmp 0x140098345
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov al, 1
test al, al
jne 0x140098233
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 0x140098226
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.140009bb0
mov edx, 8
mov rcx, r14
call fcn.140009bb0
mov qword [r15], 0
mov rcx, r13
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
xor eax, eax
xor ebx, ebx
test rax, rax
je 0x1400982be
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x140098299
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 0x14009828c
mov rdx, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.140009bb0
mov edx, 8
mov rcx, r14
call fcn.140009bb0
mov qword [r15], 0
jmp 0x14009833d
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x14009825d
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 0x14009832e
mov rdi, rax
shl r12, 0x20
or r12, r14
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r14, rax
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
test r14, r14
je 0x14009832e
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], r12
mov qword [r15], 1
jmp 0x14009833d
mov qword [r15], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, r13
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret