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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
movzx ebx, dl
test r8, r8
jne 0x14000c65d
lea rdx, str.Not_registering_for_state_changes_since_statechangehandle_is_NULL
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [0x1400d1571], bpl
xor eax, eax
jmp 0x14000c86f
mov r8b, 1
movzx edx, r9b
xor ecx, ecx
call fcn.14000a860
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c6a6
lea rdx, str.Failed_to_create_socket_for_registering_for_state_changes
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [0x1400d1571], 1
mov rax, rsi
jmp 0x14000c86f
lea rax, str.Xregisterstatelistener
lea rdx, str.registerstatelistener
test bl, bl
cmovne rdx, rax
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000c6e0
lea rcx, [rsp + 0x28]
call fcn.14000a730
nop
lea rcx, [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x40]
cmp r9, 8
cmovae rcx, r8
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000c710
add eax, eax
lea rdx, [rsp + 0x28]
cmp r9, 8
cmovae rdx, r8
xor r9d, r9d
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000c789
lea rdx, str.ERROR_writing_output_Code_to_socket:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400097c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov byte [0x1400d1571], 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000c828
mov rcx, qword [0x1400d1578]
test rcx, rcx
je 0x14000c7a2
mov byte [0x1400d1574], 1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov byte [0x1400d1574], 0
mov ecx, reloc.WS2_32.dll_recv
call fcn.140055554
mov rdi, rax
test rax, rax
je 0x14000c7c1
mov dword [rax + 4], r14d
jmp 0x14000c7c4
mov rdi, r14
mov dword [rdi], esi
mov qword [rdi + 8], rbp
mov qword [section..data], rsi
mov ecx, reloc.WS2_32.dll_recv
call fcn.140055554
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000c802
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rcx, rax
call fcn.14001e040
lea rax, vtable.MegaThread.0
mov qword [rbx], rax
jmp 0x14000c805
mov rbx, r14
mov qword [0x1400d1578], rbx
mov rax, qword [rbx]
mov r8, rdi
lea rdx, [0x14000be40]
mov rcx, rbx
call qword [rax]
mov byte [0x1400d1571], 0
mov edi, r14d
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14000c86d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c868
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c868
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055590
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140055ba0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret