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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.140007600
sub rsp, rax
mov rax, qword [0x140011108]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rbx, rcx
mov edx, dword [rcx + 0x1030]
mov rcx, qword [rcx + 0x1028]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rsi, 0xffffffffffffffff
cmp eax, dword [rbx + 0x1030]
jbe 0x140006331
mov dword [rbx + 0x1030], eax
mov rcx, qword [rbx + 0x1028]
call fcn.14000730c
mov ecx, dword [rbx + 0x1030]
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400076ac
mov qword [rbx + 0x1028], rax
mov edx, dword [rbx + 0x1030]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdi, str.BugReportDriversWin::enumerateDrivers
test eax, eax
jne 0x140006362
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0x272
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetWindowsDirectory_failed
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400071c0
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov edx, dword [rbx + 0x1040]
shl edx, 3
lea r8, [rsp + 0x40]
mov rcx, qword [rbx + 0x1038]
call sub.PSAPI.DLL_EnumDeviceDrivers
mov edx, dword [rsp + 0x40]
test eax, eax
je 0x14000639f
mov ecx, dword [rbx + 0x1040]
shl rcx, 3
cmp rdx, rcx
jbe 0x140006422
shr edx, 3
mov dword [rbx + 0x1040], edx
mov rcx, qword [rbx + 0x1038]
call fcn.14000730c
mov ecx, dword [rbx + 0x1040]
mov eax, 8
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400076ac
mov qword [rbx + 0x1038], rax
lea r8, [rsp + 0x40]
mov edx, dword [rsp + 0x40]
mov rcx, rax
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
jne 0x140006422
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0x27d
mov edi, dword [rsp + 0x40]
mov rsi, qword [rbx + 0x1038]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, str.EnumDeviceDrivers_failed___p___u_
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400071c0
mov r14d, r15d
cmp dword [rbx + 0x1040], r15d
jbe 0x14000667f
mov eax, r14d
lea rdi, [rax*8]
mov rcx, qword [rbx + 0x1038]
mov r8d, 0x400
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + rcx]
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x14000666f
mov r8d, 4
lea rdx, [rbp - 0x60]
lea rcx, str.vbox
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14000666f
mov rcx, qword [rbx + 0x1038]
mov r8d, 0x400
lea rdx, [rbp - 0x60]
mov rcx, qword [rdi + rcx]
call sub.PSAPI.DLL_GetDeviceDriverFileNameW
test eax, eax
je 0x140006653
lea rsi, [rbp - 0x60]
mov r8d, SafeArrayGetDim
lea rdx, [rbp - 0x60]
lea rcx, str.SystemRoot
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14000650d
mov r9d, dword [rbx + 0x1030]
mov r8, qword [rbx + 0x1028]
mov edx, 0x400
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [rbx + 0x1030]
mov r9d, 0x400
sub r9, rax
lea r8, [rbp - 0x4a]
mov edx, 0x400
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rdi, [rbp + 0x7a0]
jmp 0x14000652e
mov r8d, 4
lea rdx, [rbp - 0x60]
lea rcx, [0x14000bf28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
lea rdi, [rbp - 0x58]
test eax, eax
cmovne rdi, rsi
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp eax, dword [rbx + 0x1050]
jbe 0x14000657a
mov rcx, qword [rbx + 0x1048]
test rcx, rcx
je 0x140006554
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov dword [rbx + 0x1050], esi
mov rcx, rsi
lea rdx, [0x14000ab65]
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov qword [rbx + 0x1048], rax
test rax, rax
je 0x1400066ab
mov r9, qword [rbx + 0x1048]
mov r8d, dword [rbx + 0x1050]
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140006641
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x48], r15
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [0x14000bf34]
mov rcx, qword [rbx + 0x1048]
call sub.VERSION.dll_VerQueryValueW
mov r8, rdi
test eax, eax
je 0x140006630
cmp dword [rsp + 0x44], r15d
je 0x14000661f
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0xfeef04bd
jne 0x14000660e
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
shr edx, 0x10
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
lea rdx, str._ls__Version:__d._d._d._d__n
mov rcx, rbx
call fcn.1400035b0
jmp 0x14000666f
lea rdx, str._ls___invalid_signature_n
mov rcx, rbx
call fcn.1400035b0
jmp 0x14000666f
lea rdx, str._ls___version_info_size_is_0_n
mov rcx, rbx
call fcn.1400035b0
jmp 0x14000666f
lea rdx, str._ls___failed_to_query_version_info_size_n
mov rcx, rbx
call fcn.1400035b0
jmp 0x14000666f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str._ls___failed_to_get_version_info_with_0x_x_n
jmp 0x140006664
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp - 0x60]
lea rdx, str._ls___GetDeviceDriverFileName_failed_with_0x_x_n
mov r9d, eax
mov rcx, rbx
call fcn.1400035b0
inc r14d
cmp r14d, dword [rbx + 0x1040]
jb 0x140006432
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140007660
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r8d, dword [rbx + 0x1050]
lea rdx, str.Failed_to_allocate__u_bytes
lea rcx, [rsp + 0x48]
call fcn.1400014f0
nop
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov rdx, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCError::constructor_char_const____ptr64____ptr64]
lea rdx, [0x14000ed18]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3