Function at 0x140030be0
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 [0x1400f2120]
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.1400773b0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1400773b0
xor edi, edi
lea rcx, [rbp + 0x190]
mov edx, 0x104
mov qword [rsp + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r14, [0x1400f4370]
mov dword [rsp + 0x20], edi
mov rcx, r14
mov eax, edi
nop dword [rax + rax]
cmp dword [rcx], 8
je 0x140030cf2
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x140030ce0
jmp 0x140030d3f
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x140030d3f
mov eax, edi
mov rcx, r14
cmp dword [rcx], 8
je 0x140030db4
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x140030d07
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 0x140030d3f
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.1400773b0
lea r9, [rbp - 0x80]
mov edx, 0x100
lea r8, str.Checking_file__s
lea rcx, [rbp + 0x3a0]
call fcn.14002db30
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030da9
test al, 0x10
je 0x140030dd2
inc rbx
cmp rbx, 0xa
jl 0x140030d50
jmp 0x140030dd7
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x140030d1b
mov rbx, qword [r14 + rcx*8 + 0x28]
jmp 0x140030d1e
mov esi, 1
mov dword [rsp + 0x20], edi
mov ecx, edi
mov rdx, r14
cmp dword [rdx], 8
je 0x140030df2
inc ecx
add rdx, 0x30
cmp ecx, 0x1e
jb 0x140030de0
jmp 0x140030e51
movsxd rax, ecx
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x140030e51
mov eax, edi
mov rcx, r14
cmp dword [rcx], 8
je 0x140030e1a
inc eax
add rcx, 0x30
cmp eax, 0x1e
jb 0x140030e08
jmp 0x140030e2f
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [r14 + rcx*8 + 0x24], dil
je 0x140030e2f
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 0x140030e51
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov eax, esi
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140057d50
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