Function at 0x4030ba
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 sub.msvcrt.dll__errno
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x4030ee
mov dword [esp], 0x1e0
call fcn.00402fbb
mov ebx, eax
test ebx, ebx
jne 0x4030fe
mov dword [esp], 0x408623
call fcn.00402ea2
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
call sub.WSOCK32.DLL_inet_addr
sub esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x4032dd
cmp word [ebp - 0x2c], 0
je 0x403147
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x408638
call fcn.00402ea2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WSOCK32.DLL_gethostbyname
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40317a
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x408658
call fcn.00402ea2
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 sub.msvcrt.dll_strncpy
mov esi, 0
jmp 0x40320c
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 sub.msvcrt.dll_memcpy
lea eax, [esi + 0x70]
mov eax, dword [ebx + eax*4]
mov dword [esp], eax
call sub.WSOCK32.DLL_inet_ntoa
sub esp, 4
mov ecx, eax
lea eax, [ebx + 0x100]
mov edi, eax
mov edx, esi
mov eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea eax, [edi + eax]
mov dword [esp + 8], 0x18
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strncpy
add esi, 1
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 0x403228
cmp esi, 7
jle 0x40319c
movzx eax, word [0x40a06e]
test ax, ax
jne 0x40323b
mov eax, ebx
jmp 0x4033f3
mov esi, 0
jmp 0x4032c1
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 sub.WSOCK32.DLL_gethostbyaddr
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40327c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
jne 0x4032af
call sub.WSOCK32.DLL_WSAGetLastError
mov ecx, eax
lea eax, [ebx + 0x100]
mov edi, eax
mov edx, esi
mov eax, edx
add eax, eax
add eax, edx
shl eax, 3
lea eax, [edi + eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x408684
call fcn.00402dec
jmp 0x4032be
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403067
add esi, 1
lea eax, [esi + 0x70]
mov eax, dword [ebx + eax*4]
test eax, eax
je 0x4033f1
cmp esi, 7
jle 0x403242
jmp 0x4033f1
lea eax, [ebx + 0x1c0]
mov dword [esp + 8], 4
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.WSOCK32.DLL_inet_ntoa
sub esp, 4
lea edx, [ebx + 0x100]
mov dword [esp + 8], 0xc0
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_strncpy
cmp word [ebp - 0x2c], 0
je 0x403330
mov eax, ebx
jmp 0x4033f3
movzx eax, word [0x40a06e]
test ax, ax
jne 0x403343
mov eax, ebx
jmp 0x4033f3
lea eax, [ebp - 0x20]
mov dword [esp + 8], 2
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.WSOCK32.DLL_gethostbyaddr
sub esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x403388
call sub.WSOCK32.DLL_WSAGetLastError
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.00402dec
jmp 0x4033f1
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 sub.msvcrt.dll_strncpy
mov eax, ebx
mov dword [esp], eax
call sub.WSOCK32.DLL_gethostbyname
sub esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4033c5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4033e2
call sub.WSOCK32.DLL_WSAGetLastError
mov edx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0x4086e8
call fcn.00402dec
jmp 0x4033f1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403067
mov eax, ebx
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
pop ebp
ret