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

Disassembly:
push rsi
push rdi
push r15
push rbp
sub rsp, 0x48
mov rbp, rcx
mov rsi, rdx
mov rdx, qword [rbp + 8]
add rdx, 0x30
mov eax, 1
lock xadd dword [rdx], eax
mov r15, qword [rsp + 0xa0]
cmp byte [rsp + 0x98], 0
je 0x140086972
mov rbp, qword [rbp + 8]
mov dword [r15 + 0x30], 1
call fcn.1400cc560
mov qword [r15], rax
xor eax, eax
mov rcx, qword [rbp + 0x28]
xor edx, edx
mov r8d, 2
mov r9, r15
mov dword [r15 + 0x10], eax
mov dword [r15 + 0x14], eax
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140086a0f
lea rsi, [rbp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x98]
mov qword [r15 + 0x20], 0
test rax, rax
je 0x1400869ea
mov qword [rax + 0x20], r15
mov qword [rbp + 0x98], r15
jmp 0x1400869f8
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x140086a19
mov rbp, qword [rbp + 8]
mov dword [r15 + 0x30], 1
call fcn.1400cc560
mov rcx, qword [rbp + 0x28]
xor edx, edx
mov r8d, 2
mov r9, r15
mov qword [r15], rax
mov dword [r15 + 0x10], 0x2719
mov dword [r15 + 0x14], 0
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140086a0f
lea rsi, [rbp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x98]
mov qword [r15 + 0x20], 0
test rax, rax
je 0x1400869ea
mov qword [rax + 0x20], r15
mov qword [rbp + 0x98], r15
jmp 0x1400869f8
mov qword [rbp + 0x98], r15
mov qword [rbp + 0x90], r15
add rbp, 0x58
mov eax, 1
mov rdx, rbp
xchg dword [rdx], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x48
pop rbp
pop r15
pop rdi
pop rsi
ret
mov rsi, rsp
mov rdx, r8
mov r8d, r9d
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsi + 0x20], eax
mov qword [rsi + 0x28], r15
mov qword [rsi + 0x30], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, 0x274d
cmp esi, 0x4d2
cmove esi, eax
test edi, edi
je 0x140086b08
cmp esi, 0x3e5
je 0x140086b08
mov rdi, qword [rbp + 8]
mov ebp, dword [rsp + 0x40]
mov dword [r15 + 0x30], 1
call fcn.1400cc560
mov rcx, qword [rdi + 0x28]
xor edx, edx
mov r8d, 2
mov r9, r15
mov qword [r15], rax
mov dword [r15 + 0x10], esi
mov dword [r15 + 0x14], ebp
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140086a0f
lea rbp, [rdi + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x98]
mov qword [r15 + 0x20], 0
test rax, rax
je 0x140086ad9
mov qword [rax + 0x20], r15
mov qword [rdi + 0x98], r15
jmp 0x140086ae7
mov qword [rdi + 0x98], r15
mov qword [rdi + 0x90], r15
add rdi, 0x58
mov eax, 1
mov rdx, rdi
xchg dword [rdx], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x48
pop rbp
pop r15
pop rdi
pop rsi
ret
mov ecx, 1
lea rdi, [r15 + 0x30]
xor eax, eax
mov rbp, qword [rbp + 8]
lock cmpxchg dword [rdi], ecx
cmp eax, 1
jne 0x140086a0f
mov rcx, qword [rbp + 0x28]
xor edx, edx
mov r8d, 2
mov r9, r15
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140086a0f
lea rsi, [rbp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 0x98]
mov qword [r15 + 0x20], 0
test rax, rax
je 0x1400869ea
mov qword [rax + 0x20], r15
mov qword [rbp + 0x98], r15
jmp 0x1400869f8