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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 8]
sub eax, 0xb4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x623ed90e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xac]
test eax, eax
jne 0x623ed93a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._evdns_server_request_format_response
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
js 0x623edae6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x90]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb0]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jns 0x623edab0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_geterror
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x623edae9
cmp dword [ebp - 0xc], 0x2714
je 0x623edae9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x623ed9fd
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx], eax
jmp 0x623edaa7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 8], 1
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_del
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 9]
test al, al
je 0x623eda40
mov esi, 0x14
jmp 0x623eda45
mov esi, 0x16
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x10]
lea ebx, [ecx + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], sym._server_port_ready_callback
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.libevent_2_1_6.dll_event_assign
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_add
test eax, eax
jns 0x623edaa7
mov dword [esp + 4], str.Error_from_libevent_when_adding_event_for_DNS_server
mov dword [esp], 2
call sym._evdns_log_
mov dword [ebp - 0x18], 1
jmp 0x623edaea
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._server_request_free
test eax, eax
je 0x623edac8
mov dword [ebp - 0x18], 0
jmp 0x623edaea
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x623edadd
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._server_port_flush
mov dword [ebp - 0x18], 0
jmp 0x623edaea
nop
jmp 0x623edaea
nop
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x623edb0a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret