Function at 0x403117
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x2c], ax
mov ebx, 0
call sym.__errno
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x40314b
mov dword [esp], 0x1e0
call dbg.Hmalloc
mov ebx, eax
test ebx, ebx
jne 0x40315b
mov dword [esp], str.gethostpoop_fuxored
call dbg.bail
mov eax, ebx
mov dword [esp + 4], str._UNKNOWN_
mov dword [esp], eax
call sym._strcpy
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x403339
cmp word [ebp - 0x2c], 0
je 0x4031a4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Cant_parse__s_as_an_IP_address
call dbg.bail
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._gethostbyname_4
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4031d7
call sym._WSAGetLastError_0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._s:_forward_host_lookup_failed:_h_errno__d
call dbg.bail
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, ebx
mov dword [esp + 8], 0x100
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strncpy
mov esi, 0
jmp 0x403269
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
lea edx, [ebx + 0x1c0]
mov ecx, esi
shl ecx, 2
add edx, ecx
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, esi
add eax, 0x70
mov eax, dword [ebx + eax*4]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
mov edx, eax
lea eax, [ebx + 0x100]
mov edi, eax
mov ecx, esi
mov eax, ecx
shl eax, 1
add eax, ecx
shl eax, 3
lea eax, [edi + eax]
mov dword [esp + 8], 0x18
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strncpy
inc esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x403285
cmp esi, 7
jle 0x4031f9
mov ax, word [0x40a0ca]
test ax, ax
jne 0x403297
mov eax, ebx
jmp 0x40344e
mov esi, 0
jmp 0x40331b
lea eax, [ebx + 0x1c0]
mov edx, esi
shl edx, 2
add eax, edx
mov dword [esp + 8], 2
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._gethostbyaddr_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4032d8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
jne 0x40330b
call sym._WSAGetLastError_0
mov edx, eax
lea eax, [ebx + 0x100]
mov edi, eax
mov ecx, esi
mov eax, ecx
shl eax, 1
add eax, ecx
shl eax, 3
lea eax, [edi + eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.Warning:_inverse_host_lookup_failed_for__s:_h_errno__d
call dbg.holler
jmp 0x40331a
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dbg.comparehosts
inc esi
mov eax, esi
add eax, 0x70
mov eax, dword [ebx + eax*4]
test eax, eax
je 0x40344c
cmp esi, 7
jle 0x40329e
jmp 0x40344c
lea eax, [ebx + 0x1c0]
mov dword [esp + 8], 4
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._inet_ntoa_4
sub esp, 4
lea edx, [ebx + 0x100]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strncpy
cmp word [ebp - 0x2c], 0
je 0x40338c
mov eax, ebx
jmp 0x40344e
mov ax, word [0x40a0ca]
test ax, ax
jne 0x40339e
mov eax, ebx
jmp 0x40344e
lea eax, [ebp - 0x20]
mov dword [esp + 8], 2
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._gethostbyaddr_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4033e3
call sym._WSAGetLastError_0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._s:_inverse_host_lookup_failed:_h_errno__d
call dbg.holler
jmp 0x40344c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, ebx
mov dword [esp + 8], 0xfe
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strncpy
mov eax, ebx
mov dword [esp], eax
call sym._gethostbyname_4
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x403420
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x40343d
call sym._WSAGetLastError_0
mov edx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.Warning:_forward_host_lookup_failed_for__s:_h_errno__d
call dbg.holler
jmp 0x40344c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dbg.comparehosts
mov eax, ebx
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret