Function at 0x51b16f0
Capabilities:
Get common file path
Get file version info
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52344b8
mov eax, dword fs:[0]
push eax
sub esp, 0xd3c
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0xd38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0xd50]
mov dword fs:[0], eax
mov edi, dword [esp + 0xd64]
mov ebp, dword [esp + 0xd60]
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], 0x1c
test edi, edi
jne 0x51b17b5
push str._ERROR:
push 0xff
push 0x308
push str..SysUtilityMETA_SysUtility.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0xd58], edi
push edi
push str.Invalid_input_parameter_DeviceInfoSet__X_
push ebp
push eax
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0xd58], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
xor eax, eax
jmp 0x51b1d25
mov ecx, dword [esp + 0xd6c]
lea eax, [esp + 0x68]
push eax
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x51b17fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x51b17ed
push 0x313
push str..SysUtilityMETA_SysUtility.cpp
push ebp
call fcn.051b0e80
add esp, 0xc
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x51b1d25
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0
push 0x1ff
lea edx, [esp + 0x354]
push edx
push 0
push 0xc
lea eax, [esp + 0x7c]
push eax
push edi
call esi
test eax, eax
jne 0x51b1882
push str._WARNING:
push 0xd2
push 0x325
push str..SysUtilityMETA_SysUtility.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0xd58], 1
push str.Get_friendly_name_failed
push ebp
push eax
call fcn.051ae2d0
or ebx, 0xffffffff
add esp, 0xc
mov dword [esp + 0xd58], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
lea ecx, [esp + 0x34c]
push str.Unknown
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp 0x51b1885
or ebx, 0xffffffff
push 0
push 0x7ff
lea edx, [esp + 0x554]
push edx
push 0
push 1
lea eax, [esp + 0x7c]
push eax
push edi
call esi
lea ecx, [esp + 0x1c]
test eax, eax
jne 0x51b1903
push str._WARNING:
push 0xd2
push 0x332
push str..SysUtilityMETA_SysUtility.cpp
call fcn.051ae270
mov dword [esp + 0xd58], 2
push str.Get_hardware_ID_failed
push ebp
push eax
call fcn.051ae2d0
add esp, 0xc
mov dword [esp + 0xd58], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
lea ecx, [esp + 0x54c]
push str.Unknown
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
jmp 0x51b1953
push 0x52c722a
push 1
push 0x337
push str..SysUtilityMETA_SysUtility.cpp
call fcn.051ae270
mov dword [esp + 0xd58], 3
lea edx, [esp + 0x54c]
push edx
lea ecx, [esp + 0x350]
push ecx
push str._s__Hardware_ID_:__s
push ebp
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0xd58], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
push 0x3f
lea edx, [esp + 0x89]
push 0
push edx
mov byte [esp + 0x90], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0x3f
lea eax, [esp + 0x8c]
push eax
push 0
push 4
lea ecx, [esp + 0x7c]
push ecx
push edi
call esi
test eax, eax
je 0x51b1d12
push 0x5c
lea edx, [esp + 0xec]
push 0
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0xcc]
push edx
mov dword [esp + 0x24], 0
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR90.dll_memset
push 0x103
lea eax, [esp + 0x259]
push 0
push eax
mov byte [esp + 0x260], 0
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x9c]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x51b19e3
lea edi, [esp + 0xc4]
sub eax, ecx
mov esi, ecx
add edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x51b19f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0xd0]
push edx
push Ordinal_6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51b1d0e
push 0x103
push eax
mov byte [esp + 0x14c], al
lea eax, [esp + 0x14d]
push eax
mov dword [esp + 0x4c], 0x103
mov dword [esp + 0x40], 2
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0x3c]
push eax
push 0
push str.ImagePath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51b1cfb
push 0x103
lea edx, [esp + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x144]
add edi, ebx
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x51b1ab0
mov ax, word [0x529230c]
mov word [edi], ax
lea eax, [esp + 0x248]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51b1ad0
lea edi, [esp + 0x144]
sub eax, esi
add edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x51b1ae2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x52c722a
mov ecx, eax
push 1
and ecx, 3
push 0x35c
rep movsb byte es:[edi], byte [esi]
push str..SysUtilityMETA_SysUtility.cpp
lea ecx, [esp + 0x2c]
call fcn.051ae270
mov dword [esp + 0xd58], 4
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x350]
push edx
push str._s__Driver_File_Path_:__s
push ebp
push eax
call fcn.051ae2d0
add esp, 0x14
mov dword [esp + 0xd58], ebx
lea ecx, [esp + 0x1c]
call fcn.051ae2c0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x148]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
ja 0x51b1b79
push 0x364
jmp 0x51b1d00
push esi
lea ecx, [esp + 0x20]
call fcn.0509ee40
mov ebx, 5
mov dword [esp + 0xd58], ebx
mov edi, dword [esp + 0x20]
test edi, edi
je 0x51b1ce5
mov eax, dword [esp + 0x48]
push edi
push esi
push eax
lea ecx, [esp + 0x150]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x51b1ce5
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
push 0x529230c
xor esi, esi
push edi
mov dword [esp + 0x4c], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51b1c37
push 0x52c722a
push 1
push 0x377
push str..SysUtilityMETA_SysUtility.cpp
lea ecx, [esp + 0x64]
call fcn.051ae270
mov byte [esp + 0xd58], 6
mov ecx, dword [esp + 0x4c]
movzx edx, word [ecx + 0xc]
push edx
movzx edx, word [ecx + 0xe]
push edx
movzx edx, word [ecx + 8]
movzx ecx, word [ecx + 0xa]
push edx
push ecx
lea edx, [esp + 0x35c]
push edx
push str._s__Driver_FileVersion_:__d._d._d._d
push ebp
push eax
call fcn.051ae2d0
add esp, 0x20
mov byte [esp + 0xd58], bl
lea ecx, [esp + 0x54]
call fcn.051ae2c0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51b1ce5
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], esi
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x250]
push str.StringFileInfo_04x_04xCompanyName
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x250]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x51b1ce5
push 0x52c722a
push 1
push 0x38c
push str..SysUtilityMETA_SysUtility.cpp
lea ecx, [esp + 0x64]
call fcn.051ae270
mov byte [esp + 0xd58], 7
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x350]
push ecx
push str._s__Driver_File_Manufacturer_:__s
push ebp
push eax
call fcn.051ae2d0
add esp, 0x14
mov byte [esp + 0xd58], bl
lea ecx, [esp + 0x54]
call fcn.051ae2c0
mov dword [esp + 0xd58], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0509ee80
jmp 0x51b1d0e
push 0x394
push str..SysUtilityMETA_SysUtility.cpp
push ebp
call fcn.051b0e80
add esp, 0xc
mov edi, dword [esp + 0x14]
push 2
lea edx, [esp + 0x6c]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, 1
mov ecx, dword [esp + 0xd50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd38]
xor ecx, esp
call fcn.0520b902
add esp, 0xd48
ret