Function at 0x467d56
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x5c4e68]
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.005117f0
mov edi, 0x103
push edi
lea eax, [esp + 0x1e9]
push ebx
push eax
mov byte [esp + 0x1f0], bl
call fcn.005117f0
push edi
lea eax, [esp + 0x2fd]
push ebx
push eax
mov byte [esp + 0x304], bl
call fcn.005117f0
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 0x467de8
mov dword [ebp + 0x10], 0x104
cmp dword [esp + 0x10], ebx
je 0x468044
cmp esi, ebx
je 0x468044
cmp dword [ebp + 0x10], ebx
jle 0x468044
call fcn.004f16be
push dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, 0x102
lea eax, [esp + 0x1dc]
call fcn.004c3b66
lea eax, [esp + 0x2e4]
call fcn.004c3ab2
mov edi, 0x53deb8
push edi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1e0]
call fcn.004c5846
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
je 0x467e5e
push edi
lea eax, [esp + 0x1c]
xor ecx, ecx
call fcn.004c5846
pop ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
call fcn.004c3b34
test eax, eax
jne 0x467e92
push dword [esp + 0x14]
mov ecx, 0x104
lea eax, [esp + 0x2e4]
call fcn.004c3b66
push 0x3a
xor eax, eax
lea edi, [esp + 0x2e8]
call fcn.004c4a73
pop ecx
pop ecx
mov edi, 0x6bfab0
mov edx, edi
call fcn.004c3b34
test eax, eax
jne 0x467ede
lea eax, [esp + 0x1d8]
push 0x6bf9a8
push eax
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
jne 0x467ede
push edi
mov ecx, 0x104
lea eax, [esp + 0x1dc]
call fcn.004c3b66
push eax
push dword [esp + 0x18]
push str.:2:ResolveHostNameToIP___s___is_using___s__instead_
call fcn.00426c01
add esp, 0x10
lea ecx, [esp + 0x1d8]
mov byte [esi], bl
call fcn.004673ed
test eax, eax
je 0x467f22
lea ebx, [esp + 0x1d8]
call fcn.004672b3
mov ecx, dword [ebp + 0x10]
mov eax, ebx
push eax
mov eax, esi
call fcn.004c3b66
lea eax, [esp + 0x2e4]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004c3c36
pop ecx
pop ecx
mov eax, esi
jmp 0x468046
lea eax, [esp + 0x30]
push eax
push 0x101
mov byte [esi], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x468044
lea eax, [esp + 0x1d8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, eax
cmp ecx, ebx
je 0x467fe7
movzx edx, word [ecx + 0xa]
cmp dx, bx
jle 0x467fe7
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.00512a90
push dword [esp + 0x30]
lea eax, [esp + 0x1d4]
mov byte [esi], bl
call fcn.00467c75
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x1d4]
push eax
mov eax, esi
call fcn.004c3b66
add esp, 0x14
mov ecx, esi
xor edi, edi
call fcn.004673ed
test eax, eax
jne 0x467fea
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.004265da
add esp, 0x1c
or edi, 0xffffffff
call sub.WSOCK32.dll_WSACleanup
cmp edi, ebx
jne 0x468044
push esi
call fcn.005120b0
test eax, eax
pop ecx
jbe 0x468044
lea eax, [esp + 0x2e0]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004c3c36
pop ecx
call fcn.004f16be
sub eax, dword [esp + 0x1c]
cmp eax, 0xfa0
jbe 0x467f1b
call fcn.004f16be
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.004265da
add esp, 0x10
jmp 0x467f1b
xor eax, eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret