Function at 0x1800512e0
Capabilities:
Get common file path
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10120
call fcn.180099a60
sub rsp, rax
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x10110], rax
lea rcx, [rsp + 0xe8]
call fcn.180002a80
nop
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0xfffe
rep stosb byte [rdi], al
mov edx, 0x7fff
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rsp + 0x110]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x180051353
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xe8]
call fcn.180002f10
lea rax, str.DRIVERS_srv.sys
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
cmp word [rax + rcx*2], 0
jne 0x1800513be
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov r8, qword [rsp + 0xa8]
lea rdx, str.DRIVERS_srv.sys
lea rcx, [rsp + 0xe8]
call fcn.1800043e0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 8
jb 0x18005143d
mov dword [rsp + 0x44], 1
jmp 0x180051445
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x180051474
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180051516
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Couldnt_open_file_with_CreateFile____error__d_n
mov rcx, qword [rsp + 0x10130]
call fcn.1800463c0
mov qword [rsp + 0xc8], 0
lea rcx, [rsp + 0xe8]
call fcn.1800029a0
mov rax, qword [rsp + 0xc8]
jmp 0x180051652
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180051598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Couldnt_open_file_mapping_with_CreateFileMapping____error__d_n
mov rcx, qword [rsp + 0x10130]
call fcn.1800463c0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd0], 0
lea rcx, [rsp + 0xe8]
call fcn.1800029a0
mov rax, qword [rsp + 0xd0]
jmp 0x180051652
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x18005161a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Couldnt_map_view_of_file_with_MapViewOfFile____error__d_n
mov rcx, qword [rsp + 0x10130]
call fcn.1800463c0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xd8], 0
lea rcx, [rsp + 0xe8]
call fcn.1800029a0
mov rax, qword [rsp + 0xd8]
jmp 0x180051652
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xe8]
call fcn.1800029a0
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x10110]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x10120
pop rdi
ret