Function at 0x180017130
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
lea rsi, [rcx + 0x10]
mov rbx, rcx
mov rcx, qword [rsi]
xor ebp, ebp
mov rdi, rdx
test rcx, rcx
je 0x180017163
jle 0x180017160
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180017178
jle 0x180017174
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rbp
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001718b
jle 0x180017188
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rbp
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1800171a0
jle 0x18001719c
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rbp
lea rcx, [rbx + 0xf8]
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
cmp rcx, rdi
je 0x1800171ca
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1800171c1
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.180005760
mov byte [rbx + 0x1c], bpl
cmp qword [rdi + 0x18], 8
jb 0x1800171d8
mov rdi, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov edx, 0x120089
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x18001721a
test rcx, rcx
jle 0x180017214
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rcx, rdi
test rcx, rcx
jle 0x180017334
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebp
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x18001725b
test rcx, rcx
jle 0x180017254
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
xor r9d, r9d
test rcx, rcx
jle 0x1800172af
xor r8d, r8d
mov byte [rbx + 0x18], bpl
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rsi
je 0x1800172a5
mov rcx, qword [rsi]
cmp rdi, rcx
je 0x180017325
test rcx, rcx
jle 0x18001729d
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rdi
jmp 0x180017325
test rdi, rdi
jle 0x180017325
mov rcx, rdi
jmp 0x18001731f
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov byte [rbx + 0x18], 1
mov dword [rsp + 0x20], ebp
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x1800172e9
test rcx, rcx
jle 0x1800172e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x180017325
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov qword [rsp + 0x60], rax
call fcn.180017920
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jle 0x180017325
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], rbp
je 0x180017334
mov rcx, rbx
call fcn.180017450
jmp 0x180017343
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