Function at 0x40335e
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x1c], ax
mov ebx, 0
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x403393
mov dword [esp], 0x1e0
call fcn.0040325d
mov ebx, eax
test ebx, ebx
jne 0x4033a3
mov dword [esp], str.gethostpoop_fuxored
call fcn.0040313a
mov eax, ebx
mov dword [esp + 4], str._UNKNOWN_
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x403574
cmp word [ebp - 0x1c], 0
je 0x4033ee
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Cant_parse__s_as_an_IP_address
call fcn.0040313a
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403425
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
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 fcn.0040313a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, ebx
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_strncpy
mov esi, 0
jmp 0x4034ae
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
lea edx, [esi + 0x70]
shl edx, 2
add edx, ebx
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
lea eax, [esi + 0x70]
mov eax, dword [ebx + eax*4]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_inet_ntoa]
call eax
sub esp, 4
mov edx, eax
mov eax, esi
add eax, eax
add eax, esi
shl eax, 3
add eax, 0x100
add eax, ebx
mov dword [esp + 8], 0x18
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
add esi, 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x4034c6
cmp esi, 7
jle 0x403447
movzx eax, word [0x40a086]
test ax, ax
jne 0x4034d9
mov eax, ebx
jmp 0x403696
mov esi, 0
jmp 0x403558
lea eax, [esi + 0x70]
shl eax, 2
add eax, ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 4
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyaddr]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403517
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x403546
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
mov edx, eax
mov eax, esi
add eax, eax
add eax, esi
shl eax, 3
add eax, 0x100
add eax, ebx
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 fcn.0040307f
jmp 0x403555
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403309
add esi, 1
lea eax, [esi + 0x70]
mov eax, dword [ebx + eax*4]
test eax, eax
je 0x403694
cmp esi, 7
jle 0x4034e0
jmp 0x403694
lea eax, [ebx + 0x1c0]
mov dword [esp + 8], 4
lea edx, [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_inet_ntoa]
call eax
sub esp, 4
mov edx, eax
lea eax, [ebx + 0x100]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
cmp word [ebp - 0x1c], 0
je 0x4035cb
mov eax, ebx
jmp 0x403696
movzx eax, word [0x40a086]
test ax, ax
jne 0x4035de
mov eax, ebx
jmp 0x403696
mov dword [esp + 8], 2
mov dword [esp + 4], 4
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyaddr]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403627
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
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 fcn.0040307f
jmp 0x403694
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, ebx
mov dword [esp + 8], 0xfe
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_strncpy
mov eax, ebx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403666
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x403685
mov eax, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
call eax
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 fcn.0040307f
jmp 0x403694
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403309
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret