Function at 0x14006bca0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140124d18]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rcx, [rsp + 0x78]
call fcn.140099810
cmp qword [rax + 0x18], 8
jb 0x14006bcf4
mov rax, qword [rax]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006bd36
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
jb 0x14006bd7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006bd76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006be91
call fcn.1400bd394
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14006be97
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], rax
test rcx, rcx
je 0x14006bdbe
cmp rcx, 0xffffffffffffffff
je 0x14006bdbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14006bf00
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx], rax
test rax, rax
je 0x14006be2f
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edx, dword [rsp + 0x40]
shl rdx, 0x20
or rdx, rcx
mov qword [rbx + 8], rdx
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400bd960
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0x98]
call fcn.140088ff0
nop
mov r8, rax
lea rdx, str.Cannot_MapViewOfFile___Code:
lea rcx, [rsp + 0x100]
call fcn.14001ce00
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140015e20
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14006c390
lea rdx, [0x140121250]
lea rcx, [rsp + 0x50]
call fcn.1400be948
nop
call fcn.1400cbbac
int3
mov r8, rdi
lea rdx, str.Cannot_open_
lea rcx, [rsp + 0xc0]
call fcn.140004550
nop
lea r8, [0x1400f4890]
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.1400044f0
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140015e20
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.14006c390
lea rdx, [0x140121250]
lea rcx, [rsp + 0x98]
call fcn.1400be948
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0xe0]
call fcn.140088ff0
mov rbx, rax
mov r8, rdi
lea rdx, str.Cannot_open_
lea rcx, [rsp + 0xc0]
call fcn.140004550
nop
lea r8, str._Code:
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.1400044f0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140004460
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.140015e20
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14006c390
lea rdx, [0x140121250]
lea rcx, [rsp + 0x50]
call fcn.1400be948
int3