Function at 0x14006c370
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rdi, [rcx + 0x10]
mov rbx, rcx
mov rcx, qword [rdi]
xor r15d, r15d
movzx ebp, r8b
mov rsi, rdx
test rcx, rcx
je 0x14006c3ac
jle 0x14006c3a9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14006c3c1
jle 0x14006c3bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r15
mov rcx, qword [rbx]
test rcx, rcx
je 0x14006c3d4
jle 0x14006c3d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14006c3e9
jle 0x14006c3e5
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], r15
lea r14, [rbx + 0xf8]
mov qword [rbx + 0x20], r15
mov rcx, r14
mov qword [rbx + 0x28], r15
mov rdx, rsi
call fcn.140063ab0
mov byte [rbx + 0x1c], r15b
cmp qword [rsi + 0x18], 7
jbe 0x14006c411
mov rsi, qword [rsi]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rsi, rax
cmp rax, rcx
je 0x14006c456
test rcx, rcx
jle 0x14006c450
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, rsi
test rcx, rcx
jle 0x14006c57b
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 [rbx + 8]
mov rsi, rax
cmp rax, rcx
je 0x14006c498
test rcx, rcx
jle 0x14006c491
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, rsi
xor r9d, r9d
test rcx, rcx
jle 0x14006c4c1
xor r8d, r8d
mov byte [rbx + 0x18], r15b
mov edx, 4
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
lea rax, [rsp + 0x40]
jmp 0x14006c521
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], r15
mov r8d, 2
mov dword [rsp + 0x20], r15d
mov byte [rbx + 0x18], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rsi, rax
cmp rax, rcx
je 0x14006c4fe
test rcx, rcx
jle 0x14006c4f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, rsi
test rcx, rcx
jle 0x14006c54c
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
lea rax, [rsp + 0x48]
cmp rax, rdi
je 0x14006c53e
mov rcx, qword [rdi]
cmp rsi, rcx
je 0x14006c54c
test rcx, rcx
jle 0x14006c539
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rdi], rsi
jmp 0x14006c54c
test rsi, rsi
jle 0x14006c54c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rdi], r15
je 0x14006c57b
xor edx, edx
mov rcx, rbx
call fcn.14006c690
test eax, eax
js 0x14006c58a
test bpl, bpl
jne 0x14006c58a
cmp qword [r14 + 0x18], 7
jbe 0x14006c56e
mov r14, qword [r14]
mov rdx, r14
mov rcx, rbx
call fcn.14006d510
jmp 0x14006c58a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret