Function at 0x42c330
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x48c
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x488], eax
mov eax, dword [esp + 0x490]
push ebx
push ebp
push esi
push edi
push 0x60
xor ebp, ebp
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0x3f3f3f
call fcn.0053fd60
push 0xff
lea edx, [esp + 0x1a9]
push ebp
push edx
mov byte [esp + 0x1b0], 0
call fcn.0053fd60
add esp, 0x18
call fcn.00403c50
test al, al
je 0x42c53a
mov ecx, 0x13
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E968_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x198]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
push 8
push ebp
lea ecx, [esp + 0x1a4]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c6c0
push 0xff
xor edi, edi
lea edx, [esp + 0x29d]
push edi
push edx
mov byte [esp + 0x2a4], 0
call fcn.0053fd60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
je 0x42c4bb
test eax, eax
jne 0x42c488
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x42c44e
nop
movsx ecx, byte [esp + esi + 0x98]
push ecx
call fcn.005409f4
add esp, 4
test eax, eax
je 0x42c485
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x42c430
lea edx, [esp + 0x98]
push edx
call fcn.00541939
add esp, 4
cmp eax, ebp
jb 0x42c485
mov ebp, eax
xor eax, eax
jmp 0x42c470
mov cl, byte [esp + eax + 0x98]
mov byte [esp + eax + 0x298], cl
add eax, 1
test cl, cl
jne 0x42c470
add edi, 1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
jne 0x42c423
mov esi, dword [esp + 0x24]
add esi, 0x7c0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c4d0
sub eax, edx
jne 0x42c530
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2a4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c530
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
push edx
push str.DriverDesc
call fcn.004049e0
add esp, 0xc
cmp eax, 0xffff
je 0x42c530
lea eax, [esp + 0x34]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42c524
mov edx, dword [esp + 0x14]
push edx
jmp 0x42c6ba
lea eax, [esp + 0x20]
push eax
push 8
push ebp
push str.Config_ManagerEnum
mov dword [esp + 0x28], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push reloc.OLEAUT32.dll_SysStringLen
xor bl, bl
call ebp
lea ebx, [ebx]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0x100
lea ecx, [esp + 0x29c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x42c6a4
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x2a4]
push edx
push eax
call ebp
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x398]
push ecx
push edx
push str.HardWareKey
call fcn.004049e0
add esp, 0xc
cmp eax, 0xffff
je 0x42c699
lea eax, [esp + 0x398]
push eax
lea ecx, [esp + 0x19c]
push str.Enum_s
push ecx
call fcn.00540420
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push edi
lea eax, [esp + 0x1a4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x98]
push ecx
push edx
push str.Class
call fcn.004049e0
add esp, 0xc
cmp eax, 0xffff
je 0x42c68e
lea eax, [esp + 0x98]
push str.Display
push eax
call fcn.00549c45
add esp, 8
test eax, eax
jne 0x42c68e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x98]
push ecx
push edx
push str.DeviceDesc
call fcn.004049e0
add esp, 0xc
cmp eax, 0xffff
je 0x42c68e
mov edx, dword [esp + 0x24]
add edx, 0x7c0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42c661
sub eax, esi
jne 0x42c68c
lea eax, [esp + 0x98]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42c680
mov bl, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], 1
test edi, edi
jne 0x42c6b5
test bl, bl
je 0x42c560
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x498]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fab2
add esp, 0x48c
ret