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

Disassembly:
sub esp, 0x22c
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
mov ebp, ecx
push 0x80000002
call esi
test eax, eax
jne 0x404143
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [ebp + 8]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push 0
mov ebx, 0x100
push str.Domain
push ecx
mov dword [esp + 0x28], ebx
call edi
lea edx, [esp + 0x10]
lea eax, [ebp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Hostname
push edx
mov dword [esp + 0x28], ebx
call edi
lea eax, [esp + 0x10]
lea ecx, [ebp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.EnableDNS
push eax
mov dword [esp + 0x28], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.NameServer
push ecx
mov dword [esp + 0x28], ebx
call edi
jmp 0x404149
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
lea eax, [ebp + 0x1e70]
mov ecx, ebp
push eax
mov dword [esp + 0x20], 0
call fcn.00403fb0
mov dword [ebp + 4], eax
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesClassNet
push 0x80000002
call esi
test eax, eax
je 0x4041a3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404196
push eax
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret
push 0
push 0
mov eax, dword [esp + 0x24]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
lea edx, [esp + 0x50]
push ecx
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x58], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4043ff
mov ecx, dword [esp + 0x28]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebp + 4]
add esp, 4
mov dword [esp + 0x34], esi
test eax, eax
mov dword [esp + 0x24], 0
jle 0x4043ff
lea ebx, [ebp + 0x136]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push 0
inc edx
push 0
lea eax, [esp + 0x3c]
push 0
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4043a9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404291
lea edx, [esp + 0x10]
lea eax, [ebx - 0x106]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.DriverDesc
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [esp + 0x40]
push str.SystemCurrentControlSetServicesClassNetTrans_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x40439e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x28]
mov esi, 0x100
push str.DefaultGateway
push eax
mov dword [esp + 0x28], esi
call edi
mov ecx, dword [esp + 0x10]
push ecx
push ebx
mov ecx, ebp
call fcn.00404890
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
lea edx, [esp + 0x10]
lea esi, [ebx + 0x80]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push str.IPAddress
push ecx
call edi
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push esi
call fcn.00404890
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea esi, [ebx + 0x100]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push 0
push str.IPMask
push edx
mov dword [esp + 0x28], 0x100
call edi
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.00404890
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x180]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [ebp + 0x1e70]
mov byte [ebx - 6], dl
mov al, byte [ebp + 0x1e71]
mov byte [ebx - 5], al
mov cl, byte [ebp + 0x1e72]
mov byte [ebx - 4], cl
mov dl, byte [ebp + 0x1e73]
mov byte [ebx - 3], dl
mov al, byte [ebp + 0x1e74]
mov byte [ebx - 2], al
mov cl, byte [ebp + 0x1e75]
mov eax, dword [esp + 0x24]
mov byte [ebx - 1], cl
mov ecx, dword [ebp + 4]
inc eax
add ebx, 0x306
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x404213
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call ebx
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
sete al
add esp, 0x22c
ret