Function at 0x1400345c0
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 [0x1400c0030]
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, [0x1400a4444]
lea rcx, [rsp + 0x30]
call fcn.140025060
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e620
mov dword [rax + 0x48], 1
lea rdx, [0x1400a4448]
mov rcx, rax
call fcn.140025060
mov rcx, rax
lea rdx, str.Send_message_called
call fcn.140025060
nop
lea rcx, [rsp + 0x30]
call fcn.140024c00
cmp dword [rbx + 8], 0x14
jb 0x140034a03
lea rdx, [rbp - 0x70]
mov rcx, qword [rbx]
call fcn.1400303e0
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.140025250
nop
lea rcx, [rsp + 0x30]
call fcn.140024c00
nop
mov rax, qword [rbp - 0x58]
cmp rax, 0x10
jb 0x14003475d
inc rax
mov rcx, qword [rbp - 0x70]
cmp rax, 0x1000
jb 0x140034758
test cl, 0x1f
je 0x140034728
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 0x140034738
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 0x140034748
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140034755
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005c1c8
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x208]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x14003486b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.14003b6b0
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, [0x1400a4444]
lea rcx, [rsp + 0x30]
call fcn.140025060
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e620
mov dword [rax + 0x48], 1
lea rdx, [0x1400a4448]
mov rcx, rax
call fcn.140025060
mov rcx, rax
lea rdx, str.Send_failed_with_error:
call fcn.140025060
mov rbx, rax
lea rcx, [rax + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b500
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b500
nop
lea rcx, [rsp + 0x30]
call fcn.140024c00
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140034905
inc r8
mov rdx, qword [rbp - 0x70]
call fcn.14002aad0
jmp 0x140034905
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, [0x1400a4444]
lea rcx, [rsp + 0x30]
call fcn.140025060
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e620
mov dword [rax + 0x48], 1
lea rdx, [0x1400a4448]
mov rcx, rax
call fcn.140025060
mov rcx, rax
lea rdx, str.Bytes_sent:
call fcn.140025060
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140024f40
nop
lea rcx, [rsp + 0x30]
call fcn.140024c00
mov edx, 1
mov rcx, qword [rsi + 0x208]
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140034a39
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.14003b6b0
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, [0x1400a4444]
lea rcx, [rsp + 0x30]
call fcn.140025060
mov dword [rax + 0x48], r14d
mov rdx, rsi
mov rcx, rax
call fcn.14002e620
mov dword [rax + 0x48], 1
lea rdx, [0x1400a4448]
mov rcx, rax
call fcn.140025060
mov rcx, rax
lea rdx, str.ClientSocket_send_shutdown_failed_with_error:
call fcn.140025060
mov rbx, rax
lea rcx, [rax + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b500
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.14002b500
nop
lea rcx, [rsp + 0x30]
call fcn.140024c00
nop
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x140034a39
inc r8
mov rdx, qword [rbp - 0x70]
call fcn.14002aad0
jmp 0x140034a39
lea rcx, [rbp + 0x30]
call fcn.140039bd0
nop
lea rdx, str.Unable_to_cast___not_enough_data_in_the_buffer
mov rcx, rax
call fcn.140037440
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14002eb90
lea rdx, [0x1400bc630]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14005beb0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret