Function at 0x6e9062dc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6e906315
mov eax, dword [ebp - 0x7c]
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 - 0x7c]
movzx eax, byte [eax + 0x1c]
and eax, 4
test al, al
je 0x6e90632f
mov dword [ebp - 0x60], 0xffffffff
jmp 0x6e906567
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._get_n_bytes_readable_on_socket
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jle 0x6e90634c
cmp dword [ebp - 0x64], 0x1000
jle 0x6e906353
mov dword [ebp - 0x64], 0x1000
cmp dword [ebp + 0x10], 0
js 0x6e906361
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x64]
jle 0x6e906367
mov eax, dword [ebp - 0x64]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_expand_fast_
cmp eax, 0xffffffff
jne 0x6e906392
mov dword [ebp - 0x60], 0xffffffff
jmp 0x6e906567
mov dword [esp + 0x14], 1
lea eax, [ebp - 0x70]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_read_setup_vecs_
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 0
jmp 0x6e9063ee
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp + eax*8 - 0x2c]
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*8 - 0x48], edx
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp + eax*8 - 0x28]
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*8 - 0x4c], edx
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
jl 0x6e9063ce
mov dword [ebp - 0x68], 0
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea ecx, [ebp - 0x68]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x6c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSARecv]
call eax
sub esp, 0x1c
test eax, eax
je 0x6e90645d
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2745
jne 0x6e906454
mov dword [ebp - 0x64], 0
jmp 0x6e906463
mov dword [ebp - 0x64], 0xffffffff
jmp 0x6e906463
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jne 0x6e906475
mov dword [ebp - 0x60], 0xffffffff
jmp 0x6e906567
cmp dword [ebp - 0x64], 0
jne 0x6e906487
mov dword [ebp - 0x60], 0
jmp 0x6e906567
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0
jmp 0x6e906528
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
and eax, 8
test eax, eax
jne 0x6e9064cf
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ecx, eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add eax, edx
sub ecx, eax
mov eax, ecx
jmp 0x6e9064d4
mov eax, 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x58], eax
jle 0x6e9064fc
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
add edx, ecx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x58], eax
jmp 0x6e90651c
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
add edx, ecx
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], edx
jmp 0x6e906534
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
jl 0x6e906499
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x64]
add edx, eax
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x64]
add edx, eax
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_invoke_callbacks_
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6e906587
mov eax, dword [ebp - 0x7c]
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 - 0x60]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e90659a
call sym.___stack_chk_fail
leave
ret