Function at 0x401a40
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
push edi
push 0x248
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x50], 0x248
cmp dword [ebp - 8], 0
je 0x401b1a
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x401a84
jmp 0x401b0e
mov edx, dword [ebp - 8]
add edx, 0x10c
mov dword [ebp - 4], edx
jmp 0x401a9a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x401b0e
mov edx, dword [ebp - 4]
add edx, 4
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x401b0c
cmp dword [ebp - 0x54], 0xffffffff
je 0x401b0c
cmp dword [0x411d7c], 0xb
jge 0x401b0c
mov eax, dword [ebp - 4]
add eax, 4
mov edi, eax
mov ecx, dword [0x411d7c]
shl ecx, 6
add ecx, 0x40f938
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [0x411d7c]
add eax, 1
mov dword [0x411d7c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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]
jmp 0x401a92
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_free
add esp, 4
mov dword [ebp - 0x48], str.128.214.46.64
mov dword [ebp - 0x44], str.216.234.246.150
lea edx, [ebp - 0x40]
push edx
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call sub.iphlpapi.dll_GetBestRoute
test eax, eax
jne 0x401bdb
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
shr edx, 0x18
and edx, 0xff
push edx
mov eax, dword [ebp - 0x58]
shr eax, 0x10
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x58]
shr ecx, 8
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x58]
and edx, 0xff
push edx
push str._d._d._d._d
push 0x13
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x1c
lea edi, [ebp - 0x6c]
mov ecx, dword [0x411d7c]
shl ecx, 6
add ecx, 0x40f938
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [0x411d7c]
add eax, 1
mov dword [0x411d7c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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 [ebp - 0x48]
mov ecx, dword [0x411d7c]
shl ecx, 6
add ecx, 0x40f938
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [0x411d7c]
add eax, 1
mov dword [0x411d7c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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 [ebp - 0x44]
mov ecx, dword [0x411d7c]
shl ecx, 6
add ecx, 0x40f938
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x411d7c]
add eax, 1
mov dword [0x411d7c], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
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 dword [0x40d930], 0x40f938
pop edi
pop esi
mov esp, ebp
pop ebp
ret