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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140014010]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rbx, rdx
mov qword [rbp + 0x40], r8
mov r15, qword [0x140014068]
test r8, r8
jns 0x14000a8c9
mov rax, 0xffffffffffffffff
jmp 0x14000aae2
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000ab10
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x14000a916
mov rbx, 0xffffffffffffffff
jmp 0x14000aa4a
xor ebx, ebx
mov r13d, 0x1000
nop
mov r8d, 8
sub r8d, ebx
cmp r8d, r13d
cmovg r8d, r13d
movsxd rax, ebx
lea rdx, [rbp + 0x40]
add rdx, rax
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x14000aa43
add ebx, eax
cmp ebx, 8
jl 0x14000a920
jne 0x14000aa43
mov ecx, 0x10000
call fcn.14000cc4c
mov r14, rax
xor r12b, r12b
mov rsi, qword [rbp + 0x40]
test rsi, rsi
je 0x14000a9fa
nop dword [rax + rax]
mov edi, 0x10000
cmp rsi, rdi
cmovl rdi, rsi
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
jne 0x14000a9f7
xor ebx, ebx
test edi, edi
jle 0x14000a9e9
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
cmp r8d, r13d
cmovg r8d, r13d
movsxd rdx, ebx
add rdx, r14
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x14000a9f7
add ebx, eax
cmp ebx, edi
jl 0x14000a9c0
test ebx, ebx
js 0x14000a9f7
movsxd rax, ebx
sub rsi, rax
jne 0x14000a980
jmp 0x14000a9fa
mov r12b, 1
mov rcx, r14
call fcn.14000cc08
lea rcx, [rsp + 0x40]
call fcn.14000ba60
test rax, rax
jne 0x14000aa2f
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rbx, qword [rbp + 0x40]
mov rax, 0xfffffffffffffffd
test r12b, r12b
cmovne rbx, rax
jmp 0x14000aa4a
mov rbx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x40], rax
cmp qword [rbp - 0x40], 0
je 0x14000aaae
mov rax, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
cmp qword [rax], rcx
jne 0x14000aaae
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x70]
mov dword [rax], edx
cmp byte [rbp - 0x44], 0
je 0x14000aabe
lea rcx, [rsp + 0x40]
call fcn.14000ba60
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.14000c990
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret