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

Disassembly:
sub esp, 0x2a0
push ebx
push esi
mov eax, dword [str.matchingdeviceid]
mov edx, dword [0x40af68]
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassMedia
lea edi, [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40af64]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x2c], eax
mov eax, dword [0x40af6c]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x38], eax
push edx
push 0x20019
lea eax, [esp + 0x1b4]
mov dword [esp + 0x38], ecx
mov cl, byte [0x40af70]
push 0
push eax
push 0x80000002
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x23], 0
movsw word es:[edi], word [esi]
mov byte [esp + 0x50], cl
call ebx
test eax, eax
je 0x404964
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x2a0
ret
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x80]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404b00
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or ecx, 0xffffffff
lea edi, [esp + 0x1b0]
xor eax, eax
lea edx, [esp + 0xb0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xb0]
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, 0x40aa58
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 ecx, edx
lea edx, [esp + 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x70]
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 ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0xb8]
push 0
push ecx
push 0x80000002
call ebx
push 0x100
call fcn.00405b70
mov ecx, dword [esp + 0x24]
add esp, 4
lea edx, [esp + 0x24]
mov esi, eax
push edx
push esi
push 0
lea eax, [esp + 0x3c]
push 0
push eax
push ecx
mov dword [esp + 0x3c], 0x200
mov dword [esp + 0x30], 0x40
call ebp
push str.modemwave
push esi
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x404aa6
push str.MODEMWAVE
push esi
call fcn.00405a30
add esp, 8
test eax, eax
je 0x404ac9
lea edx, [esp + 0xb0]
push edx
call fcn.004020b0
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x17]
add esp, 4
dec ecx
inc al
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], al
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4049a8
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x404b10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2a0
ret