Function at 0x1401800c0
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.1401db860
sub rsp, rax
mov rax, qword [0x140445eb8]
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 0x1401801dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x140180143
mov ebx, eax
jmp 0x14018014c
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x14018019c
mov qword [rsp + 0x38], r14
lea rax, str.void___cdecl_VirtualBox::i_reportDriverVersions_void_
mov qword [rsp + 0x30], rax
lea r15, str.D:_tinderboxawin_7.0_srcVBoxMain_src_serverVirtualBoxImpl.cpp
mov dword [rsp + 0x28], 0x18aa
lea r9, str.AssertLogRel__s__d___s:__s_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], r15
mov r8d, 0x146
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x14018069b
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, 0x146
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x14018069b
lea r15, str.D:_tinderboxawin_7.0_srcVBoxMain_src_serverVirtualBoxImpl.cpp
cmp edi, 0x104
jbe 0x14018033f
mov rcx, rdi
mov rdx, r15
add rcx, rcx
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov r13, rax
test rax, rax
jne 0x14018028a
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140180252
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], 0x18b3
lea edx, [r13 + 0x10]
mov r8d, 0x146
mov qword [rsp + 0x20], r15
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140180686
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x140180686
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14018033f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x1401802ad
mov ebx, eax
jmp 0x1401802b6
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401802ff
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], 0x18bb
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov qword [rsp + 0x20], r15
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140180686
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, 0x146
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x140180686
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 0x14018036b
cmp ecx, 0x2000
jbe 0x140180437
mov rdx, r15
call qword [sym.imp.VBoxRT.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 0x140180437
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jg 0x1401803a5
mov ebx, eax
jmp 0x1401803ae
movzx ebx, di
or ebx, 0x80070000
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x1401803f7
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], 0x18c9
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov qword [rsp + 0x20], r15
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140180672
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, 0x146
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x140180672
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140180462
lea r9, str.Installed_Drivers:_n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov edi, dword [rsp + 0x50]
shr rdi, 3
mov qword [rsp + 0x68], rdi
test rdi, rdi
je 0x140180672
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 0x140180658
mov r8d, 4
lea rdx, [rbp + 0x2190]
lea rcx, [0x14030f648]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140180658
mov rcx, qword [rsi + r14*8]
lea rdx, [rbp + 0x2190]
mov r8d, 0x400
call sub.PSAPI.DLL_GetDeviceDriverFileNameW
test eax, eax
je 0x140180658
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 0x14018053f
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 0x140180566
mov r8d, 4
lea rdx, [rbp + 0x2190]
lea rcx, [0x14030f670]
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 0x1401805a0
test rbx, rbx
je 0x140180585
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov rcx, rdi
mov rdx, r15
mov r12d, edi
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov rbx, rax
test rax, rax
je 0x1401806cb
mov r9, rbx
mov r8d, r12d
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14018064e
xor eax, eax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x60], eax
lea rdx, [0x14030f67c]
mov qword [rsp + 0x70], rax
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14018064e
cmp dword [rsp + 0x60], 0
je 0x14018064e
mov rdi, qword [rsp + 0x70]
cmp dword [rdi], 0xfeef04bd
jne 0x14018064e
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x14018064e
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, 0x146
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.VBoxRT.dll_RTLogLoggerEx]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
inc r14
cmp r14, rdi
jl 0x140180480
test rbx, rbx
je 0x140180672
mov rcx, rbx
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov rcx, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
cmp rcx, rax
je 0x140180686
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
lea rax, [rbp + 0x1f80]
cmp r13, rax
je 0x14018069b
mov rcx, r13
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov rcx, qword [rbp + 0x3190]
xor rcx, rsp
call fcn.1401db5e0
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, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
mov rcx, rax
test rax, rax
je 0x140180718
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], 0x18f2
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov qword [rsp + 0x20], r15
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
mov ecx, 0x1460010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140180672
lea r9, str.RTMemTmpAlloc_failed_to_allocate__d_bytes_n
mov dword [rsp + 0x20], edi
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x146
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
jmp 0x140180672