Function at 0x409050
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x2b4], eax
mov eax, dword [esp + 0x2c0]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov ecx, 0x25
lea esi, [esp + 0x2d4]
lea edi, [esp + 0x28]
mov dword [esp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jne 0x4090b8
push str.Virtual_Network_interface_Parameter_error
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
jmp 0x4092e7
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4090b1
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1d4]
push edx
push ebx
mov edi, 0x100
push eax
mov dword [esp + 0x30], edi
call ebp
cmp eax, 0x103
mov dword [esp + 0x1c], eax
mov esi, 1
je 0x4092d7
cmp eax, ebx
jne 0x4092d7
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x1cc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091a8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x409199
cmp dword [esp + 0x20], 1
jne 0x409199
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.0041c7f9
add esp, 8
test eax, eax
je 0x4091dc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4091a8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d4]
push ecx
push esi
push edx
mov dword [esp + 0x30], edi
call ebp
add esi, 1
cmp eax, 0x103
mov dword [esp + 0x1c], eax
jne 0x409113
jmp 0x4092d7
mov esi, dword [esp + 0x2c]
push esi
lea eax, [esp + 0xc4]
push eax
push str.Hide_adapter__s__d.
mov ecx, 0x43b48c
call fcn.0040a090
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push str.Characteristics
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
call ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4092cc
mov eax, 8
test byte [esp + 0x18], al
jne 0x4092cc
mov edx, dword [esp + 0x10]
or dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push str.Characteristics
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, 6
jae 0x4092b2
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push str.ComponentId
push eax
mov dword [esp + 0x28], edi
call ebp
lea ecx, [esp + 0xc0]
push ecx
push str.Hide_adapter_ComponentId__s.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
lea edi, [esp + 0xc0]
call fcn.004088b0
lea edx, [esp + 0x1c]
push edx
push 0xbb8
push ebx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x2bc
ret