Function at 0x405290
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x483725
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405708
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x405333
mov edx, dword [esp + 0x1c]
push edx
jmp 0x405702
cmp dword [esp + 0x20], 0x400
ja 0x4056fd
mov eax, dword [esp + 0x28]
cmp eax, 0x400
ja 0x4056fd
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x2c], esi
jbe 0x4056ee
lea edi, [esi + 8]
mov eax, dword [esp + 0x20]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468610
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x24]
add esp, 4
add eax, 1
push eax
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4056d4
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
mov word [ebp + edx*2 + 2], bx
mov ecx, dword [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4056d4
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.00401d60
mov byte [esp + 0x124], 1
mov edx, dword [esp + 0x24]
push edx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x38]
call fcn.00405160
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0xcc]
mov byte [esp + 0x130], 2
call fcn.00401e00
cmp dword [esp + 0x4c], edi
jb 0x40546d
mov eax, dword [esp + 0x38]
push eax
call fcn.00468cbd
add esp, 4
mov byte [esp + 0x124], bl
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x405494
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00468cbd
add esp, 4
mov edx, str.Description
lea eax, [esp + 0x50]
call fcn.00401d60
mov byte [esp + 0x124], 3
mov edx, dword [esp + 0x24]
push edx
lea edx, [esp + 0x54]
lea ecx, [esp + 0x38]
call fcn.00405160
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0xe8]
mov byte [esp + 0x130], 4
call fcn.00401e00
cmp dword [esp + 0x4c], edi
jb 0x4054e7
mov eax, dword [esp + 0x38]
push eax
call fcn.00468cbd
add esp, 4
mov byte [esp + 0x124], bl
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x40550e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0xd4], ebx
je 0x405691
mov edx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea eax, [esp + 0xa4]
call fcn.00401d60
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc8]
push edx
lea esi, [esp + 0xb0]
mov byte [esp + 0x130], 5
call fcn.004022e0
mov eax, esi
push eax
mov edx, str.Connection
call fcn.00401da0
cmp dword [esp + 0xbc], edi
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], ebx
jae 0x405573
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4055fd
mov edx, str.Name
lea eax, [esp + 0x6c]
call fcn.00401d60
mov byte [esp + 0x124], 6
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x70]
lea ecx, [esp + 0x8c]
call fcn.00405160
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x104]
mov byte [esp + 0x130], 7
call fcn.00401e00
lea esi, [esp + 0x88]
call fcn.00434540
lea esi, [esp + 0x6c]
mov byte [esp + 0x124], 5
call fcn.00434540
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x10c], ebx
je 0x40567e
lea ecx, [esp + 0xa4]
push ecx
mov edx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
call fcn.00405940
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc8]
push edx
lea esi, [esp + 0xb0]
call fcn.004022e0
cmp dword [esp + 0xbc], edi
mov eax, dword [esp + 0xa8]
jae 0x405646
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405672
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
jmp 0x40567e
lea eax, [esp + 0xf8]
call fcn.00405970
lea esi, [esp + 0xa4]
mov byte [esp + 0x124], bl
call fcn.00434540
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10c], ebx
je 0x4056b9
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc0]
push ecx
add esi, 0x20
call fcn.00405c00
lea esi, [esp + 0xc0]
mov dword [esp + 0x124], 0xffffffff
call fcn.00405740
mov esi, dword [esp + 0x2c]
push ebp
call fcn.00468d1d
add esi, 1
add esp, 4
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
jb 0x405361
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40570a
mov eax, dword [esp + 0x1c]
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.00468c2b
add esp, 0x114
ret 4