Function at 0x180158690
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov r15, r9
mov r12, r8
mov r13, rdx
mov rdi, rcx
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1801586dd
xor eax, eax
jmp 0x180158b3a
xor ebx, ebx
mov dword [rdi], ebx
mov ebp, ebx
mov edi, ebx
lea rcx, [rsp + 0x50]
call fcn.180001000
nop
mov r8d, 0x10000000
lea rdx, str.Everyone
lea rcx, [rsp + 0x50]
call fcn.1800010d0
mov r8d, 0x10000000
lea rdx, str.ALL_APPLICATION_PACKAGES
lea rcx, [rsp + 0x50]
call fcn.1800010d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180158767
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x118]
mov edx, 1
cmp byte [r14], 0
je 0x18015889d
mov r8, qword [rsp + 0x120]
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
je 0x1801587d4
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x1801587c8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
mov ebx, 1
mov qword [r12], rsi
mov dword [r15], ebx
jmp 0x180158b23
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18015887e
lea rcx, [rsp + 0x50]
call fcn.180001860
mov rdx, rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x18015886e
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158873
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
lea ebx, [rdi + 2]
jmp 0x180158873
mov ebx, 3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180158883
mov ebx, 0xa
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov qword [r12], rsi
mov dword [r15], ebx
jmp 0x180158b23
mov r13, qword [rsp + 0x120]
mov r8, r13
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
je 0x180158941
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158935
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, r13
lea edx, [rdi + 1]
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
je 0x180158935
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158931
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
mov ebx, 4
mov byte [r14], 1
mov qword [r12], rsi
mov dword [r15], ebx
jmp 0x180158b23
mov r8, r13
mov edx, 1
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
jne 0x180158900
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 3]
mov rsi, qword [rsp + 0xf8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180158a53
lea rcx, [rsp + 0x50]
call fcn.180001860
mov rdx, rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 4]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1801589fc
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158a43
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
lea ebx, [rdi + 5]
jmp 0x180158a43
mov r8, r13
mov edx, 1
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158a3f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
lea ebx, [rdi + 6]
mov byte [r14], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180158883
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180158b03
lea rcx, [rsp + 0x50]
call fcn.180001860
mov rdx, rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x180158aea
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180158aef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rbx
lea ebx, [rdi + 0xb]
jmp 0x180158aef
mov ebx, 0xc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [r14], 1
jmp 0x180158883
mov byte [r14], 1
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov qword [r12], rbx
mov dword [r15], 0xd
mov rdi, rbx
mov rax, qword [rsp + 0x110]
mov dword [rax], ebp
lea rcx, [rsp + 0x50]
call fcn.180001050
mov rax, rdi
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret