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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push eax
call fcn.004dc540
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x4dbf6a
or eax, 0xffffffff
jmp 0x4dc1d1
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x4dbf84
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
push 0
call fcn.00442400
add esp, 8
xor ecx, ecx
jne 0x4dbf6a
xor edx, edx
jne 0x4dbf6a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
and ecx, 1
je 0x4dbfee
push 0x51cd24
push 0x51cd3c
push 0xba
push 0x51cd58
push 0x51cd68
push 0xdeaddead
call fcn.00441370
add esp, 0x18
push str.evbuffer_launch_write_
push str._buf_o__read_in_progress
push 0xba
push 0x51cdc0
push 0x51cdd0
push 2
call fcn.004a3929
add esp, 4
push eax
call fcn.00429fa0
add esp, 0x18
call fcn.004a7d51
xor edx, edx
jne 0x4dbf8c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
shr ecx, 1
and ecx, 1
jne 0x4dc00c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
shr eax, 1
and eax, 1
je 0x4dc011
jmp 0x4dc1ac
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
jne 0x4dc028
mov dword [ebp - 0x14], 0
jmp 0x4dc1ac
cmp dword [ebp + 0xc], 0
jl 0x4dc039
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0xc]
jbe 0x4dc042
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0xc], edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00438d20
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], 0
push 0x80
push 0
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
call fcn.0049d330
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x4dc0a8
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 0xc], 0x10
jge 0x4dc11d
cmp dword [ebp - 8], 0
je 0x4dc11d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*8 + 0x58]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
push 0x20
mov ecx, dword [ebp - 8]
push ecx
call fcn.004391c0
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp eax, dword [edx + 0xc]
jbe 0x4dc105
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
sub edx, dword [ecx + 0xc]
mov dword [ebp + 0xc], edx
jmp 0x4dc118
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4dc11d
jmp 0x4dc097
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00439120
add esp, 4
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4dc196
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3e5
je 0x4dc196
push 0x20
mov eax, dword [ebp - 4]
push eax
call fcn.004dc560
add esp, 8
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438da0
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00435180
add esp, 4
jmp 0x4dc1ac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
or ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x4dc1c6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
push 0
call fcn.00442430
add esp, 8
xor eax, eax
jne 0x4dc1ac
xor ecx, ecx
jne 0x4dc1ac
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret