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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
mov dword [ebp - 4], 0xffffffff
call fcn.0042a7c3
test eax, eax
jne 0x42ac0e
xor eax, eax
jmp 0x42b0db
mov dword [ebp - 0xc], 1
push 4
push 0
push 0
push 0
call dword [0x5cf31c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x42ac38
call fcn.0042a9f4
xor eax, eax
jmp 0x42b0db
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x30], 0
mov eax, 1
test eax, eax
je 0x42b0bf
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [0x5d0338]
test eax, eax
jne 0x42ac7c
jmp 0x42b0bf
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x544], 0x400
lea edx, [ebp - 0x540]
mov dword [ebp - 0x13c], edx
mov dword [ebp - 8], 0
lea eax, [ebp - 0x544]
push eax
mov ecx, dword [ebp - 0x544]
push ecx
lea edx, [ebp - 0x540]
push edx
lea eax, [ebp - 0x140]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [0x5d0330]
test eax, eax
jne 0x42ace1
jmp 0x42b0ba
lea eax, [ebp - 0x540]
mov dword [ebp - 0x13c], eax
jmp 0x42ad0c
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x13c]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 8], 0
jne 0x42b0ba
mov ecx, dword [ebp - 0x544]
lea edx, [ebp + ecx - 0x540]
cmp dword [ebp - 0x13c], edx
jae 0x42b0ba
mov eax, dword [ebp - 0x13c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42b0ba
mov dword [ebp - 0x554], 0
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov dword [ebp - 0x550], 0
jmp 0x42ad72
mov eax, dword [ebp - 0x550]
add eax, 1
mov dword [ebp - 0x550], eax
mov ecx, dword [ebp - 0x550]
cmp ecx, dword [0x5d0340]
jge 0x42adb7
mov edx, dword [ebp - 0x550]
shl edx, 7
add edx, 0x5cf320
push edx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x42adb5
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0x550]
mov dword [ebp - 4], ecx
jmp 0x42adb7
jmp 0x42ad63
cmp dword [ebp - 8], 0
je 0x42b0b5
mov dword [ebp - 0x54c], 0x104
lea edx, [ebp - 0x54c]
push edx
mov eax, dword [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x140]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x5d0330]
test eax, eax
je 0x42b0b5
mov dword [ebp - 0x760], 0
push 0x104
push 0
lea edx, [ebp - 0x864]
push edx
call fcn.0054bfb0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x75c]
push eax
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x54c], 0x104
lea ecx, [ebp - 0x54c]
push ecx
mov edx, dword [ebp - 0x54c]
push edx
lea eax, [ebp - 0x75c]
push eax
lea ecx, [ebp - 0x140]
push ecx
push 9
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [0x5d0330]
push 0x5a4894
lea ecx, [ebp - 0x864]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x75c]
push edx
lea eax, [ebp - 0x864]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x760]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x864]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x42b088
mov dword [ebp - 0x54c], 0x104
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x658]
push ecx
push 0
push 0
push str.InfPath
mov edx, dword [ebp - 0x760]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x548], eax
cmp dword [ebp - 0x548], 0
jne 0x42b088
cmp dword [ebp + 0x10], 0
je 0x42af84
push 0x40
lea eax, [ebp - 0x8a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5a48c4
lea ecx, [ebp - 0x8a4]
push ecx
call fcn.0054bed0
add esp, 8
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x8a4]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x8a4]
push ecx
push 0x40
lea edx, [ebp - 0x8e4]
push edx
push 0x5d0344
push 0x5a48cc
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x42af84
lea eax, [ebp - 0x658]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x658]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
push str.USBSTOR
lea eax, [ebp - 0x658]
push eax
call fcn.0054ccc0
add esp, 8
test eax, eax
jne 0x42b088
cmp dword [ebp + 0xc], 0
je 0x42b088
push 0x40
lea ecx, [ebp - 0x964]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.inf_
lea edx, [ebp - 0x964]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x964]
push eax
lea ecx, [ebp - 0x924]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x964]
push eax
call fcn.0054bed0
add esp, 8
push 0x5a48f0
lea ecx, [ebp - 0x924]
push ecx
call fcn.0054bed0
add esp, 8
lea edx, [ebp - 0x964]
push edx
push 0x40
lea eax, [ebp - 0x9a4]
push eax
push 0x5d0348
push 0x5a4900
push 0x5a490c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x42b052
lea ecx, [ebp - 0x658]
push ecx
call fcn.0042aabb
add esp, 4
lea edx, [ebp - 0x924]
push edx
push 0x40
lea eax, [ebp - 0x9a4]
push eax
push 0x5d034c
push str.SMIICName
push str.strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x42b088
push str.smi32x2k.inf
call fcn.0042aabb
add esp, 4
mov ecx, dword [ebp - 0x760]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
je 0x42b0ae
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [0x5d0334]
mov dword [ebp - 0xc], eax
jmp 0x42b0b5
mov dword [ebp - 0xc], 1
jmp 0x42acef
jmp 0x42ac54
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x5d0320]
call fcn.0042a9f4
cmp dword [ebp - 4], 0
jl 0x42b0d9
mov eax, dword [ebp - 0xc]
jmp 0x42b0db
xor eax, eax
mov esp, ebp
pop ebp
ret