Function at 0x14001c1b0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rsi, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rsi]
xor r15d, r15d
movzx ebp, r8b
mov rbx, rdx
test rcx, rcx
je 0x14001c1ec
jle 0x14001c1e9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001c201
jle 0x14001c1fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001c214
jle 0x14001c211
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14001c229
jle 0x14001c225
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r15
lea r14, [rdi + 0xf8]
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x28], r15
cmp r14, rbx
je 0x14001c256
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14001c24a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, r14
call fcn.140001bb0
mov byte [rdi + 0x1c], r15b
cmp qword [rbx + 0x18], 8
jb 0x14001c264
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 0x14001c2a7
test rcx, rcx
jle 0x14001c2a1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14001c3ae
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 0x14001c2e9
test rcx, rcx
jle 0x14001c2e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14001c2f7
mov byte [rdi + 0x18], r15b
jmp 0x14001c33a
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 0x14001c332
test rcx, rcx
jle 0x14001c32b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14001c37f
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rsi
je 0x14001c371
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x14001c37f
test rcx, rcx
jle 0x14001c36c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbx
jmp 0x14001c37f
test rbx, rbx
jle 0x14001c37f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], r15
je 0x14001c3ae
xor edx, edx
mov rcx, rdi
call fcn.14001c4d0
test eax, eax
js 0x14001c3bd
test bpl, bpl
jne 0x14001c3bd
cmp qword [r14 + 0x18], 8
jb 0x14001c3a1
mov r14, qword [r14]
mov rdx, r14
mov rcx, rdi
call fcn.14001d320
jmp 0x14001c3bd
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret