Function at 0x402580
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4163db
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x423028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
call fcn.00403460
test al, al
je 0x40281d
lea eax, [ebp - 0x230]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40281d
push 0xffffffffffffffff
push 2
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.004039e0
cmp dword [eax + 0x14], 0x10
jb 0x4025fb
mov eax, dword [eax]
push 0x417258
push eax
call fcn.00408dd0
add esp, 8
lea ecx, [ebp - 0x58]
mov edi, eax
call fcn.00401130
mov eax, dword [esi + 0x10]
sub eax, 2
cmp edi, eax
jae 0x40281d
push edi
push 2
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.004039e0
cmp dword [eax + 0x14], 0x10
jb 0x402637
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_gethostbyname
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x234], eax
call fcn.00401130
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x40281d
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x234]
push eax
call fcn.00404e20
add esp, 0xc
lea eax, [edi + 3]
mov ecx, esi
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004039e0
mov edi, eax
push section..data
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00402190
mov dword [ebp - 0x28], 0
mov eax, 0x5c5c
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 2
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
push dword [ebp - 0x234]
mov byte [ebp - 4], 2
call sub.WS2_32.dll_inet_ntoa
mov edx, eax
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x234], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026e0
sub ecx, dword [ebp - 0x234]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403770
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x88]
call fcn.00402220
push edi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x40]
call fcn.00402220
lea ecx, [ebp - 0x88]
call fcn.00401130
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x402793
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402789
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40284c
push edx
push ecx
call fcn.00403d14
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x4027cb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4027c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40284c
push edx
push ecx
call fcn.00403d14
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x58]
call fcn.00401130
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
call fcn.00401130
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x40280e
cmp dword [ebp - 0x2c], 0x10
mov ecx, esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00401d40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00401130
mov ecx, dword [ebp - 0x238]
push esi
call fcn.00402190
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403d22
mov esp, ebp
pop ebp
ret 4
call fcn.00406f9f
int3