Function at 0x1801dfea0
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 0x1801dfeed
xor eax, eax
jmp 0x1801e03d1
xor ebx, ebx
mov dword [rdi], ebx
mov ebp, ebx
mov esi, ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x78], 0x18
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], ebx
lea edx, [rbx + 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1801dff4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.18006efe0
nop
lea rdx, str.Everyone
lea rcx, [rsp + 0x50]
call fcn.18006e4a0
lea rdx, str.ALL_APPLICATION_PACKAGES
lea rcx, [rsp + 0x50]
call fcn.18006e4a0
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 rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801dffb7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x118]
mov edx, 1
cmp byte [r14], 0
je 0x1801e00e5
mov r8, qword [rsp + 0x120]
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e0024
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 rsi, rax
test rax, rax
jne 0x1801e0018
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
mov ebx, 1
mov qword [r12], rdi
mov dword [r15], ebx
jmp 0x1801e0356
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 0x1801e00c6
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e00b6
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 rsi, rax
test rax, rax
jne 0x1801e00bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
lea ebx, [rsi + 2]
jmp 0x1801e00bb
mov ebx, 3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801e00cb
mov ebx, 0xa
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov qword [r12], rdi
mov dword [r15], ebx
jmp 0x1801e0356
mov r13, qword [rsp + 0x120]
mov r8, r13
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e0189
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 rsi, rax
test rax, rax
jne 0x1801e017d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, r13
lea edx, [rsi + 1]
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e017d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x1801e0179
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
mov ebx, 4
mov byte [r14], 1
mov qword [r12], rdi
mov dword [r15], ebx
jmp 0x1801e0356
mov r8, r13
mov edx, 1
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
jne 0x1801e0148
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 1]
mov rdi, qword [rsp + 0xf8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1801e0291
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e023a
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 rsi, rax
test rax, rax
jne 0x1801e0281
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
lea ebx, [rsi + 5]
jmp 0x1801e0281
mov r8, r13
mov edx, 1
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, 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 rsi, rax
test rax, rax
jne 0x1801e027d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
lea ebx, [rsi + 6]
mov byte [r14], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801e00cb
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, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1801e0336
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1801e031d
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 rsi, rax
test rax, rax
jne 0x1801e0322
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbx
lea ebx, [rsi + 0xb]
jmp 0x1801e0322
mov ebx, 0xc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [r14], 1
jmp 0x1801e00cb
mov byte [r14], 1
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov qword [r12], rbx
mov dword [r15], 0xd
mov rsi, rbx
mov rax, qword [rsp + 0x110]
mov dword [rax], ebp
mov rbx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
cmp rbx, rax
je 0x1801e03aa
mov rdi, qword [rbx]
test rdi, rdi
je 0x1801e0399
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x98]
add rbx, 8
cmp rbx, rax
jne 0x1801e0375
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x1801e03ce
mov r8, qword [rsp + 0xa0]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.18006ee90
mov rax, rsi
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret