Function at 0x140018ad0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
lea r15, [rcx + 0x10]
mov qword [rsp + 0x80], r14
mov rdi, rcx
xor r13d, r13d
mov rcx, qword [r15]
movzx r12d, r8b
mov r14, rdx
test rcx, rcx
je 0x140018b0d
jle 0x140018b0a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], r13
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140018b22
jle 0x140018b1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r13
mov rcx, qword [rdi]
test rcx, rcx
je 0x140018b35
jle 0x140018b32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r13
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140018b4a
jle 0x140018b46
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r13
lea rsi, [rdi + 0xf8]
mov qword [rdi + 0x20], r13
mov qword [rdi + 0x28], r13
cmp rsi, r14
je 0x140018bb3
cmp qword [r14 + 0x18], 8
mov r9, r14
mov rdx, qword [r14 + 0x10]
jb 0x140018b6f
mov r9, qword [r14]
mov rax, qword [rsi + 0x18]
cmp rdx, rax
ja 0x140018bab
mov qword [rsp + 0x78], rbp
mov rbp, rsi
cmp rax, 8
jb 0x140018b89
mov rbp, qword [rsi]
lea rbx, [rdx + rdx]
mov qword [rsi + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call fcn.140048740
mov word [rbx + rbp], r13w
mov rbp, qword [rsp + 0x78]
jmp 0x140018bb3
mov rcx, rsi
call fcn.1400108e0
mov byte [rdi + 0x1c], r13b
cmp qword [r14 + 0x18], 8
jb 0x140018bc1
mov r14, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov edx, 0x120089
mov rcx, r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
mov r14, qword [rsp + 0x80]
cmp rax, rcx
je 0x140018c0c
test rcx, rcx
jle 0x140018c06
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x140018d13
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x140018c4e
test rcx, rcx
jle 0x140018c47
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x140018c5c
mov byte [rdi + 0x18], r13b
jmp 0x140018c9f
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r13
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r13d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x140018c97
test rcx, rcx
jle 0x140018c90
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x140018ce4
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x70]
cmp rax, r15
je 0x140018cd6
mov rcx, qword [r15]
cmp rbx, rcx
je 0x140018ce4
test rcx, rcx
jle 0x140018cd1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r15], rbx
jmp 0x140018ce4
test rbx, rbx
jle 0x140018ce4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [r15], r13
je 0x140018d13
xor edx, edx
mov rcx, rdi
call fcn.140018e30
test eax, eax
js 0x140018d22
test r12b, r12b
jne 0x140018d22
cmp qword [rsi + 0x18], 8
jb 0x140018d06
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rdi
call fcn.140019d10
jmp 0x140018d22
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret