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

Disassembly:
sub esp, 0x82c
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
push edi
mov edi, str.SystemCurrentControlSetEnumMODEMWAVE
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
lea edx, [esp + 0x338]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x338]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
call ebp
test eax, eax
jne 0x4317a2
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push 0x104
push eax
push ebx
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x43174e
test ebx, ebx
jne 0x43174e
or ecx, 0xffffffff
lea edi, [esp + 0x338]
xor eax, eax
lea edx, [esp + 0x130]
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 + 0x130]
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, 0x47d160
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 + 0x130]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x138]
push ebx
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x431725
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ebx, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x431716
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x431716
or ecx, 0xffffffff
lea edi, [esp + 0x130]
xor eax, eax
lea edx, [esp + 0x234]
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 + 0x234]
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, 0x47d160
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 + 0x234]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
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 0x20019
lea ecx, [esp + 0x23c]
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x4316f5
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push 0
mov edi, 0x104
push str.HardwareID
push ecx
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x4316ea
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
add edx, 0x138
push edx
push eax
call fcn.0044dee0
add esp, 8
test eax, eax
jne 0x4316ea
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push str.Driver
push eax
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x4316ea
or ecx, 0xffffffff
lea edi, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x540]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x43c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], 1
rep movsb byte es:[edi], byte [esi]
mov edi, str.SystemCurrentControlSetControlClass_
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 + 0x43c]
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 + 0x2c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x431532
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x2c]
push 0x104
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x43145b
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4317a2
push 0x80000002
lea ecx, [esp + 0x648]
call fcn.0043a360
push 1
push 1
lea ecx, [esp + 0x548]
push 0
push ecx
lea ecx, [esp + 0x654]
call fcn.0043a790
push 1
push 1
lea edx, [esp + 0x444]
push 0
push edx
lea ecx, [esp + 0x654]
call fcn.0043a790
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret