Function at 0x18005fc50
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x180140f20]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
lea rax, str.System32drivers_balloon.sys
xor edx, edx
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x190]
lea rax, str.System32drivers_netkvm.sys
mov r8d, 0x208
mov qword [rsp + 0x38], rax
lea rax, str.System32driverspvpanic.sys
mov qword [rsp + 0x40], rax
lea rax, str.System32drivers_viofs.sys
mov qword [rsp + 0x48], rax
lea rax, str.System32drivers_viogpudo.sys
mov qword [rsp + 0x50], rax
lea rax, str.System32drivers_vioinput.sys
mov qword [rsp + 0x58], rax
lea rax, str.System32drivers_viorng.sys
mov qword [rsp + 0x60], rax
lea rax, str.System32drivers_vioscsi.sys
mov qword [rsp + 0x68], rax
lea rax, str.System32drivers_vioser.sys
mov qword [rsp + 0x70], rax
lea rax, str.System32drivers_viostor.sys
mov qword [rsp + 0x78], rax
call fcn.1800a8ae0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1800a8ae0
xor edi, edi
lea rcx, [rbp + 0x190]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r14, [0x180142ea0]
mov dword [rsp + 0x20], edi
mov rcx, r14
mov eax, edi
nop dword [rax + rax]
cmp dword [rcx], 8
je 0x18005fd62
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x18005fd50
jmp 0x18005fdaf
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x18005fdaf
mov eax, edi
mov rcx, r14
cmp dword [rcx], 8
je 0x18005fe24
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x18005fd77
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rbx
cmp dword [rsp + 0x20], edi
je 0x18005fdaf
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, edi
mov rbx, rdi
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x200
call fcn.1800a8ae0
lea r9, [rbp - 0x80]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp + 0x3a0]
call fcn.18005dd20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18005fe19
test al, 0x10
je 0x18005fe42
inc rbx
cmp rbx, 0xa
jl 0x18005fdc0
jmp 0x18005fe47
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x18005fd8b
mov rbx, qword [r14 + rcx*8 + 0x28]
jmp 0x18005fd8e
mov esi, 1
mov dword [rsp + 0x20], edi
mov ecx, edi
mov rdx, r14
cmp dword [rdx], 8
je 0x18005fe62
inc ecx
add rdx, 0x30
cmp ecx, 0x1e
jb 0x18005fe50
jmp 0x18005fec1
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x18005fec1
mov eax, edi
mov rcx, r14
cmp dword [rcx], 8
je 0x18005fe8a
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x18005fe78
jmp 0x18005fe9f
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x18005fe9f
mov rdi, qword [r14 + rcx*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
cmp dword [rsp + 0x20], 0
je 0x18005fec1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1800871a0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret