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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._upcast_evbuffer
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0xffffffff
cmp dword [ebp - 0x2c], 0
jne 0x6e924fd4
mov eax, 0xffffffff
jmp 0x6e92526a
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6e924ff4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x4c]
and eax, 1
test al, al
setne al
movzx eax, al
test eax, eax
je 0x6e92503e
mov dword [esp + 0x14], str.evbuffer_launch_write_
mov dword [esp + 0x10], str._buf_o__read_in_progress
mov dword [esp + 0xc], 0xba
mov dword [esp + 8], str.buffer_iocp.c
mov dword [esp + 4], 0x6e92e49c
mov dword [esp], 0xdeaddead
call sym.libevent_core_2_1_6.dll_event_errx
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x1c]
and eax, 2
test al, al
jne 0x6e925246
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x4c]
and eax, 2
test al, al
jne 0x6e925246
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x6e925078
mov dword [ebp - 0x24], 0
jmp 0x6e925247
cmp dword [ebp + 0xc], 0
js 0x6e92508b
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
cmp edx, eax
jae 0x6e925094
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0xc], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_freeze
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x50], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x54], 0
mov eax, dword [ebp - 0x18]
add eax, 0x58
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
jmp 0x6e925180
mov eax, dword [ebp - 0x20]
add eax, 0xa
lea edx, [eax*8]
mov eax, dword [ebp - 0x18]
add eax, edx
add eax, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov dword [esp + 4], 0x20
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_chain_pin_
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
cmp edx, eax
jae 0x6e925166
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
sub edx, eax
mov eax, edx
mov dword [ebp + 0xc], eax
jmp 0x6e925174
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
add dword [ebp - 0x20], 1
jmp 0x6e925190
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0xf
jg 0x6e925190
cmp dword [ebp - 0x1c], 0
jne 0x6e9250f9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_incref_
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
lea ebx, [ecx + 0x58]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov eax, dword [sym.imp.WS2_32.dll_WSASend]
call eax
sub esp, 0x1c
test eax, eax
je 0x6e925230
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e5
je 0x6e925230
mov dword [esp + 4], 0x20
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._pin_release
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_unfreeze
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_free
jmp 0x6e925247
mov eax, dword [ebp - 0x18]
movzx edx, byte [eax + 0x4c]
or edx, 2
mov byte [eax + 0x4c], dl
mov dword [ebp - 0x24], 0
jmp 0x6e925247
nop
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6e925267
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0xc]
xor ebx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e92527a
call sym.___stack_chk_fail
mov ebx, dword [ebp - 4]
leave
ret