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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c336
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x5fb61c]
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 esi, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x13c]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x532a1a
lea ecx, [ebp - 0x154]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, ecx
je 0x532c71
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x532c71
mov ecx, dword [ebp - 0x13c]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x110]
push eax
push ebx
push ecx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x130], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x532c00
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x532a60
mov ecx, dword [ebp - 0x13c]
lea edx, [ebp - 0x134]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x532bbb
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x138]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 4
call edi
test eax, eax
jne 0x532bae
test byte [ebp - 0x144], 4
je 0x532bae
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x138]
push edx
push ebx
push str.ComponentId
push eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 0x100
call edi
test eax, eax
jne 0x532ba5
push 3
lea ecx, [ebp - 0x110]
push 0x5b2500
push ecx
call fcn.005545dc
add esp, 0xc
test eax, eax
jne 0x532ba5
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x138]
push ecx
push ebx
push str.NetCfgInstanceId
push edx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 0x100
call edi
cmp eax, ebx
jne 0x532b9c
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0042ead0
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
call fcn.004c06a0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.0042d980
mov edx, dword [ebp - 0x134]
push edx
jmp 0x532bb5
mov eax, dword [ebp - 0x134]
push eax
jmp 0x532bb5
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x140]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x110]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x130], 0x100
mov dword [ebp - 0x140], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x532a60
mov edi, dword [ebp - 0x150]
lea eax, [ebp - 0x154]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x532c28
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x14c]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], edx
jmp 0x532c71
mov eax, dword [ebp - 0x154]
cmp eax, ebx
je 0x532c71
mov esi, eax
cmp eax, edi
je 0x532c5c
cmp dword [esi + 0x14], 0x10
jb 0x532c49
mov eax, dword [esi]
push eax
call int.0042bfd0
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x532c38
mov ecx, dword [ebp - 0x154]
push ecx
call int.0042bfd0
mov esi, dword [ebp - 0x158]
add esp, 4
mov eax, esi
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.005332ca
mov esp, ebp
pop ebp
ret