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

Disassembly:
sub esp, 0x40
mov eax, dword [0x40ae84]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
je 0x4014f9
lea eax, [esp + 8]
push eax
push 0x20019
push ebx
push str.EnumPCI
jmp 0x401509
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnumPCI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40151f
xor eax, eax
pop ebx
add esp, 0x40
ret
push ebx
push ebx
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401541
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
push ebp
xor ebp, ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x30], ebp
jbe 0x401784
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [esp + 0x24], ebx
jne 0x401784
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
lea edx, [esp + 0x40]
push ebx
push edx
push 0x40d2e0
push ebp
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4015a1
mov dword [esp + 0x24], 1
jmp 0x401773
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push 0x40d2e0
push edx
call edi
test eax, eax
jne 0x401773
push ebx
push ebx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4015e8
mov edx, dword [esp + 0x10]
push edx
jmp 0x40176d
mov eax, dword [esp + 0x2c]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x28], esi
jbe 0x401768
mov ebp, dword [esp + 0x1c]
shl ebp, 8
add ebp, 0x40c2c0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
lea ecx, [esp + 0x44]
push ebx
push ecx
push 0x40d2e0
push esi
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x58], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x40d2e0
push ecx
call edi
test eax, eax
jne 0x401753
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x44]
push edx
push 0x40c1c0
push eax
push ebx
push str.Class
push ecx
mov dword [esp + 0x54], 0x100
call edi
test eax, eax
jne 0x40173e
mov esi, 0x40c1c0
mov eax, 0x40a12c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4016b0
cmp cl, bl
je 0x4016ac
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4016b0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40168c
xor eax, eax
jmp 0x4016b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40173e
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x48]
push 0x40c1c0
push ecx
push ebx
push str.Driver
push edx
mov dword [esp + 0x58], 0x100
call edi
test eax, eax
jne 0x40173e
mov edx, 0x40c1c0
or ecx, 0xffffffff
mov edi, edx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x40173e
mov al, byte [edx]
inc edx
cmp al, 0x5c
je 0x401708
inc esi
cmp esi, ecx
jl 0x4016fa
jmp 0x40173e
cmp esi, ecx
jge 0x40173e
cmp byte [edx], bl
je 0x40173e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
inc ecx
add ebp, 0x100
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jb 0x401607
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
mov dword [esp + 0x30], ebp
jb 0x40155c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret