Function at 0x14011ff60
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx ebp, r8b
mov rdi, rdx
test rcx, rcx
je 0x14011ff95
jle 0x14011ff91
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14011ffaa
jle 0x14011ffa6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14011ffbd
jle 0x14011ffba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14011ffd2
jle 0x14011ffce
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
lea rcx, [rbx + 0xf8]
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
cmp rcx, rdi
je 0x14011fffc
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x14011fff3
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.1400fe0a0
mov byte [rbx + 0x1c], sil
cmp qword [rdi + 0x18], 7
jbe 0x14012000a
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0x120089
mov r8d, 7
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x14012004e
test rcx, rcx
jle 0x140120048
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rcx, rdi
test rcx, rcx
jle 0x140120197
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], esi
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x14012008f
test rcx, rcx
jle 0x140120088
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
xor r9d, r9d
test rcx, rcx
jle 0x1401200e8
xor r8d, r8d
mov byte [rbx + 0x18], sil
mov edx, 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rsi, [rbx + 0x10]
lea rax, [rsp + 0x40]
cmp rax, rsi
je 0x1401200de
mov rcx, qword [rsi]
cmp rdi, rcx
je 0x140120162
test rcx, rcx
jle 0x1401200d6
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rdi
jmp 0x140120162
test rdi, rdi
jle 0x140120162
mov rcx, rdi
jmp 0x14012015c
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov r8d, 2
mov dword [rsp + 0x20], esi
mov byte [rbx + 0x18], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x140120124
test rcx, rcx
jle 0x14012011d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x140120162
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, 4
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
call fcn.140121620
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x140120162
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rbx + 0x10], 0
je 0x140120197
xor edx, edx
mov rcx, rbx
call fcn.1401202a0
test eax, eax
js 0x1401201a6
test bpl, bpl
jne 0x1401201a6
lea rdx, [rbx + 0xf8]
cmp qword [rdx + 0x18], 7
jbe 0x14012018d
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.140121130
jmp 0x1401201a6
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, 0x50
pop rdi
ret