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

Disassembly:
sub esp, 0xbc0
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E96D_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x70]
mov eax, dword [0x41443c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 1
mov dword [esp + 0x14], 0x40
cmp eax, esi
jne 0x406762
mov eax, dword [str.SystemCurrentControlSetServicesLtmodemr]
lea ecx, [esp + 0xc0]
push eax
push ecx
jmp 0x406771
mov edx, dword [str.SystemCurrentControlSetServicesLtmodem]
lea eax, [esp + 0xc0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
lea edx, [esp + 0xc8]
push 0
push edx
push 0x80000002
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4067ec
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x550]
push eax
push ecx
push 0
push 0
push str.ModemName
push edx
mov dword [esp + 0x34], 0x280
call ebp
test eax, eax
je 0x4067e1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc0
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call ebx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x40]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40697c
or ecx, 0xffffffff
lea edi, [esp + 0x70]
xor eax, eax
lea edx, [esp + 0x7d0]
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 + 0x7d0]
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 + 0x7d0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x7d8]
push 0
push ecx
push 0x80000002
call ebx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2d0]
push edx
push eax
push 0
push 0
push 0x410040
push ecx
mov dword [esp + 0x34], 0x280
call ebp
test eax, eax
jne 0x406919
lea edx, [esp + 0x550]
lea eax, [esp + 0x2d0]
push edx
push eax
call fcn.0040a100
add esp, 8
test eax, eax
jne 0x406957
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x34], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x406832
jmp 0x40697c
mov ecx, dword [esp + 0xbd4]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x100
push eax
push ecx
push 0
push 0
push str.InfPath
push edx
call ebp
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc0
ret