Function at 0x405490
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x420
xor eax, eax
lea edx, [esp + 0x10]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.High_Speed_USB_MultiSerial_Compound_Device
or ecx, 0xffffffff
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
mov eax, dword [ebx + 4]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x405754
push str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
mov ecx, ebx
call fcn.00405810
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40570b
lea edx, [esp + 0x32c]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x24]
mov ebp, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4056fe
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
lea edx, [esp + 0x334]
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4056da
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.InfSection
push ecx
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x4056cf
mov eax, dword [esp + 0x14]
mov edi, 4
cmp eax, edi
jbe 0x4056cf
lea edx, [esp + 0x124]
mov ecx, ebx
push edx
call fcn.004057e0
push 0xb
lea eax, [esp + 0x128]
push str.mosquadcomp
push eax
mov dword [esp + 0x20], 0x104
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x4056cf
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.DriverDesc
push ecx
call esi
test eax, eax
jne 0x4056cf
cmp dword [esp + 0x14], edi
jbe 0x4056cf
or ecx, 0xffffffff
lea edi, [esp + 0x124]
xor eax, eax
lea edx, [esp + 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
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 eax, dword [ebx + 4]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4056be
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00405810
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00405970
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x32c]
mov eax, ebp
push 0x104
push ecx
push eax
push edx
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40554c
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405754
cmp eax, 2
je 0x405754
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x405749
mov edx, dword [esp + 0x10]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
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 ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4057bd
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00405810
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00405970
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret