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

Disassembly:
push 0xffffffffffffffff
push 0x459e86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
xor edi, edi
mov dword [esp + 0x17c], edi
mov eax, dword [0x471df4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x184]
lea ecx, [esp + 0x2c]
push eax
mov bl, 6
push str.Enum_
push ecx
mov byte [esp + 0x188], bl
call fcn.0044a691
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 7
call fcn.0044a4c1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42bb24
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x70]
push 0x104
push ecx
push edi
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42bb19
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x5c]
push eax
call fcn.0044a442
mov esi, eax
lea ecx, [esp + 0x28]
push 0x46a404
lea edx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0x188], 8
call fcn.0044a61d
push esi
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x184], 9
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x180], 0xa
call fcn.0044a4c1
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 8
call fcn.0044a3d4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x17c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
call fcn.0044a88a
mov ecx, dword [esp + 0x188]
push ecx
lea ecx, [esp + 0x20]
call fcn.00449464
cmp eax, 0xffffffff
je 0x42b6cf
push 0x46ac50
lea ecx, [esp + 0x18c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x42b70b
push 0x46ac50
lea ecx, [esp + 0x18c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x42baf0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.0044a149
mov ecx, dword [esp + 0x28]
call fcn.00423470
test eax, eax
je 0x42baf0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42baf0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x70]
xor edi, edi
push 0x104
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42bae5
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x58]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x1c]
push 0x46a404
lea eax, [esp + 0x6c]
push edx
push eax
mov byte [esp + 0x188], 0xb
call fcn.0044a61d
push esi
lea ecx, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x188], 0xc
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x180], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x17c], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x68]
mov byte [esp + 0x17c], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x54]
mov byte [esp + 0x17c], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x20]
push edx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42bae5
lea ecx, [esp + 0x18]
lea edx, [esp + 0x70]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x30]
mov esi, 0x104
push str.Class
push eax
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x42bada
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a511
lea ecx, [esp + 0x14]
call fcn.0044a88a
push str.UNKNOWN
lea ecx, [esp + 0x18]
call fcn.00449464
cmp eax, 0xffffffff
je 0x42b857
mov edx, dword [esp + 0x24]
test byte [edx + 0xc], 2
je 0x42bada
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x70]
push eax
push ecx
push 0
push 0
push str.ChildDevNode
push edx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x42b900
lea eax, [esp + 0x70]
lea ecx, [esp + 0x48]
push eax
call fcn.0044a442
mov esi, eax
push str.Enum_
lea ecx, [esp + 0x44]
mov byte [esp + 0x180], 0xe
call fcn.0044a442
push esi
lea ecx, [esp + 0x68]
push eax
push ecx
mov byte [esp + 0x188], 0xf
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 0x10
call fcn.0044a4c1
lea ecx, [esp + 0x64]
mov byte [esp + 0x17c], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x17c], 0xe
call fcn.0044a3d4
lea ecx, [esp + 0x48]
mov byte [esp + 0x17c], bl
call fcn.0044a3d4
jmp 0x42ba78
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
lea eax, [esp + 0x70]
push edx
push eax
push 0
push 0
push str.Driver
push ecx
mov dword [esp + 0x30], esi
call ebp
test eax, eax
jne 0x42ba54
lea edx, [esp + 0x70]
lea ecx, [esp + 0x60]
push edx
call fcn.0044a442
mov esi, eax
push str.SystemCurrentControlSetServicesClass_
lea ecx, [esp + 0x5c]
mov byte [esp + 0x180], 0x11
call fcn.0044a442
push esi
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x184], 0x12
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 0x13
call fcn.0044a4c1
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 0x12
call fcn.0044a3d4
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 0x11
call fcn.0044a3d4
lea ecx, [esp + 0x60]
mov byte [esp + 0x17c], bl
call fcn.0044a3d4
push 0x46a14c
lea ecx, [esp + 0x188]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x42ba44
push 0x46a158
lea ecx, [esp + 0x188]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x42ba44
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x70]
push ecx
push edx
push 0
push 0
push str.Class
push eax
mov dword [esp + 0x30], 0x104
call ebp
test eax, eax
jne 0x42bada
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x18]
call fcn.0044a511
lea ecx, [esp + 0x14]
call fcn.0044a88a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push eax
lea esi, [edx + 8]
mov ecx, esi
call fcn.00449464
cmp eax, 0xffffffff
jne 0x42ba78
push 0x46ac50
mov ecx, esi
call fcn.00449464
cmp eax, 0xffffffff
je 0x42bada
jmp 0x42ba78
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0042b0b0
jmp 0x42ba78
mov edx, dword [esp + 0x24]
push 0x46ac50
lea ecx, [edx + 8]
call fcn.00449464
cmp eax, 0xffffffff
je 0x42bada
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push 0x104
push ecx
push str.DriverDesc
push edx
push 0x80000002
xor edi, edi
call fcn.00430370
add esp, 0x14
test eax, eax
je 0x42bac4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x70]
push 0x104
push ecx
push str.DeviceDesc
push edx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x42bada
mov ecx, dword [esp + 0x18c]
lea eax, [esp + 0x70]
push eax
call fcn.00449c01
mov edi, 1
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, ecx
inc ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x70]
push 0x104
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x42b616
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 5
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 4
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 3
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 2
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 1
call fcn.0044a3d4
lea ecx, [esp + 0x184]
mov byte [esp + 0x17c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x188]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x174]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 0xc