Function at 0x406660
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x427b95
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x406adf
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406705
mov edx, dword [esp + 0x18]
push edx
jmp 0x406ad9
cmp dword [esp + 0x1c], 0x400
ja 0x406ad4
mov eax, dword [esp + 0x28]
cmp eax, 0x400
ja 0x406ad4
cmp eax, ebx
mov dword [esp + 0x24], ebx
jbe 0x406ac5
mov ebp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137e2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
add eax, 1
push eax
push esi
push ecx
push edx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x406aa7
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
mov word [esi + eax*2 + 2], bx
mov edx, dword [esp + 0x24]
push esi
push edx
mov dword [esp + 0x34], ebx
call edi
test eax, eax
jne 0x406aa7
mov esi, 7
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], bx
mov edx, str.ServiceName
lea eax, [esp + 0x50]
mov dword [esp + 0x124], ebx
call fcn.00402d70
mov byte [esp + 0x124], 1
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x38]
call fcn.00406530
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xc8]
mov byte [esp + 0x12c], 2
call fcn.004030d0
cmp dword [esp + 0x4c], ebp
jb 0x406842
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00413bbf
add esp, 4
mov byte [esp + 0x124], bl
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x406869
mov edx, dword [esp + 0x54]
push edx
call fcn.00413bbf
add esp, 4
mov edx, str.Description
lea eax, [esp + 0x50]
call fcn.00402d70
mov byte [esp + 0x124], 3
mov eax, dword [esp + 0x20]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x38]
call fcn.00406530
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x12c], 4
call fcn.004030d0
cmp dword [esp + 0x4c], ebp
jb 0x4068bb
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00413bbf
add esp, 4
mov byte [esp + 0x124], bl
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x4068e2
mov edx, dword [esp + 0x54]
push edx
call fcn.00413bbf
add esp, 4
cmp dword [esp + 0xd4], ebx
je 0x406a64
mov edx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea eax, [esp + 0xa4]
call fcn.00402d70
push ebx
lea eax, [esp + 0xc4]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xac]
mov byte [esp + 0x12c], 5
call fcn.00402ec0
mov ecx, esi
push ecx
mov edx, str.Connection
call fcn.004039b0
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x14], ebx
jae 0x406948
lea eax, [esp + 0xa8]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4069cd
mov edx, 0x42b66c
lea eax, [esp + 0x6c]
call fcn.00402d70
mov byte [esp + 0x124], 6
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x70]
lea ecx, [esp + 0x8c]
call fcn.00406530
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x100]
mov byte [esp + 0x12c], 7
call fcn.004030d0
lea esi, [esp + 0x88]
call fcn.00404b40
lea esi, [esp + 0x6c]
mov byte [esp + 0x124], 5
call fcn.00404b40
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x10c], ebx
je 0x406a51
lea edx, [esp + 0xa4]
push edx
mov edx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
call fcn.00404910
push ebx
lea eax, [esp + 0xc4]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xac]
call fcn.00402ec0
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x406a17
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x406a3f
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
jmp 0x406a51
lea edi, [esp + 0xf8]
call fcn.00405590
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [esp + 0xa4]
mov byte [esp + 0x124], bl
call fcn.00404b40
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10c], ebx
je 0x406a8c
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc0]
push ecx
add esi, 0x20
call fcn.00406f00
lea esi, [esp + 0xc0]
mov dword [esp + 0x124], 0xffffffff
call fcn.00406b10
mov esi, dword [esp + 0x30]
push esi
call fcn.00413bba
mov eax, dword [esp + 0x28]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
jb 0x406733
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x406ae1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004138c3
add esp, 0x114
ret 4