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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x563a68]
xor eax, ebp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x104
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52ba91
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52b902
cmp dword [ebp - 0x14], 1
jb 0x52b900
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405bab
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x52b913
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x52ba93
mov dword [ebp - 8], 0
jmp 0x52b925
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jae 0x52ba75
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52ba70
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52ba70
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push str.NetCfgInstanceId
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52ba66
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x52ba66
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push str.Characteristics
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x52ba66
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x34]
and ecx, 4
jne 0x52ba20
mov edx, dword [ebp - 0x34]
and edx, 0x8000
je 0x52ba2a
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x52ba2a
mov dword [ebp - 0x14c], 1
cmp dword [ebp - 0x28], 0
je 0x52ba3c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00499750
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14c], 0
je 0x52ba62
mov eax, 1
jmp 0x52ba93
xor eax, eax
jmp 0x52ba93
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52b91c
cmp dword [ebp - 0x28], 0
je 0x52ba87
mov edx, dword [ebp - 0x28]
push edx
call fcn.00499750
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0040526d
mov esp, ebp
pop ebp
ret