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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac17a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x63434c]
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 0x5286e2
mov eax, dword [ebp - 0x17c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x528ca8
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 0x528c94
mov ecx, dword [0x63ec50]
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 0x528c4c
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 0x528c44
test byte [ebp - 0x174], 4
je 0x528c44
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 0x528a2f
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x528805
sub ecx, edx
lea eax, [ebp - 0x110]
cmp byte [ebp + 0xc], 0
push ecx
push eax
je 0x52887c
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.004385d0
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 1
or ebx, 2
push eax
mov dword [ebp - 0x16c], ebx
call fcn.00529560
add esp, 4
test al, al
je 0x528a2f
mov byte [ebp - 0x159], 0
jmp 0x528a36
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.004385d0
mov eax, dword [ebp - 0x180]
or ebx, 4
mov dword [ebp - 0x16c], ebx
mov ecx, dword [eax]
mov eax, dword [0x63e8ec]
cmp eax, dword [ecx + 4]
jg 0x528cc9
mov ecx, dword [0x63e8e4]
cmp dword [0x63e8e0], ecx
jne 0x5289d2
mov ax, word [0x5d3ca4]
mov edx, dword [str.msloop]
mov word [ebp - 0x124], ax
mov al, byte [0x5d3ca6]
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 [0x63e8e8]
je 0x528976
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 [0x63e8e4]
add ecx, 0x18
mov byte [ebp - 0x128], 0
mov dword [0x63e8e4], ecx
jmp 0x528994
lea eax, [ebp - 0x128]
push eax
push ecx
mov ecx, 0x63e8e0
call fcn.004a9c10
mov ecx, dword [0x63e8e4]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x5289d2
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5289c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528cc4
push edx
push ecx
call fcn.00558004
mov ecx, dword [0x63e8e4]
add esp, 8
mov esi, dword [0x63e8e0]
cmp esi, ecx
je 0x528a1a
lea esp, [esp]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x5289ea
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.0057de80
add esp, 0xc
test eax, eax
je 0x528a29
add esi, 0x18
cmp esi, dword [0x63e8e4]
jne 0x5289e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 0
jmp 0x528a36
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x159], 1
mov dword [ebp - 4], 1
test bl, 4
je 0x528aa0
mov edx, dword [ebp - 0x12c]
and ebx, 0xfffffffb
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x528a85
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x528a7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528cc4
push edx
push ecx
call fcn.00558004
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 0x528aef
mov edx, dword [ebp - 0x144]
and ebx, 0xfffffffd
mov dword [ebp - 0x16c], ebx
cmp edx, 0x10
jb 0x528aef
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x528ae5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528cc4
push edx
push ecx
call fcn.00558004
add esp, 8
cmp byte [ebp - 0x159], 0
jne 0x528c44
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 0x528c44
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 0x528b65
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.004385d0
mov byte [ebp - 4], 4
cmp edi, dword [ebp - 0x184]
je 0x528bed
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 0x528c0c
lea eax, [ebp - 0x128]
push eax
push edi
lea ecx, [ebp - 0x18c]
call fcn.004a9c10
mov edi, dword [ebp - 0x188]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x528c44
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x528c3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528cc4
push edx
push ecx
call fcn.00558004
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 0x528740
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
push 0x63e8ec
call fcn.00558348
add esp, 4
cmp dword [0x63e8ec], 0xffffffff
jne 0x5288ce
push 0x5b0f20
mov dword [0x63e8e0], 0
mov dword [0x63e8e4], 0
mov dword [0x63e8e8], 0
call fcn.0055865a
push 0x63e8ec
call fcn.005582fe
add esp, 8
jmp 0x5288ce