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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x1400bf030]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov rsi, rcx
lea r15, vtable.LogItem.0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], 7
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 1
lea rdx, [0x1400a33a4]
lea rcx, [rsp + 0x30]
call fcn.140025050
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e610
mov dword [rax + 0x48], 1
lea rdx, [0x1400a33a8]
mov rcx, rax
call fcn.140025050
mov rcx, rax
lea rdx, str.Send_message_called
call fcn.140025050
nop
lea rcx, [rsp + 0x30]
call fcn.140024bf0
cmp dword [rbx + 8], 0x10
jb 0x140033d23
lea rdx, [rbp - 0x70]
mov rcx, qword [rbx]
call fcn.14002f750
nop
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 1
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140025240
nop
lea rcx, [rsp + 0x30]
call fcn.140024bf0
nop
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x140033a7d
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x140033a78
test cl, 0x1f
je 0x140033a48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140033a58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140033a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140033a75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b418
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x140033b8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.14003a9d0
mov rdi, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 3
lea rdx, [0x1400a33a4]
lea rcx, [rsp + 0x30]
call fcn.140025050
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e610
mov dword [rax + 0x48], 1
lea rdx, [0x1400a33a8]
mov rcx, rax
call fcn.140025050
mov rcx, rax
lea rdx, str.Send_failed_with_error:
call fcn.140025050
mov rbx, rax
lea rcx, [rax + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b4f0
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b4f0
nop
lea rcx, [rsp + 0x30]
call fcn.140024bf0
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140033c25
inc r8
mov rdx, qword [rbp - 0x70]
call fcn.14002aac0
jmp 0x140033c25
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 2
lea rdx, [0x1400a33a4]
lea rcx, [rsp + 0x30]
call fcn.140025050
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e610
mov dword [rax + 0x48], 1
lea rdx, [0x1400a33a8]
mov rcx, rax
call fcn.140025050
mov rcx, rax
lea rdx, str.Bytes_sent:
call fcn.140025050
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140024f30
nop
lea rcx, [rsp + 0x30]
call fcn.140024bf0
mov edx, 1
mov rcx, qword [rsi + 0x200]
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140033d59
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.14003a9d0
mov rdi, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 3
lea rdx, [0x1400a33a4]
lea rcx, [rsp + 0x30]
call fcn.140025050
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e610
mov dword [rax + 0x48], 1
lea rdx, [0x1400a33a8]
mov rcx, rax
call fcn.140025050
mov rcx, rax
lea rdx, str.ClientSocket_send_shutdown_failed_with_error:
call fcn.140025050
mov rbx, rax
lea rcx, [rax + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b4f0
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b4f0
nop
lea rcx, [rsp + 0x30]
call fcn.140024bf0
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140033d59
inc r8
mov rdx, qword [rbp - 0x70]
call fcn.14002aac0
jmp 0x140033d59
lea rcx, [rbp + 0x30]
call fcn.140038ef0
nop
lea rdx, str.Unable_to_cast___not_enough_data_in_the_buffer
mov rcx, rax
call fcn.140036760
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14002eb80
lea rdx, [0x1400bb220]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14005b100
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret