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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
lea eax, [ebp - 0x10]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405813
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x405807
cmp dword [ebp - 0x18], ebx
jbe 0x405807
mov eax, 0x104
cmp dword [ebp - 4], eax
jae 0x405690
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0057985d
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x4057fe
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
jbe 0x4057fe
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov eax, dword [ebp - 4]
inc eax
push eax
push ebx
push dword [ebp - 0x20]
call fcn.00413c50
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4057ed
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x20019
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4057ed
push 4
lea eax, [ebp - 8]
pop edi
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.Characteristics
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], edi
call esi
test eax, eax
jne 0x4057e4
mov eax, dword [ebp - 0x14]
and eax, edi
cmp al, 4
je 0x405754
mov eax, dword [ebp - 0x14]
and eax, 2
cmp al, 2
je 0x405754
mov eax, dword [ebp - 0x14]
and eax, 1
cmp al, 1
jne 0x4057e4
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
mov dword [ebp - 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], 1
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.BusType
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4057e4
lea eax, [ebp - 0x128]
push 0x5d4b38
push eax
call fcn.00413ed7
pop ecx
test eax, eax
pop ecx
jne 0x4057e4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.NetCfgInstanceId
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4057e4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x128]
push eax
push dword [ecx + 8]
call fcn.0057818f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x18]
jb 0x4056ba
pop edi
pop esi
push dword [ebp - 0x20]
call fcn.00579886
pop ecx
push 1
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 4