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

Disassembly:
push ebx
push edi
push esi
mov esi, edx
mov ebx, dword [ecx + 0x134]
mov eax, dword [ebx + edx*4 + 8]
cmp eax, 3
je 0x596054
mov edi, ecx
cmp eax, 2
je 0x596075
test eax, eax
jne 0x5960ff
cmp dword [ebx + esi*4 + 0x808], 1
jne 0x596099
mov dword [ebx + esi*4 + 8], 1
mov ecx, edi
mov edx, 0xfb
push esi
call fcn.005964e0
add esp, 4
cmp dword [ebx + esi*4 + 0x1808], 1
je 0x5960bb
jmp 0x5960ff
mov eax, dword [ebx + esi*4 + 0x408]
cmp eax, 1
je 0x5960c7
test eax, eax
jne 0x5960ff
mov dword [ebx + esi*4 + 8], 0
jmp 0x5960ff
mov eax, dword [ebx + esi*4 + 0x408]
cmp eax, 1
je 0x5960dc
test eax, eax
jne 0x5960ff
mov dword [ebx + esi*4 + 8], 1
cmp dword [ebx + esi*4 + 0x1808], 1
je 0x5960bb
jmp 0x5960ff
cmp dword [ebx + esi*4 + 0x1808], 1
jne 0x5960ef
mov dword [ebx + esi*4 + 8], 1
mov ecx, edi
mov edx, 0xfb
push esi
call fcn.005964e0
add esp, 4
mov ecx, edi
mov edx, esi
pop esi
pop edi
pop ebx
jmp 0x596560
mov dword [ebx + esi*4 + 8], 1
mov dword [ebx + esi*4 + 0x408], 0
jmp 0x5960ff
mov dword [ebx + esi*4 + 8], 3
mov dword [ebx + esi*4 + 0x1008], 0
mov ecx, edi
mov edx, 0xfc
push esi
call fcn.005964e0
add esp, 4
pop esi
pop edi
pop ebx
ret
push ebp
push ebx
push edi
push esi
sub esp, 0xc
cmp edx, 0x1f
jne 0x59669e
mov eax, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov ebp, dword [ecx + 0x134]
lea edi, [ebp + 0x1eb4]
mov word [ebp + 0x1cb4], 0xfaff
lea eax, [ebp + 0x1cb7]
mov dword [esp + 4], eax
mov dword [ebp + 0x1eb4], eax
mov byte [ebp + 0x1cb6], 0x1f
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WSOCK32.dll_htons]
push eax
call esi
mov ebx, eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov esi, dword [ebp + 0x1eb4]
cmp esi, edi
jb 0x5966a3
cmp esi, edi
jb 0x5966bc
cmp esi, edi
jb 0x5966d5
cmp esi, edi
jb 0x5966ee
cmp esi, edi
jae 0x5965fe
lea eax, [esi + 1]
mov dword [ebp + 0x1eb4], eax
mov byte [esi], 0xff
mov esi, dword [ebp + 0x1eb4]
lea ebx, [ebp + 0x1cb4]
lea eax, [ebp + 0x1cb6]
cmp esi, edi
jae 0x596620
lea ecx, [esi + 1]
mov dword [ebp + 0x1eb4], ecx
mov byte [esi], 0xf0
mov esi, dword [ebp + 0x1eb4]
mov edi, dword [esp]
mov dword [ebp + 0x1eb8], esi
mov dword [ebp + 0x1eb4], ebx
sub esi, ebx
add esi, 0xfffffffe
mov ecx, edi
mov edx, 0x3e
push esi
push eax
call fcn.00596730
add esp, 8
push 0
push 3
push ebx
mov esi, dword [esp + 0x14]
push dword [esi + 0x148]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x596673
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0051ed60
add esp, 0xc
mov ecx, edi
mov edx, dword [esp + 4]
push 4
call fcn.00595690
add esp, 4
add ebp, 0x1cbb
push 0
push 2
push ebp
push dword [esi + 0x148]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x59670c
add esp, 0xc
jmp 0x596721
lea ecx, [esi + 1]
mov dword [ebp + 0x1eb4], ecx
mov byte [esi], bl
mov esi, dword [ebp + 0x1eb4]
cmp esi, edi
jae 0x5965d8
lea ecx, [esi + 1]
mov dword [ebp + 0x1eb4], ecx
mov byte [esi], bh
mov esi, dword [ebp + 0x1eb4]
cmp esi, edi
jae 0x5965e0
lea ecx, [esi + 1]
mov dword [ebp + 0x1eb4], ecx
mov byte [esi], al
mov esi, dword [ebp + 0x1eb4]
cmp esi, edi
jae 0x5965e8
lea ecx, [esi + 1]
mov dword [ebp + 0x1eb4], ecx
mov byte [esi], ah
mov esi, dword [ebp + 0x1eb4]
cmp esi, edi
jb 0x5965ec
jmp 0x5965fe
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0051ed60
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret