Function at 0x402060
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443bd4
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x457080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5cc], esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5b8]
push eax
push 0x202
mov dword [ebp - 0x640], esi
mov dword [ebp - 0x5bc], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40283e
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x5c4], edi
cmp edi, 0xffffffff
jne 0x402101
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Error_to_create_socket.
jmp 0x402843
push 0x10
push 0x459410
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40212b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Error_to_connect.
jmp 0x402843
mov edx, dword [ebp - 0x5c8]
lea ecx, [ebp - 0x670]
call fcn.00401610
mov dword [ebp - 0x63c], eax
mov dword [ebp - 4], 1
mov eax, closesocket
mov ecx, dword [0x459430]
sub eax, ecx
mov dword [ebp - 0x5d0], ecx
cmp eax, 1
jb 0x40285f
cmp dword [0x459434], 0xf
lea edx, [ecx + 1]
mov eax, 0x459420
mov dword [ebp - 0x624], 0
cmova eax, dword [0x459420]
mov edi, 0xf
mov dword [ebp - 0x638], eax
xorps xmm0, xmm0
mov dword [ebp - 0x620], 0
lea eax, [ebp - 0x634]
mov dword [ebp - 0x5c8], edx
mov dword [ebp - 0x5c0], eax
movups xmmword [ebp - 0x634], xmm0
cmp edx, edi
jbe 0x40224c
mov edi, edx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x402202
mov ecx, closesocket
mov edi, closesocket
add ecx, 0x23
push ecx
call fcn.0042377c
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x402869
mov edx, dword [ebp - 0x5c8]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x5d0]
jmp 0x402240
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x402223
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402864
jmp 0x4021d8
test eax, eax
je 0x40223e
push eax
call fcn.0042377c
mov ecx, dword [ebp - 0x5d0]
add esp, 4
mov edx, dword [ebp - 0x5c8]
jmp 0x402240
xor eax, eax
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x634], eax
push ecx
push dword [ebp - 0x638]
mov dword [ebp - 0x624], edx
push eax
mov dword [ebp - 0x620], edi
call fcn.00424b80
mov eax, dword [ebp - 0x5c0]
mov edi, 2
mov ecx, dword [ebp - 0x5d0]
add esp, 0xc
mov dword [ebp - 0x5bc], edi
mov word [eax + ecx], 0x7c
push 0x459438
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 2
call fcn.00403610
mov dword [ebp - 0x5dc], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5ec], xmm0
mov dword [ebp - 0x5d8], 0
or edi, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5ec], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5dc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x5bc], edi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x5d8]
mov eax, edx
mov ecx, dword [ebp - 0x5dc]
sub eax, ecx
cmp eax, 1
jb 0x402328
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x5dc], eax
lea eax, [ebp - 0x5ec]
cmova eax, dword [ebp - 0x5ec]
mov word [eax + ecx], 0x7c
lea eax, [ebp - 0x5ec]
jmp 0x402342
push 1
push 0x44f320
push dword [ebp - 0x5cc]
lea ecx, [ebp - 0x5ec]
push 1
call fcn.00404f10
movups xmm0, xmmword [eax]
or edi, 8
movups xmmword [ebp - 0x604], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5f4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x5bc], edi
push dword [ebp - 0x63c]
lea eax, [ebp - 0x604]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x5cc]
lea ecx, [ebp - 0x61c]
call fcn.00406010
or edi, 0x10
mov dword [ebp - 0x5bc], edi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x608]
mov eax, edx
mov ecx, dword [ebp - 0x60c]
sub eax, ecx
cmp eax, 1
jb 0x4023de
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x61c]
cmova eax, dword [ebp - 0x61c]
mov word [eax + ecx], 0x7c
lea eax, [ebp - 0x61c]
jmp 0x4023f8
push 1
push 0x44f320
push dword [ebp - 0x5cc]
lea ecx, [ebp - 0x61c]
push 1
call fcn.00404f10
mov dword [ebp - 0x648], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x658], xmm0
mov dword [ebp - 0x644], 0
or edi, 0x20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x658], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x648], xmm0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov dword [ebp - 0x5bc], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x658]
push dword [ebp - 0x5d4]
call fcn.00403610
mov dword [ebp - 0x418], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x428], xmm0
mov dword [ebp - 0x414], 0
or edi, 0x40
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x418], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x5d4], edi
mov dword [ebp - 0x5bc], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x644]
cmp ecx, 0xf
jbe 0x4024ef
mov edx, dword [ebp - 0x658]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4024e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x608]
cmp ecx, 0xf
jbe 0x402548
mov edx, dword [ebp - 0x61c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40253e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
mov dword [ebp - 0x60c], 0
mov dword [ebp - 0x608], 0xf
mov byte [ebp - 0x61c], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x5f0]
cmp ecx, 0xf
jbe 0x4025a1
mov edx, dword [ebp - 0x604]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402597
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x5d8]
cmp ecx, 0xf
jbe 0x4025df
mov edx, dword [ebp - 0x5ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
mov dword [ebp - 0x5dc], 0
mov dword [ebp - 0x5d8], 0xf
mov byte [ebp - 0x5ec], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x620]
cmp ecx, 0xf
jbe 0x402638
mov edx, dword [ebp - 0x634]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40262e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0xf
mov byte [ebp - 0x634], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x65c]
cmp ecx, 0xf
jbe 0x402691
mov edx, dword [ebp - 0x670]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402687
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402869
push ecx
push edx
call fcn.004237b1
add esp, 8
cmp dword [ebp - 0x414], 0xf
lea eax, [ebp - 0x428]
mov edi, dword [ebp - 0x5c4]
cmova eax, dword [ebp - 0x428]
push 0
push dword [ebp - 0x418]
mov dword [ebp - 0x660], 0
push eax
push edi
mov dword [ebp - 0x65c], 0xf
mov byte [ebp - 0x670], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4026f2
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Error_to_send_data.
jmp 0x402843
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp - 0x5d4]
or eax, 1
push 0
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x410]
push 0x400
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x4027be
test edi, edi
je 0x4027d7
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp edi, eax
ja 0x402787
lea eax, [ecx + edi]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x402767
mov eax, dword [esi]
lea esi, [eax + ecx]
push edi
lea eax, [ebp - 0x410]
push eax
push esi
call fcn.00424b80
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x640]
jmp 0x40279d
push edi
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
push dword [ebp - 0x5cc]
push edi
call fcn.00404f10
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x5c4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402742
push dword [ebp - 0x5c4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Error_to_receive_data.
jmp 0x402843
push dword [ebp - 0x5c4]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x414]
cmp ecx, 0xf
jbe 0x40281f
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402815
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40286e
push ecx
push edx
call fcn.004237b1
add esp, 8
mov eax, esi
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.0042376e
mov esp, ebp
pop ebp
ret 0xc
push 0x44f2e0
lea ecx, [ebp - 0x5f8]
call fcn.00401720
push 0x45560c
lea eax, [ebp - 0x5f8]
push eax
call fcn.00424b0b
call fcn.00401600
call fcn.00401560
call fcn.0042dc12
call fcn.0042dc12
int3