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

Disassembly:
push rdi
push r15
sub rsp, 0x48
mov rdi, qword [r8 + 0xe8]
mov r15, r8
mov qword [rsp + 0x68], rbx
lea rbx, [r8 + 0x20]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x30], r12
mov r12d, ecx
mov qword [rsp + 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x70], rdi
test ecx, ecx
jne 0x14006a7fd
mov qword [rsp + 0x38], rsi
mov rsi, qword [rbx]
mov qword [rsp + 0x20], r14
test rsi, rsi
je 0x14006a7d4
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14006a6e4
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14006a6d5
inc rbx
jmp 0x14006a6e6
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14006a6f4
lea r14d, [rax + 0xe]
jmp 0x14006a701
cmp eax, 0x17
jne 0x14006a7c2
lea r14d, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x14006a7c2
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14006a7c2
cmp rax, r14
jb 0x14006a7c2
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14006a84e
mov ecx, dword [rsi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rdi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x14006a7af
mov rcx, qword [rdi + 0x20]
xor edx, edx
add rcx, r14
mov qword [rdi + 0x18], rcx
test rbx, rbx
je 0x14006a7a7
nop word [rax + rax]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rdi + 0x18]
movzx eax, byte [rax + rdx*2]
mov byte [rdx + rcx], al
inc rdx
cmp rdx, rbx
jb 0x14006a790
mov rax, qword [rdi + 0x18]
mov byte [rbx + rax], 0
test rbp, rbp
cmove rbp, rdi
test r13, r13
je 0x14006a7bf
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x14006a6c5
test rbp, rbp
jne 0x14006a7e3
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x70]
lea rbx, [r15 + 0x20]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
mov qword [r15 + 0xb0], rbp
mov rcx, qword [rbx]
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x40]
test rcx, rcx
je 0x14006a81c
call qword [0x14021bab8]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x68]
test r12d, r12d
je 0x14006a867
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14006a860
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r15 + 0xa8], eax
test eax, eax
jne 0x14006a867
mov dword [r15 + 0xa8], 8
jmp 0x14006a867
mov rcx, rbp
mov r12d, 8
call fcn.140089000
xor ebp, ebp
jmp 0x14006a7e3
mov dword [r15 + 0xa8], r12d
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [r15 + 0x80], 0
mov r12, qword [rsp + 0x30]
je case.default.0x14006a89c
mov rcx, qword [r15 + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, r15
call fcn.14006a0e0
mov rcx, rdi
add rsp, 0x48
pop r15
pop rdi
jmp qword [case.0x14006a89c.0]
mov rcx, qword [r15 + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x14006a8d8
xor r9d, r9d
mov byte [rsp + 0x60], 1
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006a8d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r15 + 0xa8], eax
mov rcx, qword [r15 + 0x78]
mov dword [r15 + 0x80], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006a8fb
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x48
pop r15
pop rdi
ret