Function at 0x1401688a0
Capabilities:
Enumerate device drivers on windows
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x31a0]
mov eax, 0x32a0
call fcn.1401afab0
sub rsp, rax
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rbp + 0x3190], rax
xor r14d, r14d
lea rsi, [rbp - 0x80]
mov edx, 0x104
mov qword [rsp + 0x58], rsi
lea rcx, [rbp + 0x1f80]
mov ebx, r14d
mov r12d, r14d
lea r13, [rbp + 0x1f80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401689bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x140168923
mov ebx, eax
jmp 0x14016892c
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x14016897c
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r15, str.C:_virtualbox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x18b5
lea r9, str.AssertLogRel__s__d___s:__s_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], r15
mov r8d, 0x145
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e7b
mov dword [rsp + 0x30], edi
lea r9, str.GetWindowsDirectory_failed__hrc_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
jmp 0x140168e7b
lea r15, str.C:_virtualbox_srcVBoxMain_src_serverVirtualBoxImpl.cpp
cmp edi, 0x104
jbe 0x140168b1f
mov rcx, rdi
mov rdx, r15
add rcx, rcx
call qword [sym.imp.BstkRT.dll_RTMemTmpAllocTag]
mov r13, rax
test rax, rax
jne 0x140168a6a
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140168a32
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov dword [rsp + 0x28], 0x18be
lea edx, [r13 + 0x10]
mov r8d, 0x145
mov qword [rsp + 0x20], r15
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e66
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
jmp 0x140168e66
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140168b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x140168a8d
mov ebx, eax
jmp 0x140168a96
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140168adf
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov dword [rsp + 0x28], 0x18c6
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov qword [rsp + 0x20], r15
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e66
mov dword [rsp + 0x30], edi
lea r9, str.GetWindowsDirectory_failed__hrc_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
jmp 0x140168e66
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov edx, 0x2000
lea rcx, [rbp - 0x80]
call sub.PSAPI.DLL_EnumDeviceDrivers
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140168b4b
cmp ecx, 0x2000
jbe 0x140168c17
mov rdx, r15
call qword [sym.imp.BstkRT.dll_RTMemTmpAllocTag]
mov edx, dword [rsp + 0x50]
lea r8, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
jne 0x140168c17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x140168b85
mov ebx, eax
jmp 0x140168b8e
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140168bd7
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov dword [rsp + 0x28], 0x18d4
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov qword [rsp + 0x20], r15
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e52
mov dword [rsp + 0x30], edi
lea r9, str.EnumDeviceDrivers_failed__hrc_Rhrc__0x_x__err_u_n
mov dword [rsp + 0x28], ebx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
jmp 0x140168e52
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168c42
lea r9, str.Installed_Drivers:_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov edi, dword [rsp + 0x50]
shr rdi, 3
mov qword [rsp + 0x68], rdi
test rdi, rdi
je 0x140168e52
nop dword [rax + rax]
mov rcx, qword [rsi + r14*8]
lea rdx, [rbp + 0x2190]
mov r8d, 0x400
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x140168e38
mov r8d, 4
lea rdx, [rbp + 0x2190]
lea rcx, [0x1402d4668]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140168e38
mov rcx, qword [rsi + r14*8]
lea rdx, [rbp + 0x2190]
mov r8d, 0x400
call sub.PSAPI.DLL_GetDeviceDriverFileNameW
test eax, eax
je 0x140168e38
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, [rbp + 0x2190]
lea rcx, str.SystemRoot
lea rdi, [rbp + 0x2190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140168d1f
mov r8, r13
lea rcx, [rbp + 0x2990]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r9d, 0x3ff
lea r8, [rbp + 0x21a6]
lea rcx, [rbp + 0x2990]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rsi, [rbp + 0x2990]
jmp 0x140168d46
mov r8d, 4
lea rdx, [rbp + 0x2190]
lea rcx, [0x1402d4690]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
lea rsi, [rbp + 0x2198]
cmovne rsi, rdi
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp eax, r12d
jbe 0x140168d80
test rbx, rbx
je 0x140168d65
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemTmpFree]
mov rcx, rdi
mov rdx, r15
mov r12d, edi
call qword [sym.imp.BstkRT.dll_RTMemTmpAllocTag]
mov rbx, rax
test rax, rax
je 0x140168eab
mov r9, rbx
mov r8d, r12d
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140168e2e
xor eax, eax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x60], eax
lea rdx, [0x1402d469c]
mov qword [rsp + 0x70], rax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140168e2e
cmp dword [rsp + 0x60], 0
je 0x140168e2e
mov rdi, qword [rsp + 0x70]
cmp dword [rdi], 0xfeef04bd
jne 0x140168e2e
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e2e
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 0xc]
movzx edx, r8w
mov dword [rsp + 0x40], edx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
movzx ecx, r9w
shr r8d, 0x10
mov dword [rsp + 0x38], r8d
mov r8d, 0x145
mov dword [rsp + 0x30], ecx
mov rcx, rax
shr r9d, 0x10
mov dword [rsp + 0x28], r9d
lea r9, str.___ls__Version:__d._d._d._d__n
mov qword [rsp + 0x20], rsi
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
inc r14
cmp r14, rdi
jl 0x140168c60
test rbx, rbx
je 0x140168e52
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemTmpFree]
mov rcx, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
cmp rcx, rax
je 0x140168e66
call qword [sym.imp.BstkRT.dll_RTMemTmpFree]
lea rax, [rbp + 0x1f80]
cmp r13, rax
je 0x140168e7b
mov rcx, r13
call qword [sym.imp.BstkRT.dll_RTMemTmpFree]
mov rcx, qword [rbp + 0x3190]
xor rcx, rsp
call fcn.1401af5e0
lea r11, [rsp + 0x32a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140168ef8
mov qword [rsp + 0x38], 0
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r9, str.AssertLogRel__s__d___s:__s_n
mov dword [rsp + 0x28], 0x18fd
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov qword [rsp + 0x20], r15
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov ecx, 0x1450010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140168e52
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x145
mov rcx, rax
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
jmp 0x140168e52