Function at 0x60167b0
Capabilities:
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
sub esp, 0xd1c
push ebx
push ebp
mov ebp, dword [esp + 0xd28]
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x48]
xor ebx, ebx
rep stosd dword es:[edi], eax
cmp ebp, ebx
mov dword [esp + 0x44], 0x1c
jne 0x601680a
push ebx
lea eax, [esp + 0x10]
push str.Invalid_input_parameter_DeviceInfoSet__X_
push eax
mov dword [esp + 0x18], str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
mov dword [esp + 0x1c], 0x152
call fcn.060010c0
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xd1c
ret
mov edx, dword [esp + 0xd34]
lea ecx, [esp + 0x44]
push ecx
push edx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x6016864
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x6016851
lea eax, [esp + 0xc]
push str.SetupDiEnumDeviceInfo___fail_
push eax
mov dword [esp + 0x14], str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
mov dword [esp + 0x18], 0x15d
call fcn.060010c0
add esp, 8
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd1c
ret
push esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push ebx
lea ecx, [esp + 0x330]
push 0x1ff
push ecx
push ebx
lea edx, [esp + 0x58]
push 0xc
push edx
push ebp
call esi
test eax, eax
mov edi, str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
jne 0x60168c1
lea eax, [esp + 0x10]
push str.Get_friendly_name_failed_
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x16f
call fcn.060010c0
add esp, 8
lea ecx, [esp + 0x32c]
push str.Unknown
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
push ebx
lea edx, [esp + 0x530]
push 0x7ff
push edx
push ebx
lea eax, [esp + 0x58]
push 1
push eax
push ebp
call esi
test eax, eax
jne 0x6016914
lea ecx, [esp + 0x10]
push str.Get_hardware_ID_failed_
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x17c
call fcn.060010c0
add esp, 8
lea edx, [esp + 0x52c]
push str.Unknown
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
jmp 0x6016942
lea eax, [esp + 0x52c]
lea ecx, [esp + 0x32c]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s__Hardware_ID_:__s
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x181
call fcn.060010c0
add esp, 0x10
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x68]
push 0x3f
push eax
push ebx
lea ecx, [esp + 0x58]
push 4
push ecx
push ebp
call esi
test eax, eax
je 0x6016c8b
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0xa4]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x17
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x229]
mov byte [esp + 0x228], bl
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0xac]
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6016c8b
mov ecx, 0x40
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x228]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
push str.ImagePath
push edx
mov dword [esp + 0x4c], 0x103
mov dword [esp + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6016c69
lea eax, [esp + 0x124]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x6021080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0x1a6
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x124]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x330]
lea edx, [esp + 0x14]
push ecx
mov edi, str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
push str._s__Driver_File_Path_:__s
push edx
mov dword [esp + 0x20], edi
call fcn.060010c0
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x124]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
ja 0x6016b3e
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x1af
push str.Get_file_version_info_size_failed_
lea eax, [esp + 0x14]
jmp 0x6016c82
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea edx, [esp + 0x124]
push edi
push esi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x6016c5e
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x6021080
push edi
mov dword [esp + 0x54], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x6016bcf
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
mov dword [esp + 0x28], 0x1c5
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
lea edx, [esp + 0x2c]
and eax, 0xffff
shr ecx, 0x10
push eax
push ecx
lea ecx, [esp + 0x33c]
push ecx
push str._s__Driver_FileVersion_:__d._d._d._d
push edx
call fcn.060010c0
add esp, 0x1c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x6016c5e
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x30], ebx
xor ecx, ecx
mov dx, word [eax + 2]
mov cx, word [eax]
push edx
push ecx
lea edx, [esp + 0x230]
push str.StringFileInfo_04x_04xCompanyName
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x30]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x228]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x6016c5e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x32c]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s__Driver_File_Manufacturer_:__s
push edx
mov dword [esp + 0x2c], str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
mov dword [esp + 0x30], 0x1d9
call fcn.060010c0
add esp, 0x10
push edi
call fcn.06017907
add esp, 4
jmp 0x6016c8b
mov dword [esp + 0x1c], str.E:_svneboot_dll_trunkUSB_Retrieve.cpp
mov dword [esp + 0x20], 0x1e1
push str.Query_registry_values_failed_
lea eax, [esp + 0x20]
push eax
call fcn.060010c0
add esp, 8
lea ecx, [esp + 0x48]
push 2
push ecx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd1c
ret