Function at 0x140036978
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x18658]
mov eax, 0x18750
call fcn.140043780
sub rsp, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
and qword [rbp - 0x58], 0
mov byte [rbp - 0x80], 2
and qword [rbp - 0x70], 0
and qword [rbp - 0x78], 0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140036248
nop
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [0x1403b14d8]
call qword [sym.imp.WS2_32.dll_send]
mov r14d, 0x1000
cmp eax, 0xffffffff
jne 0x140036a18
lea rdx, str.Failed_to_send_write_request_to_server
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003fbec
lea rdx, [0x14003fd5c]
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]
xor ebx, ebx
jmp 0x140036b2a
xor r9d, r9d
mov r8d, 0x186a0
lea rdx, [rbp - 0x50]
mov rcx, qword [0x1403b14d8]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
test eax, eax
je 0x140036a72
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400415ac
mov r8, rdi
lea rdx, [rbp - 0x50]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400362f0
cmp byte [rsp + 0x50], 2
jne 0x140036aa2
cmp qword [rsp + 0x60], 8
jne 0x140036aa2
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400360bc
mov rbx, rax
jmp 0x140036aa4
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140036aee
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, r14
jb 0x140036ada
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ada
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140042990
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
and qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140036b2a
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, r14
jb 0x140036b24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036b24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140042990
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140036b74
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, r14
jb 0x140036b60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036b60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140042990
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
and qword [rsp + 0x48], 0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140036bad
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, r14
jb 0x140036ba8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ba8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140042990
mov rax, rbx
lea r11, [rsp + 0x18750]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret