Function at 0x409390
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov ebp, ecx
mov dword [esp + 0x20], esi
call ebx
test eax, eax
jne 0x40971c
mov eax, dword [esp + 0xc]
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
push esi
push esi
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x409408
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x409716
cmp dword [esp + 0x14], 0x400
ja 0x409711
mov eax, dword [esp + 0x20]
cmp eax, 0x400
ja 0x409711
cmp eax, esi
mov dword [esp + 0x1c], esi
jbe 0x4096ec
push edi
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418690
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
add eax, 1
push eax
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4096cd
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
mov word [edi + eax*2 + 2], si
mov edx, dword [esp + 0x1c]
push edi
push edx
mov dword [esp + 0x30], esi
call ebx
test eax, eax
jne 0x4096cd
mov eax, 7
push str.ServiceName
lea ecx, [esp + 0x64]
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], esi
mov word [esp + 0x84], si
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], esi
mov word [esp + 0xa0], si
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], esi
mov word [esp + 0xbc], si
call fcn.004014af
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00407bc0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x88]
call fcn.0040176b
lea ecx, [esp + 0x28]
call fcn.004014f7
lea ecx, [esp + 0x60]
call fcn.004014f7
push str.Description
lea ecx, [esp + 0x64]
call fcn.004014af
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00407bc0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0xa4]
call fcn.0040176b
lea ecx, [esp + 0x28]
call fcn.004014f7
lea ecx, [esp + 0x60]
call fcn.004014f7
cmp dword [esp + 0x90], esi
je 0x4096a3
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [esp + 0x64]
call fcn.004014af
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x6c]
call fcn.004030cc
push str.Connection
lea ecx, [esp + 0x64]
call fcn.004030aa
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], esi
jae 0x4095c0
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40962c
push str.Name
lea ecx, [esp + 0x2c]
call fcn.004014af
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call fcn.00407bc0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0xc0]
call fcn.0040176b
lea ecx, [esp + 0x44]
call fcn.004014f7
lea ecx, [esp + 0x28]
call fcn.004014f7
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
cmp dword [esp + 0xc8], esi
je 0x40969a
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [esp + 0x64]
call fcn.00401501
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x6c]
call fcn.004030cc
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x409666
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40968e
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
jmp 0x40969a
lea ecx, [esp + 0xb4]
call fcn.00401506
lea ecx, [esp + 0x60]
call fcn.004014f7
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc8], esi
je 0x4096c4
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00408f80
lea ecx, [esp + 0x7c]
call fcn.004071e0
push edi
call fcn.00419753
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jb 0x409432
pop edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00419b1f
add esp, 0xc4
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xcc]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.00419b1f
add esp, 0xc4
ret