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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140007500
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x10f8], rbx
mov qword [rsp + 0x1100], rsi
mov rax, qword [0x140012528]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
mov rbx, rcx
mov edx, dword [rcx + 0x1030]
mov rcx, qword [rcx + 0x1028]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
or rsi, 0xffffffffffffffff
cmp eax, dword [rbx + 0x1030]
jbe 0x140006f9d
mov dword [rbx + 0x1030], eax
mov rcx, qword [rbx + 0x1028]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov r11d, dword [rbx + 0x1030]
mov eax, 2
mul r11
cmovo rax, rsi
mov rcx, rax
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
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 0x140006fce
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0x268
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.GetWindowsDirectory_failed
lea rcx, [rsp + 0x48]
call fcn.140004f90
xor r14d, r14d
mov dword [rsp + 0x40], r14d
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 0x14000700b
mov ecx, dword [rbx + 0x1040]
shl rcx, 3
cmp rdx, rcx
jbe 0x14000708c
shr edx, 3
mov dword [rbx + 0x1040], edx
mov rcx, qword [rbx + 0x1038]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_
mov r11d, dword [rbx + 0x1040]
mov eax, 8
mul r11
cmovo rax, rsi
mov rcx, rax
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
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 0x14000708c
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], 0x273
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rbx + 0x1038]
lea r8, str.EnumDeviceDrivers_failed___p___u_
lea rcx, [rsp + 0x48]
call fcn.140004f90
mov r13d, r14d
cmp dword [rbx + 0x1040], r14d
jbe 0x140007333
mov r12, r14
nop
mov rcx, qword [rbx + 0x1038]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, qword [r12 + rcx]
call sub.PSAPI.DLL_GetDeviceDriverBaseNameW
test eax, eax
je 0x1400072dc
mov r8d, 4
lea rdx, [rbp - 0x50]
lea rcx, str.vbox
call qword [sym.imp.MSVCR100.dll__wcsnicmp]
test eax, eax
jne 0x1400072dc
mov rcx, qword [rbx + 0x1038]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, qword [r12 + rcx]
call sub.PSAPI.DLL_GetDeviceDriverFileNameW
test eax, eax
je 0x1400072c0
lea rsi, [rbp - 0x50]
mov r8d, SafeArrayGetDim
lea rdx, [rbp - 0x50]
lea rcx, str.SystemRoot
call qword [sym.imp.MSVCR100.dll_wcsncmp]
test eax, eax
jne 0x140007171
mov r9d, dword [rbx + 0x1030]
mov r8, qword [rbx + 0x1028]
mov edx, 0x400
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov r11d, dword [rbx + 0x1030]
mov r9d, 0x400
sub r9, r11
lea r8, [rbp - 0x3a]
mov edx, 0x400
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
lea rdi, [rbp + 0x7b0]
jmp 0x140007192
mov r8d, 4
lea rdx, [rbp - 0x50]
lea rcx, [0x14000c7a0]
call qword [sym.imp.MSVCR100.dll_wcsncmp]
lea rdi, [rbp - 0x48]
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 0x1400071de
mov rcx, qword [rbx + 0x1048]
test rcx, rcx
je 0x1400071b8
call qword [sym.imp.VBoxRT.dll_RTMemTmpFree]
mov dword [rbx + 0x1050], esi
mov rcx, rsi
lea rdx, str.F:_tinderboxwin_6.0_srcVBoxFrontendsVBoxBugReportVBoxBugReportWin.cpp
call qword [sym.imp.VBoxRT.dll_RTMemTmpAllocTag]
mov qword [rbx + 0x1048], rax
test rax, rax
je 0x1400072f1
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 0x1400072ae
mov dword [rsp + 0x44], r14d
mov qword [rsp + 0x48], r14
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [0x14000c79c]
mov rcx, qword [rbx + 0x1048]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000729a
cmp dword [rsp + 0x44], r14d
je 0x140007286
mov r8, qword [rsp + 0x48]
cmp dword [r8], 0xfeef04bd
jne 0x140007272
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx eax, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
mov r8, rdi
lea rdx, str._ls__Version:__d._d._d._d__n
mov rcx, rbx
call fcn.140001570
jmp 0x1400072dc
mov r8, rdi
lea rdx, str._ls___invalid_signature_n
mov rcx, rbx
call fcn.140001570
jmp 0x1400072dc
mov r8, rdi
lea rdx, str._ls___version_info_size_is_0_n
mov rcx, rbx
call fcn.140001570
jmp 0x1400072dc
mov r8, rdi
lea rdx, str._ls___failed_to_query_version_info_size_n
mov rcx, rbx
call fcn.140001570
jmp 0x1400072dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str._ls___failed_to_get_version_info_with_0x_x_n
jmp 0x1400072d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp - 0x50]
lea rdx, str._ls___GetDeviceDriverFileName_failed_with_0x_x_n
mov r9d, eax
mov rcx, rbx
call fcn.140001570
inc r13d
add r12, 8
cmp r13d, dword [rbx + 0x1040]
jae 0x140007333
jmp 0x1400070a0
mov r8d, dword [rbx + 0x1050]
lea rdx, str.Failed_to_allocate__u_bytes
lea rcx, [rsp + 0x48]
call fcn.140001060
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 + 0x70]
call qword [sym.imp.VBoxRT.dll_public:_void___cdecl_RTCError::constructor_char_const____ptr64____ptr64]
lea rdx, [0x14000ff28]
lea rcx, [rsp + 0x70]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.1400074d0
lea r11, [rsp + 0x10c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret