Function at 0x180011e80
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx ebp, r8b
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor esi, esi
test rcx, rcx
je 0x180011eb5
jle 0x180011eb1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180011eca
jle 0x180011ec6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x180011edd
jle 0x180011eda
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180011ef2
jle 0x180011eee
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
lea rcx, [rbx + 0xf8]
cmp rcx, rdi
je 0x180011f1c
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180011f13
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.180009640
mov byte [rbx + 0x1c], 0
cmp qword [rdi + 0x18], 7
jbe 0x180011f2a
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x120089
lea r8d, [r9 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rcx, qword [rbx]
cmp rax, rcx
je 0x180011f6c
test rcx, rcx
jle 0x180011f66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rcx, rdi
test rcx, rcx
jle 0x180012095
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov rcx, qword [rbx + 8]
cmp rax, rcx
je 0x180011fad
test rcx, rcx
jle 0x180011fa6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
xor r9d, r9d
test rcx, rcx
jle 0x180011fd5
mov byte [rbx + 0x18], r9b
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x40]
jmp 0x180012031
mov byte [rbx + 0x18], 1
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov rcx, qword [rbx + 8]
cmp rax, rcx
je 0x18001200f
test rcx, rcx
jle 0x180012008
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x180012060
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x48]
lea rsi, [rbx + 0x10]
cmp rax, rsi
je 0x180012052
mov rcx, qword [rsi]
cmp rdi, rcx
je 0x180012060
test rcx, rcx
jle 0x18001204d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rdi
jmp 0x180012060
test rdi, rdi
jle 0x180012060
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rbx + 0x10], 0
je 0x180012095
xor edx, edx
mov rcx, rbx
call fcn.1800121a0
test eax, eax
js 0x1800120a4
test bpl, bpl
jne 0x1800120a4
lea rdx, [rbx + 0xf8]
cmp qword [rdx + 0x18], 7
jbe 0x18001208b
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.180013090
jmp 0x1800120a4
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret