Function at 0x4708b9
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x5f2e68]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x18e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x36]
push ebx
push eax
mov word [esp + 0x3c], bx
call fcn.005306b0
mov edi, 0x103
push edi
lea eax, [esp + 0x1e9]
push ebx
push eax
mov byte [esp + 0x1f0], bl
call fcn.005306b0
push edi
lea eax, [esp + 0x2fd]
push ebx
push eax
mov byte [esp + 0x304], bl
call fcn.005306b0
xor eax, eax
mov word [esp + 0x44], bx
lea edi, [esp + 0x46]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
jge 0x47094b
mov dword [ebp + 0x10], 0x104
cmp dword [esp + 0x10], ebx
je 0x470ba7
cmp esi, ebx
je 0x470ba7
cmp dword [ebp + 0x10], ebx
jle 0x470ba7
call fcn.004fa8e4
push dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, 0x102
lea eax, [esp + 0x1dc]
call fcn.004ccc3f
lea eax, [esp + 0x2e4]
call fcn.004ccb8b
mov edi, 0x55e608
push edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1e0]
call fcn.004ce974
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x4709c1
push edi
lea eax, [esp + 0x1c]
xor ecx, ecx
call fcn.004ce974
pop ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
call fcn.004ccc0d
test eax, eax
jne 0x4709f5
push dword [esp + 0x14]
mov ecx, 0x104
lea eax, [esp + 0x2e4]
call fcn.004ccc3f
push 0x3a
xor eax, eax
lea edi, [esp + 0x2e8]
call fcn.004cdba1
pop ecx
pop ecx
mov edi, 0x6edaf8
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x470a41
lea eax, [esp + 0x1d8]
push 0x6ed9f0
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x470a41
push edi
mov ecx, 0x104
lea eax, [esp + 0x1dc]
call fcn.004ccc3f
push eax
push dword [esp + 0x18]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.0042bd38
add esp, 0x10
lea ecx, [esp + 0x1d8]
mov byte [esi], bl
call fcn.0046ff50
test eax, eax
je 0x470a85
lea ebx, [esp + 0x1d8]
call fcn.0046fe16
mov ecx, dword [ebp + 0x10]
mov eax, ebx
push eax
mov eax, esi
call fcn.004ccc3f
lea eax, [esp + 0x2e4]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004ccd0f
pop ecx
pop ecx
mov eax, esi
jmp 0x470ba9
lea eax, [esp + 0x30]
push eax
push 0x101
mov byte [esi], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x470ba7
lea eax, [esp + 0x1d8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
cmp ecx, ebx
je 0x470b4a
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x470b4a
xor eax, eax
mov byte [esp + 0x1c4], bl
lea edi, [esp + 0x1c5]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, dx
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.00531bb0
push dword [esp + 0x30]
lea eax, [esp + 0x1d4]
mov byte [esi], bl
call fcn.004707d8
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1d4]
push eax
mov eax, esi
call fcn.004ccc3f
add esp, 0x14
mov ecx, esi
xor edi, edi
call fcn.0046ff50
test eax, eax
jne 0x470b4d
movzx eax, byte [esp + 0x27]
push esi
push eax
movzx eax, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push eax
movzx eax, byte [esp + 0x34]
push eax
push dword [esp + 0x24]
push str.:9:ResolveHostNameToIP__s__FAILED:_IP_InAddrToA__d._d._d._d__parsed_to__s
call fcn.0042b70b
add esp, 0x1c
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
cmp edi, ebx
jne 0x470ba7
push esi
call fcn.00530f70
test eax, eax
pop ecx
jbe 0x470ba7
lea eax, [esp + 0x2e0]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004ccd0f
pop ecx
call fcn.004fa8e4
sub eax, dword [esp + 0x1c]
cmp eax, 0xfa0
jbe 0x470a7e
call fcn.004fa8e4
sub eax, dword [esp + 0x1c]
push eax
push esi
push dword [esp + 0x18]
push str.:4:ResolveHostNameToIP___took_too_long_to_resolve__s_to__s:__ums
call fcn.0042b70b
add esp, 0x10
jmp 0x470a7e
xor eax, eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005317e7
mov esp, ebp
pop ebp
ret