Function at 0x6e922e65
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0x1c], eax
xor eax, eax
call sym.libevent_core_2_1_6.dll_event_get_win32_extension_fns_
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x51]
movzx eax, al
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4c]
movzx eax, byte [eax + 0x20]
and eax, 1
test al, al
jne 0x6e922ed9
mov eax, 0
jmp 0x6e92305b
cmp dword [ebp - 0x20], 0xffffffff
jne 0x6e922eee
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x28], eax
jmp 0x6e923032
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4c]
add eax, 0x24
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x700b
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x14]
and eax, 1
test eax, eax
jne 0x6e922f3e
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_make_socket_nonblocking
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_iocp_port_associate_
test eax, eax
jns 0x6e922f7c
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x6e92305b
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
lea edi, [edx + 0x18]
mov edx, dword [ebp - 0x3c]
movzx edx, byte [edx + 0x50]
shr dl, 1
movzx ecx, dl
mov edx, dword [ebp - 0x3c]
movzx edx, byte [edx + 0x50]
shr dl, 1
movzx edx, dl
mov ebx, dword [ebp - 0x3c]
lea esi, [ebx + 0x58]
mov ebx, dword [ebp - 0x3c]
mov ebx, dword [ebx + 0x4c]
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 0x40], ebx
mov dword [esp + 0x1c], edi
lea ebx, [ebp - 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x40]
mov dword [esp], ecx
call eax
sub esp, 0x20
test eax, eax
je 0x6e923017
mov eax, dword [ebp - 0x3c]
add eax, 0x18
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._accepted_socket_cb
jmp 0x6e92302a
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e5
jne 0x6e923031
mov eax, 0
jmp 0x6e92305b
nop
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x3c]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_deferred_cb_schedule_
mov eax, 0
mov esi, dword [ebp - 0x1c]
xor esi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e92306b
call sym.___stack_chk_fail
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret