Function at 0x4010f5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Read .ini file

Disassembly:
jmp 0x405780
sub esp, 0x5a8
push ebx
push esi
mov edx, ecx
push edi
mov edi, str.SYSTEMControlSet001ServicesTcpipParameters
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov ecx, edx
mov dword [esp + 0x10], esi
call fcn.0040183e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x405801
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4057f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x5a8
ret
push ebp
push esi
push esi
mov ecx, dword [esp + 0x1c]
push esi
push esi
push esi
lea edx, [esp + 0x38]
push esi
lea eax, [esp + 0x40]
push edx
push eax
push esi
push esi
push esi
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebp, eax
cmp ebp, esi
jne 0x4059ce
mov edx, dword [esp + 0x24]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x20], esi
jle 0x4059c5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push 0
inc eax
push 0
lea ecx, [esp + 0x40]
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
push ecx
push edi
push edx
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push 0
push edi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4059a3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4b8]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
push str.Description
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3b8]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push edx
push eax
push ebp
push str.ServiceName
push ecx
mov dword [esp + 0x28], pe_nt_image_headers32
call esi
mov ebp, eax
test ebp, ebp
jne 0x4059a3
lea edx, [esp + 0x3b8]
lea eax, [esp + 0x1b8]
push edx
push eax
lea ecx, [esp + 0x2c0]
push str._sInterfaces_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x30]
lea eax, [esp + 0x2b8]
push edx
push 0x20019
push ebp
push eax
push reloc.WS2_32.dll_bind
call ebx
mov ebp, eax
test ebp, ebp
jne 0x405998
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
add edx, 0x1fa1c
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push edx
push eax
push ebp
push str.DefaultGateway
push ecx
mov dword [esp + 0x28], pe_nt_image_headers32
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x138]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
push str.NameServer
push edx
mov dword [esp + 0x28], pe_nt_image_headers32
call esi
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40585c
xor esi, esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x138]
push 0x43256c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, esi
je 0x4059f6
mov byte [eax], 0
mov ecx, dword [esp + 0x18]
xor edx, edx
lea edi, [esp + 0x138]
push str..DHCP.ini
lea ebx, [ecx + 0x1fa9c]
or ecx, 0xffffffff
mov eax, ebx
push 0x80
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x20]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + 0x1fb1c]
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push 0x433900
push str.DNSServerIP
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405ac8
mov eax, ebx
xor edx, edx
lea edi, [esp + 0x38]
or ecx, 0xffffffff
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x38]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.DNSIP_s
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + 0x1fb1c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push str..DHCP.ini
lea edx, [esp + 0x3c]
push 0x80
push edx
push 0x433900
push str.GateWayIP
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405b36
mov eax, dword [esp + 0x18]
xor ecx, ecx
lea edi, [esp + 0x38]
lea edx, [eax + 0x1fa1c]
mov eax, edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
or ecx, 0xffffffff
xor eax, eax
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]
xor eax, eax
test ebp, ebp
pop ebp
pop edi
pop esi
pop ebx
sete al
add esp, 0x5a8
ret