Function at 0x14003b390
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea r14, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [r14]
xor r15d, r15d
movzx ebp, r8b
mov rbx, rdx
test rcx, rcx
je 0x14003b3c4
jle 0x14003b3c1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r14], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003b3d9
jle 0x14003b3d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003b3ec
jle 0x14003b3e9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14003b401
jle 0x14003b3fd
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r15
lea rsi, [rdi + 0xf8]
mov qword [rdi + 0x20], r15
mov rcx, rsi
mov qword [rdi + 0x28], r15
mov rdx, rbx
call fcn.140013bfc
mov byte [rdi + 0x1c], r15b
cmp qword [rbx + 0x18], 8
jb 0x14003b429
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
cmp rax, rcx
je 0x14003b46c
test rcx, rcx
jle 0x14003b466
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003b5a8
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003b4ae
test rcx, rcx
jle 0x14003b4a7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14003b502
xor r8d, r8d
mov byte [rdi + 0x18], r15b
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, r14
je 0x14003b4f8
mov rcx, qword [r14]
cmp rbx, rcx
je 0x14003b579
test rcx, rcx
jle 0x14003b4f0
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r14], rbx
jmp 0x14003b579
test rbx, rbx
jle 0x14003b579
mov rcx, rbx
jmp 0x14003b573
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r15
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r15d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003b53d
test rcx, rcx
jle 0x14003b536
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003b579
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x70], rax
call fcn.14003cfc0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
jle 0x14003b579
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [r14], r15
je 0x14003b5a8
xor edx, edx
mov rcx, rdi
call fcn.14003b6c0
test eax, eax
js 0x14003b5b7
test bpl, bpl
jne 0x14003b5b7
cmp qword [rsi + 0x18], 8
jb 0x14003b59b
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rdi
call fcn.14003ca80
jmp 0x14003b5b7
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret