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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov edi, dword [eax + 0x150]
mov eax, dword [edi + ebx*4 + 8]
sub eax, 0
je 0x567f03
sub eax, 2
je 0x567e7b
sub eax, 1
jne 0x568043
mov eax, dword [edi + ebx*4 + 0x408]
sub eax, 0
je 0x567e62
sub eax, 1
jne 0x568043
mov dword [edi + ebx*4 + 8], 1
mov dword [edi + ebx*4 + 0x408], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov dword [edi + ebx*4 + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + ebx*4 + 0x408]
sub eax, 0
je 0x567ed7
sub eax, 1
jne 0x568043
push eax
mov dword [edi + ebx*4 + 8], 3
mov dword [edi + ebx*4 + 0x1008], eax
lea eax, [ebp - 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov word [ebp - 8], 0xfcff
mov byte [ebp - 6], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x56802e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
jmp 0x568026
mov dword [edi + ebx*4 + 8], 1
cmp dword [edi + ebx*4 + 0x1808], 1
jne 0x568043
call fcn.00568900
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
cmp dword [edi + ebx*4 + 0x808], 1
push 0
mov byte [ebp - 6], bl
push 3
jne 0x567f8f
mov dword [edi + ebx*4 + 8], 1
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x1a8]
mov word [ebp - 8], 0xfbff
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x567f52
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0xc]
call fcn.00543790
add esp, 0xc
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
push 0xfb
call fcn.00567cc0
add esp, 8
cmp dword [edi + ebx*4 + 0x1808], 1
jne 0x568043
mov edx, ebx
mov ecx, esi
call fcn.00568900
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
cmp dword [edi + ebx*4 + 0x1808], 1
lea eax, [ebp - 8]
push eax
jne 0x568001
mov dword [edi + ebx*4 + 8], 1
push dword [esi + 0x1a8]
mov edi, dword [esi]
mov word [ebp - 8], 0xfbff
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x567fd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00543790
add esp, 0xc
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
push 0xfb
call fcn.00567cc0
add esp, 8
mov edx, ebx
mov ecx, esi
call fcn.00568900
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push dword [esi + 0x1a8]
mov word [ebp - 8], 0xfcff
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x56802e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push dword [ebp - 0xc]
call fcn.00543790
add esp, 0xc
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
push 0xfc
call fcn.00567cc0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret