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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5960e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push 0x5a991c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call fcn.0040b4f0
mov dword [ebp - 4], 0
push 0x5a9918
lea ecx, [ebp - 0x10]
call fcn.0040b4f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x50cef4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403bd0
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50cef7
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], edi
jle 0x50cf20
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50cf23
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
mov dword [ebp - 0x18], edi
lea edi, [edi + ebx + 6]
test edi, edi
jne 0x50cf9a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50cf65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50cf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x14]
push ecx
call fcn.0053f875
add esp, 4
mov dword [0x5f8ee0], eax
test eax, eax
jne 0x50d008
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50cfd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50cf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0050aad0
test eax, eax
jne 0x50d070
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50d037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50cf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x2afa], 0
je 0x50d080
mov ecx, esi
call fcn.0050b540
mov esi, dword [0x5f8ee0]
mov dword [ebp - 0x26], 0x20009209
mov word [ebp - 0x28], 0x124
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x22], edi
mov edx, dword [ebp - 0x24]
mov ax, word [ebp - 0x20]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 8], ax
mov dword [esi + 0xa], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x50d0ca
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403bd0
mov eax, dword [ebp - 0x14]
mov esi, dword [0x5f8ee0]
push ebx
push eax
lea edx, [esi + 0xe]
push edx
call fcn.00554470
xor eax, eax
mov word [esi + ebx + 0xe], ax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x50d0fd
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov eax, dword [ebp - 0x10]
mov esi, dword [0x5f8ee0]
mov edx, dword [ebp - 0x18]
push edx
push eax
lea eax, [esi + ebx + 0x10]
push eax
call fcn.00554470
add esp, 0xc
push 0
add edi, 0xa
push edi
push esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x3c]
push ecx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
mov ecx, esi
cmp eax, edi
jne 0x50d15e
call fcn.0050a6f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.00404d60
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0050a6f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.00404d60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret