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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140D.dll_memset
lea rbx, [rdi + 8]
mov rdx, rbx
cmp qword [rdi + 0x20], 0x10
jb 0x140002044
mov rdx, qword [rbx]
lea rcx, [rbp - 0x50]
call fcn.140003980
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x54], edx
cmp qword [rbp + 0x48], 0
je 0x14000231d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea ecx, [r14 + 0x10]
call fcn.140004fa0
mov qword [rax + 8], r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
lea ecx, [r14 + 0x10]
call fcn.140004fa0
mov qword [rax + 8], r14
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
cmp qword [rdi + 0x20], 0x10
jb 0x14000210b
mov rbx, qword [rbx]
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call qword [sym.imp.MSVCP140D.dll__To_wide]
test eax, eax
jne 0x14000212d
lea rcx, str.invalid_char_filename_argument
call qword [sym.imp.MSVCP140D.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea rax, [rbp + 0xd0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140002140
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.140003f50
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400040e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400012b0
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140002190
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
call fcn.140004660
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov edx, send
call fcn.140004660
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rbp - 0x60]
call qword [sym.imp.MSVCP140D.dll__Stat]
mov edi, r14d
cmp eax, 8
je 0x140002205
cmp eax, 0xffffffff
je 0x140002205
cmp eax, 1
jne 0x140002205
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.MSVCP140D.dll__File_size]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002223
mov dword [rbp - 0x70], 1
lea rax, [0x14000c038]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov edi, dword [rbp - 0x70]
test edi, edi
jne 0x1400023c9
mov dword [rsp + 0x58], ebx
lea rcx, [rsp + 0x30]
call fcn.1400012b0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140002256
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140004660
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov edx, send
call fcn.140004660
movsxd rcx, dword [rsp + 0x58]
call fcn.140005010
mov rbx, rax
mov qword [rbp - 0x60], rax
movsxd r8, dword [rsp + 0x58]
mov rdx, rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140D.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]
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp - 0x38]
call fcn.140003900
test rax, rax
jne 0x140002314
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140D.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rcx, rbx
call fcn.140004da0
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rbp + rcx - 0x54], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rax
cmp qword [rbp + 0x48], 0
je 0x140002375
mov rax, qword [rbp - 0x20]
lea rcx, [rbp + 0x38]
cmp qword [rax], rcx
jne 0x140002375
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
mov qword [rax], rcx
mov rax, qword [rbp]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
cmp byte [rbp + 0x44], 0
je 0x140002384
lea rcx, [rbp - 0x38]
call fcn.140003900
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140D.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140D.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140D.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140004d80
mov rbx, qword [rsp + 0x430]
add rsp, 0x3f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001d20
nop
int3