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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4c939a
cmp edx, 0xffffffff
je 0x4c9594
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x4c9593
xor eax, eax
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c957b
mov ecx, dword [edi + 0x20]
cmp ecx, 0xffffffff
je 0x4c957b
cmp dword [edi + 0x54], 0
jne 0x4c957b
test esi, esi
je 0x4c9446
push esi
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c9578
mov esi, dword [esi]
xor eax, eax
test esi, esi
je 0x4c9441
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x20]
add ecx, 4
cmp dword [ecx], edx
je 0x4c9413
inc eax
add ecx, 4
cmp eax, esi
jb 0x4c9402
mov eax, dword [edi + 0x38]
jmp 0x4c944e
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x4c9439
mov ebx, dword [ebp + 0xc]
lea edx, [ebx + 4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov esi, dword [ebx]
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x4c9423
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
mov dword [ecx], eax
mov eax, dword [edi + 0x38]
jmp 0x4c944e
cmp ecx, edx
jne 0x4c957b
xor ecx, ecx
test eax, eax
je 0x4c945c
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x4c9454
mov esi, dword [0x55f1a8]
lea eax, [ecx*8]
push eax
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, dword [ebp - 0xc]
mov edi, eax
add esp, 4
mov ecx, dword [esi + 0x38]
test edi, edi
je 0x4c951a
xor edx, edx
test ecx, ecx
je 0x4c94a4
nop dword [eax]
mov eax, dword [ecx]
mov dword [edi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [edi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4c9490
mov eax, dword [esi + 0x20]
mov esi, dword [ebx + 0x91b8]
test esi, esi
je 0x4c94cc
push dword [ebx + 0x91bc]
mov esi, dword [esi + 0x10]
mov ecx, esi
push edx
push edi
push eax
call dword [0x51a4a0]
call esi
add esp, 0x10
jmp 0x4c94d7
push edx
push edi
push eax
call fcn.004ccbe0
add esp, 0xc
mov esi, dword [fcn.004b7430]
mov ebx, eax
push edi
mov ecx, esi
call dword [0x51a4a0]
call esi
add esp, 4
test ebx, ebx
jns 0x4c9514
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebp + 8]
cmp eax, 0xb
je 0x4c9575
cmp eax, 0x2733
je 0x4c9575
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.004c82d0
jmp 0x4c9572
push ebx
mov ebx, dword [ebp + 8]
jmp 0x4c9569
mov edx, dword [esi + 0x20]
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
test esi, esi
je 0x4c9551
push dword [ebx + 0x91bc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 1
mov dword [ebp - 0x14], ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
push edx
call dword [0x51a4a0]
call esi
add esp, 0x10
jmp 0x4c955c
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c9568
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4c94fa
push eax
push dword [ebp - 4]
push ebx
call fcn.004c7be0
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x58
inc eax
cmp eax, dword [ebx + 0x78]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
jl 0x4c93b5
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret