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

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp qword [rcx + 0xa8], 0
mov r14, rcx
mov rbx, qword [rcx + 0x98]
je 0x18005eb71
call fcn.180075ac0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x30], r15
test rbx, rbx
je 0x18005ed21
xor r12d, r12d
mov eax, dword [rbx + 0xa0]
lea rcx, [rbx + 0x20]
mov r8d, dword [rbx + 0xd0]
xor r9d, r9d
mov rdx, qword [rbx + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x18005ec05
mov rcx, qword [r14]
call fcn.18004c750
mov edi, eax
cmp eax, 0x2733
je 0x18005ed74
cmp eax, 0x2714
je 0x18005ed74
mov ecx, eax
call fcn.18004c7d0
mov r8, rax
lea rdx, str.Error__s___d__while_writing_response_to_port__dropping
mov r9d, edi
mov ecx, 2
call fcn.18005c8d0
mov ebp, 1
mov r15d, r12d
cmp qword [rbx + 0xe0], r12
je 0x18005ec5a
mov esi, r12d
cmp dword [rbx + 0xdc], r12d
jle 0x18005ec4e
mov rdi, r12
nop word [rax + rax]
mov rcx, qword [rbx + 0xe0]
mov rcx, qword [rdi + rcx]
call fcn.18022c440
inc esi
lea rdi, [rdi + 8]
cmp esi, dword [rbx + 0xdc]
jl 0x18005ec30
mov rcx, qword [rbx + 0xe0]
call fcn.18022c440
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x18005ecad
mov rdx, qword [rdx + 0xa8]
test rdx, rdx
je 0x18005ec76
xor ecx, ecx
call fcn.180075b10
mov rcx, qword [rbx + 0x18]
mov r15d, ebp
cmp qword [rcx + 0x98], rbx
jne 0x18005eca3
mov rax, qword [rbx]
test rax, rax
je 0x18005ec9c
cmp rax, rbx
je 0x18005ec9c
mov qword [rcx + 0x98], rax
jmp 0x18005eca3
mov qword [rcx + 0x98], r12
mov rax, qword [rbx + 0x18]
dec dword [rax + 8]
mov ebp, dword [rax + 8]
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x18005ecbe
call fcn.18022c440
mov rcx, rbx
call fcn.18005b8a0
mov rcx, qword [rbx]
test rcx, rcx
je 0x18005ece5
cmp rcx, rbx
je 0x18005ece5
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
test ebp, ebp
je 0x18005ed95
test r15d, r15d
je 0x18005ed09
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0xa8]
test rdx, rdx
je 0x18005ed09
xor ecx, ecx
call fcn.180075b30
mov rcx, rbx
call fcn.18022c440
mov rbx, qword [r14 + 0x98]
test rbx, rbx
jne 0x18005eb96
lea rcx, [r14 + 0x20]
call fcn.180052740
mov r8, qword [r14]
lea rax, [0x18005b9c0]
mov rdx, qword [r14 + 0xa0]
lea rcx, [r14 + 0x20]
mov r9d, reloc.WS2_32.dll_select
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call fcn.1800522e0
xor edx, edx
lea rcx, [r14 + 0x20]
call fcn.180052650
test eax, eax
jns 0x18005ed74
lea rdx, str.Error_from_libevent_when_adding_event_for_DNS_server.
mov ecx, 2
call fcn.18005c8d0
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x38
pop r14
pop rbx
ret
mov rax, qword [rbx + 0x18]
mov rdx, qword [rax + 0xa8]
test rdx, rdx
je 0x18005edac
xor ecx, ecx
call fcn.180075b30
mov rsi, qword [rbx + 0x18]
mov rcx, qword [rsi]
test rcx, rcx
jle 0x18005edc4
call sub.WS2_32.dll_closesocket
mov qword [rsi], 0xffffffffffffffff
lea rcx, [rsi + 0x20]
call fcn.180052740
lea rcx, [rsi + 0x20]
call fcn.180050f70
mov rcx, qword [rsi + 0xa8]
test rcx, rcx
je 0x18005edec
mov edx, 1
call fcn.180075af0
mov rcx, rsi
call fcn.18022c440
mov rcx, rbx
call fcn.18022c440
jmp 0x18005ed74