Function at 0x40ae80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e398d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x537700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [0x53c078]
mov dword [ebp - 0x28], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax + edx*4]
cmp byte [esi + 0xc], 0
jne 0x40aecd
call fcn.004b89f4
mov eax, dword [esi + 4]
test eax, eax
je 0x40aedc
mov eax, dword [eax + 4]
jmp 0x40aede
xor eax, eax
push 4
push 0x68
push eax
push dword [ebp + 0x14]
call fcn.0040ac00
add esp, 0x10
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
xor esi, esi
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40af07
mov edx, dword [eax + 8]
mov esi, ecx
lock inc dword [ecx + 8]
mov dword [edi + 0x14], 0
lea eax, [esi + 8]
mov dword [edi + 0x18], 0x423200
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebp - 0x10], eax
test esi, esi
je 0x40af61
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], esi
lock inc dword [eax]
jmp 0x40af64
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x18]
push 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x28], eax
push 0
mov eax, dword [ecx + 4]
mov dword [edi + 0x34], eax
movq xmm0, qword [ecx + 8]
movq qword [edi + 0x38], xmm0
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x40], eax
mov eax, dword [ecx + 0x14]
lea ecx, [edi + 0x4c]
mov dword [edi + 0x44], eax
call fcn.0040e9b0
test esi, esi
je 0x40afb7
mov ecx, dword [ebp - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x40afb7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
test byte [ecx + 4], 0x10
je 0x40afeb
test edx, edx
jne 0x40afeb
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov ecx, dword [ebx + 4]
push edx
push edx
push edi
call fcn.00425a50
jmp 0x40b061
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [ecx]
push 0
cmp eax, 0xffffffff
jne 0x40b00d
mov ecx, dword [ebx + 4]
push 0x2719
push edi
call fcn.00425a50
jmp 0x40b061
push edi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push ecx
push 1
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40b058
cmp eax, 0x3e5
je 0x40b058
push dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.00425a50
jmp 0x40b061
mov ecx, dword [ebx + 4]
push edi
call fcn.00425b80
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.004277a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14