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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.0040bfb0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.0040bfb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x50d382
mov edx, dword [eax - 0xc]
push edx
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 0x50d385
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], edi
jle 0x50d3ae
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00403bd0
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50d3b1
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
mov dword [ebp + 0xc], edi
lea edi, [edi + ebx + 6]
test edi, edi
jne 0x50d427
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50d3f3
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50d412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [edi + 0x14]
push ecx
call fcn.0053f875
add esp, 4
mov dword [0x5f8ee4], eax
test eax, eax
jne 0x50d494
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50d460
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50d412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0050aad0
test eax, eax
jne 0x50d4fb
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50d4c3
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x50d412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x2afa], 0
je 0x50d50b
mov ecx, esi
call fcn.0050b540
mov esi, dword [0x5f8ee4]
mov dword [ebp - 0x1e], 0xaa129109
mov word [ebp - 0x20], 0x124
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1a], edi
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 8], ax
mov dword [esi + 0xa], ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x50d555
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov eax, dword [ebp - 0x10]
mov esi, dword [0x5f8ee4]
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 + 8]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x50d588
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00403bd0
mov eax, dword [ebp + 8]
mov esi, dword [0x5f8ee4]
mov edx, dword [ebp + 0xc]
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 - 0x14]
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 0x50d5e8
call fcn.0050a6f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
call fcn.00404d60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.0050a6f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8