Function at 0x1400854d0
Capabilities:
Get common file path
Get file version info

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x6c0
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r12
mov r12, rcx
lea rcx, [r11 - 0x448]
mov edx, 0x104
mov word [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.viahduaa.sys
lea rcx, [rsp + 0x490]
mov edx, 0x104
call fcn.1400f9e00
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64EnableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rbx, rbx
mov rbp, rax
mov dword [rsp + 0x48], edi
je 0x140085596
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x48]
mov rcx, rax
call rbx
test eax, eax
je 0x140085596
test rbp, rbp
je 0x140085596
xor ecx, ecx
call rbp
lea r8, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400f9e00
lea r8, [0x14013b180]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [rsp + 0x490]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [0x14013b2c0]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400fb2c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140085604
call fcn.1400fb3d0
jmp 0x140085746
lea r8, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400f9e00
lea r8, str.drivers_
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [rsp + 0x490]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [0x14013b184]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400fb2c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140085672
call fcn.1400fb3d0
jmp 0x140085746
lea r8, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400f9e00
lea r8, [0x14013b2e0]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [rsp + 0x490]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [0x14013b2c0]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400fb2c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400856dd
call fcn.1400fb3d0
jmp 0x140085746
lea r8, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400f9e00
lea r8, str.32drivers_
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [rsp + 0x490]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.1400fb090
lea r8, [0x14013b2c0]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400fb2c0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140085746
call fcn.1400fb3d0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x6e0], rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [rsp + 0x4c], eax
je 0x140085811
mov ecx, eax
call fcn.1400c90e8
test rax, rax
mov rsi, rax
je 0x140085811
mov r8d, dword [rsp + 0x4c]
lea rcx, [rsp + 0x70]
mov r9, rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140085809
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x58]
lea rdx, [0x14013b180]
mov rcx, rsi
mov qword [rsp + 0x58], rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140085809
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140085809
mov edi, dword [rax + 8]
mov ebx, dword [rax + 0xc]
mov rcx, rsi
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x50], ebx
call fcn.1400c90e0
movzx eax, di
movzx r11d, bx
shr edi, 0x10
mov dword [rsp + 0x30], r11d
shr ebx, 0x10
lea r8, str._d._d._d._d
mov r9d, edi
mov edx, 0x104
mov rcx, r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call fcn.1400fa580
jmp 0x140085816
mov rcx, rsi
call fcn.1400c90e0
mov word [r12], di
cmp dword [rsp + 0x48], 0
mov r12, qword [rsp + 0x6b0]
mov rdi, qword [rsp + 0x6b8]
mov rsi, qword [rsp + 0x6e0]
mov rbx, qword [rsp + 0x6d8]
je 0x140085846
test rbp, rbp
je 0x140085846
mov cl, 1
call rbp
mov eax, 1
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400f9790
add rsp, 0x6c0
pop rbp
ret