Function at 0x14010dfe0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
lea rsi, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rsi]
xor r12d, r12d
movzx r15d, r8b
mov rbp, rdx
test rcx, rcx
je 0x14010e01a
jle 0x14010e017
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14010e02f
jle 0x14010e02b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r12
mov rcx, qword [rdi]
test rcx, rcx
je 0x14010e042
jle 0x14010e03f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r12
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14010e057
jle 0x14010e053
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r12
lea r14, [rdi + 0xf8]
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x28], r12
cmp r14, rbp
je 0x14010e095
mov rcx, r14
call fcn.1400d4220
mov rcx, rbp
call fcn.1400d4200
mov rbx, qword [rbp + 0x10]
mov rcx, rbp
call fcn.1400d44b0
mov r8, rbx
mov rdx, rax
mov rcx, r14
call fcn.1400ed4d0
mov rcx, rbp
mov byte [rdi + 0x1c], r12b
call fcn.1400d3890
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov edx, 0x120089
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 0x14010e0e4
test rcx, rcx
jle 0x14010e0de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14010e22b
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r12d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14010e126
test rcx, rcx
jle 0x14010e11f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14010e17e
xor r8d, r8d
mov byte [rdi + 0x18], r12b
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rsi
je 0x14010e170
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x14010e1fe
test rcx, rcx
jle 0x14010e168
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbx
jmp 0x14010e1fe
test rbx, rbx
jle 0x14010e1fe
mov rcx, rbx
jmp 0x14010e1f8
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r12
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r12d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14010e1b9
test rcx, rcx
jle 0x14010e1b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14010e1fe
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x80]
mov rcx, rsi
mov qword [rsp + 0x80], rax
call fcn.14010fea0
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jle 0x14010e1fe
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], r12
je 0x14010e22b
xor edx, edx
mov rcx, rdi
call fcn.14010e400
test eax, eax
js 0x14010e23a
test r15b, r15b
jne 0x14010e23a
mov rcx, r14
call fcn.1400d3890
mov rdx, rax
mov rcx, rdi
call fcn.14010f620
jmp 0x14010e23a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret