Function at 0x408100
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
push ebp
push esi
mov eax, dword [str.matchingdeviceid]
mov edx, dword [0x411208]
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesClassMedia
lea edi, [esp + 0x22c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x411204]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x2c], eax
mov eax, dword [0x41120c]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x38], eax
push edx
push 0x20019
lea eax, [esp + 0x234]
mov dword [esp + 0x38], ecx
mov cl, byte [0x411210]
push 0
push eax
push 0x80000002
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0x23], 0
movsw word es:[edi], word [esi]
mov byte [esp + 0x50], cl
call ebp
test eax, eax
je 0x408194
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x320
ret
lea ecx, [esp + 0x24]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x18]
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 + 0x3c], 1
call ebx
test eax, eax
jne 0x408338
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or ecx, 0xffffffff
lea edi, [esp + 0x230]
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, 0x410350
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 ebp
push 0x100
call fcn.0040a280
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 ebx
push str.modemwave
push esi
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x4082d8
push str.MODEMWAVE
push esi
call fcn.0040a100
add esp, 8
test eax, eax
je 0x4082fb
lea edx, [esp + 0xb0]
push edx
call fcn.00408420
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x17]
add esp, 4
dec ecx
inc al
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x13], al
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4081da
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x408348
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x41600c], 7
jne 0x40840c
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.EnumMODEMWAVE
push 0x80000002
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x408400
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x1c0]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x38], pe_nt_image_headers32
call ebx
test eax, eax
jne 0x4083f5
lea edx, [esp + 0xb0]
push str.EnumMODEMWAVE
push edx
call ebp
lea eax, [esp + 0xb0]
push 0x410350
push eax
call esi
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
push ecx
push edx
call esi
lea eax, [esp + 0xb0]
push eax
push 0x80000002
call edi
jmp 0x408387
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.EnumMODEMWAVE
push 0x80000002
call edi
mov al, byte [esp + 0x13]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x320
ret