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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
lea eax, [ebp - 0x10]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4181fb
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4181ef
cmp dword [ebp - 0x18], esi
jbe 0x4181ef
mov eax, 0x104
cmp dword [ebp - 4], eax
jae 0x418076
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
call fcn.005ed45a
cmp eax, esi
pop ecx
mov dword [ebp - 0x20], eax
je 0x4181e6
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
jbe 0x4181e6
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov eax, dword [ebp - 4]
inc eax
push eax
push esi
push dword [ebp - 0x20]
call fcn.00466010
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4181d5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4181d5
push 4
lea eax, [ebp - 8]
pop edi
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.Characteristics
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
jne 0x4181cc
mov eax, dword [ebp - 0x14]
and eax, edi
cmp al, 4
je 0x41813d
mov eax, dword [ebp - 0x14]
and eax, 2
cmp al, 2
je 0x41813d
mov eax, dword [ebp - 0x14]
and eax, 1
cmp al, 1
jne 0x4181cc
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov edi, 0x208
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x66df08
mov dword [ebp - 8], edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], 1
call ebx
test eax, eax
jne 0x4181cc
lea eax, [ebp - 0x22c]
push 0x66df04
push eax
call fcn.0046638c
pop ecx
test eax, eax
pop ecx
jne 0x4181cc
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push str.NetCfgInstanceId
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x4181cc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
push dword [ecx + 8]
call fcn.005e68a7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x18]
jb 0x4180a3
pop edi
pop ebx
push dword [ebp - 0x20]
call fcn.005ed483
pop ecx
push 1
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret