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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0d1a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x16c], ebx
xor esi, esi
xor edi, edi
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x184], ebx
lea eax, [ebp - 0x170]
mov dword [ebp - 4], edi
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x52e0a2
mov eax, dword [ebp - 0x17c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x52e668
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x160]
mov dword [ebp - 0x178], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
push 0
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x52e654
mov ecx, dword [0x643da0]
mov eax, dword fs:[0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x180], eax
lea ecx, [ecx]
lea eax, [ebp - 0x164]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x170]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52e60c
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x160], 4
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e604
test byte [ebp - 0x174], 4
je 0x52e604
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e3ef
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52e1c5
sub ecx, edx
lea eax, [ebp - 0x110]
cmp byte [ebp + 0xc], 0
push ecx
push eax
je 0x52e23c
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
call fcn.00438630
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 1
or ebx, 2
push eax
mov dword [ebp - 0x16c], ebx
call fcn.0052ef20
add esp, 4
test al, al
je 0x52e3ef
mov byte [ebp - 0x159], 0
jmp 0x52e3f6
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.00438630
mov eax, dword [ebp - 0x180]
or ebx, 4
mov dword [ebp - 0x16c], ebx
mov ecx, dword [eax]
mov eax, dword [0x643a4c]
cmp eax, dword [ecx + 4]
jg 0x52e689
mov ecx, dword [0x643a44]
cmp dword [0x643a40], ecx
jne 0x52e392
mov ax, word [0x5d8f3c]
mov edx, dword [str.msloop]
mov word [ebp - 0x124], ax
mov al, byte [0x5d8f3e]
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x128], edx
mov byte [ebp - 0x122], al
mov byte [ebp - 0x121], 0
mov dword [ebp - 4], 3
cmp ecx, dword [0x643a48]
je 0x52e336
mov eax, dword [ebp - 0x124]
mov dword [ecx], edx
mov edx, 0xf
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 7
mov dword [ecx + 0x14], 0xf
mov ecx, dword [0x643a44]
add ecx, 0x18
mov byte [ebp - 0x128], 0
mov dword [0x643a44], ecx
jmp 0x52e354
lea eax, [ebp - 0x128]
push eax
push ecx
mov ecx, 0x643a40
call fcn.004aa580
mov ecx, dword [0x643a44]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x52e392
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e382
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e684
push edx
push ecx
call fcn.0055c524
mov ecx, dword [0x643a44]
add esp, 8
mov esi, dword [0x643a40]
cmp esi, ecx
je 0x52e3da
lea esp, [esp]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x52e3aa
mov ecx, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
push ecx
cmovae eax, dword [ebp - 0x140]
push eax
call fcn.00582410
add esp, 0xc
test eax, eax
je 0x52e3e9
add esi, 0x18
cmp esi, dword [0x643a44]
jne 0x52e3a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 0
jmp 0x52e3f6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 1
mov dword [ebp - 4], 1
test bl, 4
je 0x52e460
mov edx, dword [ebp - 0x12c]
and ebx, 0xfffffffb
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x52e445
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e43b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e684
push edx
push ecx
call fcn.0055c524
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov dword [ebp - 4], 0
test bl, 2
je 0x52e4af
mov edx, dword [ebp - 0x144]
and ebx, 0xfffffffd
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x52e4af
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e4a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e684
push edx
push ecx
call fcn.0055c524
add esp, 8
cmp byte [ebp - 0x159], 0
jne 0x52e604
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e604
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x118], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52e525
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.00438630
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x184]
je 0x52e5ad
mov eax, dword [ebp - 0x128]
mov edx, 0xf
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [edi + 0x14], eax
add edi, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x188], edi
jmp 0x52e5cc
lea eax, [ebp - 0x128]
push eax
push edi
lea ecx, [ebp - 0x18c]
call fcn.004aa580
mov edi, dword [ebp - 0x188]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x52e604
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x52e5fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x52e684
push edx
push ecx
call fcn.0055c524
add esp, 8
push dword [ebp - 0x164]
call esi
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x160]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x160], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x170]
mov dword [ebp - 0x178], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x52e100
mov esi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x184]
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
push 0x643a4c
call fcn.0055c868
add esp, 4
cmp dword [0x643a4c], 0xffffffff
jne 0x52e28e
push 0x5b5a70
mov dword [0x643a40], 0
mov dword [0x643a44], 0
mov dword [0x643a48], 0
call fcn.0055cb7a
push 0x643a4c
call fcn.0055c81e
add esp, 8
jmp 0x52e28e