Function at 0x404ec0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x428
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 4]
mov dword [esp + 0xc], ebp
test eax, eax
je 0x4050f6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
mov ecx, ebp
stosb byte es:[edi], al
call fcn.00405810
lea eax, [esp + 0x18]
push eax
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 0x4050a6
mov edx, dword [esp + 0x18]
mov edi, 0x104
push ebx
lea ecx, [esp + 0x28]
push edi
push ecx
push eax
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x405098
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0xf003f
lea ecx, [esp + 0x30]
push 0
push ecx
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405072
lea eax, [esp + 0x14]
lea ecx, [esp + 0x334]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push str.InfSection
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x405072
mov eax, dword [esp + 0x14]
mov esi, 4
cmp eax, esi
jbe 0x405072
lea ecx, [esp + 0x334]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004057e0
push 0xb
lea edx, [esp + 0x338]
push str.mosquadcomp
push edx
mov dword [esp + 0x20], edi
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x405072
lea eax, [esp + 0x14]
lea ecx, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push str.MatchingDeviceId
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x405072
cmp dword [esp + 0x14], esi
jbe 0x405072
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x230]
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 edx, dword [esp + 0x1c]
mov edi, 0x104
lea ecx, [esp + 0x28]
mov eax, ebx
push edi
push ecx
push eax
push edx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404f80
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x4050ef
cmp eax, 2
je 0x4050ef
push 0
lea ecx, [esp + 0x10]
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 0x4050e4
mov edx, dword [esp + 0xc]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x4050fd
mov esi, str.EnumUSB
jmp 0x40510a
mov esi, str.SystemCurrentControlSetEnumUSB
mov ecx, ebp
push esi
call fcn.00405810
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405284
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x24]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
mov esi, 1
call edi
test eax, eax
jne 0x40526f
push 0x11
lea ecx, [esp + 0x28]
push str.Vid_9710Pid_7840
push ecx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea edx, [esp + 0x28]
push str.Vid_9710Pid_7820
push edx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea eax, [esp + 0x28]
push str.Vid_9710Pid_7841
push eax
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea ecx, [esp + 0x28]
push str.Vid_9710Pid_7821
push ecx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea edx, [esp + 0x28]
push str.Vid_9710Pid_7842
push edx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea eax, [esp + 0x28]
push str.Vid_9710Pid_7822
push eax
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea ecx, [esp + 0x28]
push str.Vid_9710Pid_7843
push ecx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
push 0x11
lea edx, [esp + 0x28]
push str.Vid_9710Pid_7823
push edx
call fcn.0040f139
add esp, 0xc
test eax, eax
je 0x405236
lea eax, [esp + 0x22c]
push 0x11
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040f139
add esp, 0xc
test eax, eax
jne 0x405252
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, ebp
call fcn.00405970
test eax, eax
je 0x405252
sub esi, 2
jns 0x405252
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov eax, esi
push 0x104
push ecx
push eax
push edx
inc esi
call edi
test eax, eax
je 0x40514f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x428
ret
cmp eax, 2
je 0x4052cd
push 0
lea ecx, [esp + 0x10]
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 0x4052c2
mov edx, dword [esp + 0xc]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
add esp, 0x428
ret