Function at 0x404420
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x32c
xor eax, eax
lea edx, [esp + 0x2c]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, str.SYSTEMControlSet001ServicesTcpipParameters
or ecx, 0xffffffff
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4044df
lea eax, [esp + 0x14]
lea ecx, [ebx + 8]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
mov esi, 0x100
push str.Domain
push eax
mov dword [esp + 0x2c], esi
call edi
lea ecx, [esp + 0x14]
lea edx, [ebx + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.Hostname
push ecx
mov dword [esp + 0x2c], esi
call edi
lea edx, [esp + 0x14]
lea eax, [ebx + 0x28]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.IPEnableRouter
push edx
mov dword [esp + 0x2c], esi
call edi
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea eax, [ebx + 0x1e70]
mov ecx, ebx
push eax
mov dword [esp + 0x1c], 0
call fcn.00403fb0
lea ecx, [esp + 0x18]
mov dword [ebx + 4], eax
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call ebp
test eax, eax
je 0x404539
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40452c
push eax
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x32c
ret
push 0
push 0
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x40]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebp, eax
test ebp, ebp
jne 0x4047e3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebx + 4], edx
push eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x30], ebp
test eax, eax
jle 0x4047d6
lea esi, [ebx + 0x136]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push 0
inc ecx
push 0
push 0
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test ebp, ebp
jne 0x404774
lea eax, [esp + 0x10]
lea ecx, [esi - 0x106]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
push str.Description
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push str.ServiceName
push ecx
mov dword [esp + 0x28], 0x100
call edi
mov ebp, eax
test ebp, ebp
jne 0x404774
lea edx, [esp + 0x13c]
lea eax, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x244]
push str._sInterfaces_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x23c]
push edx
push 0x20019
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test ebp, ebp
jne 0x404769
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x30]
push str.DefaultGateway
push eax
mov dword [esp + 0x28], 0x100
call edi
mov ecx, dword [esp + 0x10]
push ecx
push esi
mov ecx, ebx
call fcn.00404890
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
lea eax, [esi + 0x80]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push str.IPAddress
push ecx
mov dword [esp + 0x28], 0x100
call edi
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x80]
push edx
push eax
mov ecx, ebx
call fcn.00404890
lea ecx, [esp + 0x10]
lea eax, [esi + 0x100]
push ecx
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push edx
push ebp
push str.SubnetMask
push eax
mov dword [esp + 0x28], 0x100
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x100]
push ecx
push eax
mov ecx, ebx
call fcn.00404890
lea edx, [esp + 0x10]
lea eax, [esi + 0x180]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push str.NameServer
push edx
mov dword [esp + 0x28], 0x100
call edi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [ebx + 0x1e70]
mov byte [esi - 6], dl
mov al, byte [ebx + 0x1e71]
mov byte [esi - 5], al
mov cl, byte [ebx + 0x1e72]
mov byte [esi - 4], cl
mov dl, byte [ebx + 0x1e73]
mov byte [esi - 3], dl
mov al, byte [ebx + 0x1e74]
mov byte [esi - 2], al
mov cl, byte [ebx + 0x1e75]
mov eax, dword [esp + 0x30]
mov byte [esi - 1], cl
mov ecx, dword [esp + 0x24]
inc eax
add esi, 0x306
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4045a9
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call esi
xor eax, eax
pop edi
test ebp, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x32c
ret