Function at 0x432370
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x420
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x124]
push str.GetDriverVersionInfo:_Begin_n
push 2
push 1
rep stosd dword es:[edi], eax
xor ebp, ebp
call fcn.004048e0
mov edi, dword [esp + 0x440]
add esp, 0xc
test edi, edi
je 0x432703
mov eax, dword [esp + 0x438]
test eax, eax
je 0x432703
mov eax, dword [esp + 0x43c]
test eax, eax
je 0x432703
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x432703
mov esi, dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebx
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x440]
push ebx
push edx
push 9
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ebp, eax
test ebp, ebp
jne 0x43247b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x432463
test ebx, ebx
je 0x432427
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call esi
mov ecx, dword [esp + 0x438]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x24]
push ebx
push eax
push 9
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ebp, eax
test ebp, ebp
je 0x432411
jmp 0x43247b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetDeviceRegistryProperty_Failed_with_Err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
test ebx, ebx
je 0x432703
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4326fc
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.SYSTEMCurrentControlSetControlClass_
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
cmp edx, 0x104
jae 0x4326fc
push ebx
push str.SYSTEMCurrentControlSetControlClass_
lea eax, [esp + 0x12c]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
push 1
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4326ea
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.DriverVersion
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4326c1
mov esi, dword [esp + 0x43c]
mov ebp, 1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x432559
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x14], 0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
test edx, edx
mov dword [esi + 0x14], edx
je 0x4325a0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x43c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push str.InfPath
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4326c1
mov ecx, 0x41
lea edi, [esp + 0x228]
lea edx, [esp + 0x228]
push 0x104
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4326d3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x32c]
lea edx, [esp + 0x32c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x228]
push eax
push ecx
push str._sinf_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x32c]
lea ecx, [esp + 0x20]
push eax
push 0x104
push ecx
push 0x47a6e8
push str.DriverVer
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4326d3
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
je 0x43267f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x10], 0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
test edx, edx
mov dword [esi + 0x10], edx
je 0x4326d3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4326d3
push eax
push str.RegQueryValueEx_failed_with_err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4326fc
push eax
push str.RegCloseKey_failed_with_err:__d_n
jmp 0x4326f0
push eax
push str.RegOpenKeyEx_failed_with_err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
push str.GetDriverVersionInfo:_End:_RetVal:__d_n
push 2
push 1
call fcn.004048e0
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret