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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5274d0]
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 0x4df303
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 0x4df172
cmp dword [ebp - 0x14], 1
jb 0x4df170
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR120.dll_malloc
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x4df183
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4df305
mov dword [ebp - 8], 0
jmp 0x4df195
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jae 0x4df2e7
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 0x4df2e2
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 0x4df2e2
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 0x4df2d8
push 0
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4df2d8
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 0x4df2d8
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x34]
and ecx, 4
jne 0x4df292
mov edx, dword [ebp - 0x34]
and edx, 0x8000
je 0x4df29c
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x4df29c
mov dword [ebp - 0x14c], 1
cmp dword [ebp - 0x28], 0
je 0x4df2ae
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0043c5b0
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 0x4df2d4
mov eax, 1
jmp 0x4df305
xor eax, eax
jmp 0x4df305
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4df18c
cmp dword [ebp - 0x28], 0
je 0x4df2f9
mov edx, dword [ebp - 0x28]
push edx
call fcn.0043c5b0
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.00431a84
mov esp, ebp
pop ebp
ret