Function at 0x4013e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
push esi
push edi
mov di, ax
mov esi, ecx
call fcn.00403db7
mov dword [eax], 0
test esi, esi
je 0x401468
push ebp
push 0x1e4
call fcn.0040356b
mov ebp, eax
add esp, 4
mov dword [esp + 0xc], ebp
push 0x1e4
test ebp, ebp
je 0x40145e
push 0
push ebp
call fcn.0040a730
mov eax, str._UNKNOWN_
mov edx, ebp
add esp, 0xc
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401430
push ebx
push esi
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x401593
push esi
test di, di
je 0x401472
push str.Cant_parse__s_as_an_IP_address
call fcn.00401340
push str.Hmalloc__d_failed
call fcn.00401340
push str.gethostpoop_fuxored
call fcn.00401340
call sub.WS2_32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x40148f
call sub.WS2_32.dll_WSAGetLastError
push esi
push str._s:_forward_host_lookup_failed:_h_errno__d
mov edx, eax
call fcn.00401340
mov eax, dword [edi]
push 0x100
push eax
push ebp
call fcn.00403e00
mov eax, dword [edi + 0xc]
add esp, 0xc
cmp dword [eax], 0
je 0x4014eb
xor esi, esi
lea ebx, [ebp + 0x100]
add ebp, 0x1c0
cmp esi, 0x20
jge 0x4014e7
mov ecx, dword [esi + eax]
mov eax, dword [ecx]
push 0x18
push eax
mov dword [ebp], eax
call sub.WS2_32.dll_inet_ntoa
push eax
push ebx
call fcn.00403e00
mov eax, dword [edi + 0xc]
add esi, 4
add esp, 0xc
add ebx, 0x18
add ebp, 4
cmp dword [esi + eax], 0
jne 0x4014b6
mov ebp, dword [esp + 0x10]
cmp word [0x414b20], 0
je 0x401644
cmp dword [ebp + 0x1c0], 0
lea edi, [ebp + 0x1c0]
mov dword [esp + 0x10], 0
je 0x401644
lea ebx, [ebp + 0x100]
lea ebx, [ebx]
cmp dword [esp + 0x10], 8
jge 0x401644
push 2
push 4
push edi
call sub.WS2_32.dll_gethostbyaddr
mov esi, eax
test esi, esi
je 0x401566
cmp dword [esi], 0
je 0x401566
call fcn.00403db7
mov dword [eax], 0
mov edx, dword [esi]
push edx
push ebp
call fcn.0040ddd1
add esp, 8
test eax, eax
je 0x40157a
mov eax, dword [esi]
push eax
push ebp
push str.DNS_fwd_rev_mismatch:__s____s
jmp 0x401572
call sub.WS2_32.dll_WSAGetLastError
push eax
push ebx
push str.Warning:_inverse_host_lookup_failed_for__s:_h_errno__d
call fcn.004012a0
add esp, 0xc
inc dword [esp + 0x10]
add edi, 4
add ebx, 0x18
cmp dword [edi], 0
jne 0x401520
pop ebx
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 8
ret
mov dword [ebp + 0x1c0], eax
mov ecx, dword [esp + 0x14]
push 0xc0
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea edx, [ebp + 0x100]
push edx
call fcn.00403e00
add esp, 0xc
test di, di
jne 0x401644
cmp word [0x414b20], di
je 0x401644
push 2
push 4
lea eax, [esp + 0x1c]
push eax
call sub.WS2_32.dll_gethostbyaddr
test eax, eax
jne 0x4015fa
call sub.WS2_32.dll_WSAGetLastError
push eax
push esi
push str._s:_inverse_host_lookup_failed:_h_errno__d
call fcn.004012a0
add esp, 0xc
pop ebx
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [eax]
push 0xfe
push ecx
push ebp
call fcn.00403e00
add esp, 0xc
push ebp
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x401630
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x401630
mov esi, eax
mov edi, ebp
call fcn.004013a0
pop ebx
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 8
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
push ebp
push str.Warning:_forward_host_lookup_failed_for__s:_h_errno__d
call fcn.004012a0
add esp, 0xc
pop ebx
mov eax, ebp
pop ebp
pop edi
pop esi
add esp, 8
ret