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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x539a68]
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.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5005e1
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 0x500452
cmp dword [ebp - 0x14], 1
jb 0x500450
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405e7b
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x500463
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x5005e3
mov dword [ebp - 8], 0
jmp 0x500475
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jae 0x5005c5
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 0x5005c0
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 0x5005c0
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 0x5005b6
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004046b0
add esp, 8
test eax, eax
jne 0x5005b6
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 0x5005b6
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x34]
and ecx, 4
jne 0x500570
mov edx, dword [ebp - 0x34]
and edx, 0x8000
je 0x50057a
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x50057a
mov dword [ebp - 0x14c], 1
cmp dword [ebp - 0x28], 0
je 0x50058c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00462990
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 0x5005b2
mov eax, 1
jmp 0x5005e3
xor eax, eax
jmp 0x5005e3
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50046c
cmp dword [ebp - 0x28], 0
je 0x5005d7
mov edx, dword [ebp - 0x28]
push edx
call fcn.00462990
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.0040553d
mov esp, ebp
pop ebp
ret