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

Disassembly:
sub esp, 0x90c
mov eax, dword [0x6d35ac]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
mov ebp, dword [esp + 0x918]
lea eax, [esp + 0x90]
push esi
push edi
push 0x80
push 0
push eax
call fcn.005b24a0
push 0x80
lea eax, [esp + 0x28]
push 0
push eax
call fcn.005b24a0
mov edi, dword [ebp + 0x134]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x2c], ebx
mov eax, dword [edi + 0x1eb8]
sub eax, dword [edi + 0x1eb4]
add eax, 2
push eax
lea eax, [edi + 0x1cb4]
push eax
push 0x3c
push ebp
call fcn.00516830
mov eax, dword [edi + 0x1eb4]
add esp, 0x28
mov cl, byte [eax]
inc eax
mov dword [edi + 0x1eb4], eax
cmp cl, 0x18
je 0x51702a
cmp cl, 0x23
je 0x517007
cmp cl, 0x27
jne 0x5170bb
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.0050e830
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
mov ebx, 0x800
test edi, edi
je 0x516fa6
nop dword [eax]
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516ef5
sub ecx, edx
lea eax, [esi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x516f9b
xor eax, eax
mov byte [esp + 0x18], al
mov word [esp + 0x10], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xa0]
push eax
push str._127____1____127s
push dword [edi]
call fcn.00404591
add esp, 0x14
cmp eax, 1
jne 0x516f67
lea eax, [esp + 0x98]
push eax
push 0
mov eax, ebx
sub eax, esi
push str._c_s
push eax
lea eax, [esp + 0x128]
add eax, esi
push eax
call fcn.0050e830
add esp, 0x14
jmp 0x516f99
cmp eax, 2
jl 0x516f9b
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0xa0]
push eax
push 0
mov eax, ebx
sub eax, esi
push str._c_s_c_s
push eax
lea eax, [esp + 0x130]
add eax, esi
push eax
call fcn.0050e830
add esp, 0x1c
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x516ef0
push 0xf0
push 0xff
push str._c_c
sub ebx, esi
lea eax, [esp + 0x124]
add eax, esi
push ebx
push eax
call fcn.0050e830
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [esp + 0x120]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x517001
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004fd730
add esp, 0xc
push esi
jmp 0x5170a8
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517012
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0x51704b
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517035
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [esp + 0x138]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.0050e830
add esp, 0x28
lea eax, [esp + 0x118]
push 0
push esi
push eax
push dword [ebx + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5170a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004fd730
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x11e]
push eax
push 0x3e
push ebp
call fcn.00516830
add esp, 0x10
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a7a2
add esp, 0x90c
ret