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

Disassembly:
push rbp
push r13
sub rsp, 0x58
mov rax, qword [0x1402d9040]
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 0x140116e54
mov qword [rsp + 0x48], rdi
mov rdi, qword [r8 + 0x20]
mov qword [rsp + 0x78], rbx
test rdi, rdi
je 0x140116e34
nop dword [rax]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140116d5f
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140116d50
inc rbx
jmp 0x140116d61
xor ebx, ebx
cmp dword [rdi + 4], 2
jne 0x140116e22
cmp qword [rdi + 0x20], 0
je 0x140116e22
cmp qword [rdi + 0x10], 0x10
jb 0x140116e22
lea rcx, [rbx + 0x40]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
test rax, rax
je 0x140116ea5
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 0x140116e0f
xor edx, edx
lea rax, [rcx + 0x10]
mov qword [r8 + 0x18], rax
test rbx, rbx
je 0x140116e07
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 0x140116df0
mov rax, qword [r8 + 0x18]
mov byte [rbx + rax], 0
test rsi, rsi
cmove rsi, r8
test r14, r14
je 0x140116e1f
mov qword [r14 + 0x28], r8
mov r14, r8
mov rdi, qword [rdi + 0x40]
test rdi, rdi
jne 0x140116d40
test rsi, rsi
jne 0x140116e43
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 0x140116e75
call qword [0x1402db5f0]
mov qword [rbp + 0x20], 0
mov r12, qword [rsp + 0x40]
test r15d, r15d
je 0x140116ed3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140116ecc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
test eax, eax
jne 0x140116ed3
mov dword [rbp + 0xa8], 8
jmp 0x140116ed3
mov r15d, 8
test rsi, rsi
je 0x140116ec5
mov rbx, qword [rsi + 0x28]
mov rcx, rsi
call qword [fcn.14016c458]
mov rsi, rbx
test rbx, rbx
jne 0x140116eb0
xor esi, esi
jmp 0x140116e43
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 0x140116f08
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call fcn.140116b40
mov rcx, r13
call qword [fcn.14016c458]
jmp 0x140116f5f
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x140116f3c
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 0x140116f3c
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 0x140116f5f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016b380
add rsp, 0x58
pop r13
pop rbp
ret