Function at 0x409320
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 0x4096ac
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 0x409398
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x4096a6
cmp dword [esp + 0x14], 0x400
ja 0x4096a1
mov eax, dword [esp + 0x20]
cmp eax, 0x400
ja 0x4096a1
cmp eax, esi
mov dword [esp + 0x1c], esi
jbe 0x40967c
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.004186c0
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 0x40965d
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 0x40965d
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.00407b50
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.00407b50
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 0x409633
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 0x409550
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 0x4095bc
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.00407b50
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 0x40962a
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 0x4095f6
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 0x40961e
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
jmp 0x40962a
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 0x409654
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00408f10
lea ecx, [esp + 0x7c]
call fcn.00407230
push edi
call fcn.00419783
mov eax, dword [esp + 0x24]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jb 0x4093c2
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.00419b4f
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.00419b4f
add esp, 0xc4
ret