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

Disassembly:
push rbp
push r13
sub rsp, 0x58
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r13, qword [r8 + 0xe8]
mov rbp, r8
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
xor r14d, r14d
mov qword [rsp + 0x30], r15
mov r15d, ecx
test ecx, ecx
jne 0x1400028f4
mov qword [rsp + 0x48], rdi
mov rdi, qword [r8 + 0x20]
mov qword [rsp + 0x78], rbx
test rdi, rdi
je 0x1400028d4
nop dword [rax]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400027ff
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400027f0
inc rbx
jmp 0x140002801
xor ebx, ebx
cmp dword [rdi + 4], 2
jne 0x1400028c2
cmp qword [rdi + 0x20], 0
je 0x1400028c2
cmp qword [rdi + 0x10], 0x10
jb 0x1400028c2
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
test rax, rax
je 0x140002945
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x18], 0
mov qword [rax + 0x28], 0
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
test rbx, rbx
je 0x1400028af
xor edx, edx
lea rax, [rcx + 0x10]
mov qword [r8 + 0x18], rax
test rbx, rbx
je 0x1400028a7
nop word [rax + rax]
mov rax, qword [rdi + 0x18]
mov rcx, qword [r8 + 0x18]
movzx eax, byte [rax + rdx*2]
mov byte [rdx + rcx], al
inc rdx
cmp rdx, rbx
jb 0x140002890
mov rax, qword [r8 + 0x18]
mov byte [rbx + rax], 0
test rsi, rsi
cmove rsi, r8
test r14, r14
je 0x1400028bf
mov qword [r14 + 0x28], r8
mov r14, r8
mov rdi, qword [rdi + 0x40]
test rdi, rdi
jne 0x1400027e0
test rsi, rsi
jne 0x1400028e3
mov r15d, 0x2af9
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov qword [rbp + 0xb0], rsi
mov rcx, qword [rbp + 0x20]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
test rcx, rcx
je 0x140002915
call qword [0x14007ea70]
mov qword [rbp + 0x20], 0
mov r12, qword [rsp + 0x40]
test r15d, r15d
je 0x140002973
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14000296c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
test eax, eax
jne 0x140002973
mov dword [rbp + 0xa8], 8
jmp 0x140002973
mov r15d, 8
test rsi, rsi
je 0x140002965
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [0x14007c4b8]
mov rsi, rbx
test rbx, rbx
jne 0x140002950
xor esi, esi
jmp 0x1400028e3
mov dword [rbp + 0xa8], r15d
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x80], 0
mov r15, qword [rsp + 0x30]
je 0x1400029a8
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call fcn.1400025e0
mov rcx, r13
call qword [0x14007c4b8]
jmp 0x1400029ff
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x1400029dc
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400029dc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
mov rcx, qword [rbp + 0x78]
mov dword [rbp + 0x80], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [r13]
test rcx, rcx
je 0x1400029ff
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065250
add rsp, 0x58
pop r13
pop rbp
ret