Function at 0x4225ca
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x22c], eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x422621
test dword [eax + 0x1c], 0x100
je 0x422621
cmp byte [eax + 0x19], 5
jb 0x422621
push dword [eax + 0x14]
mov edx, 0x409fa8
push dword [eax + 0x10]
push 0x3c
pop ecx
call fcn.00414ca8
xor eax, eax
xor esi, esi
push 0x80
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x254], esi
xor eax, eax
mov dword [ebp - 0x228], esi
lea edi, [ebp - 0x250]
push 7
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x42267f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4227fa
lea eax, [ebp - 0x228]
mov dword [ebp - 0x24c], 1
push eax
neg ebx
mov dword [ebp - 0x248], 6
lea eax, [ebp - 0x254]
sbb ebx, ebx
push eax
push esi
push dword [ebp - 0x234]
and ebx, 0xffffffeb
add ebx, 0x17
mov dword [ebp - 0x250], ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x4226ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x4227fa
test dword [eax + 0x1c], 0x100
je 0x4227fa
cmp byte [eax + 0x19], 2
jb 0x4227fa
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3d
jmp 0x4227ef
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x230], 0x41
test eax, eax
je 0x4227c3
cmp dword [eax + 0x18], esi
je 0x4227c3
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push esi
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x422779
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x4227fa
test dword [eax + 0x1c], 0x100
je 0x4227fa
cmp byte [eax + 0x19], 2
jb 0x4227fa
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3e
jmp 0x4227ef
lea ecx, [ebp - 0x94]
call fcn.0041dc6b
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
test eax, eax
jne 0x4227fa
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x4227be
test dword [eax + 0x1c], 0x100
je 0x4227be
cmp byte [eax + 0x19], 2
jb 0x4227be
push dword [eax + 0x14]
mov edx, 0x409fa8
push dword [eax + 0x10]
push 0x40
pop ecx
call fcn.00414ca8
push 8
pop esi
jmp 0x4227fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x475014]
cmp eax, 0x475014
je 0x4227fa
test dword [eax + 0x1c], 0x100
je 0x4227fa
cmp byte [eax + 0x19], 2
jb 0x4227fa
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3f
mov edx, 0x409fa8
pop ecx
call fcn.00414ccb
cmp dword [ebp - 0x228], 0
je 0x42280f
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
test edi, edi
jne 0x422819
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468ba0
mov esp, ebp
pop ebp
ret 4