Function at 0x140041300
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
vmovaps xmmword [rsp + 0x140], xmm6
mov r14, rcx
mov rax, qword [0x140114500]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rax, [0x1400a5100]
mov qword [rsp + 0x28], rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::ios_base::constructor_void____ptr64]
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xb0], rax
vxorps xmm6, xmm6, xmm6
vmovups xmmword [rsp + 0xf8], xmm6
mov byte [rsp + 0x108], 0
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea r12, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rax + 0x28], r12
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x24], ecx
lea rdi, [rsp + 0x30]
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rax + 0x28], rcx
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x10]
mov dword [rsp + rax + 0x24], ecx
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea rcx, [rsp + rax]
add rcx, 0x28
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::init_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
mov qword [rsp + rax + 0x28], r12
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x24], ecx
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r13, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa0], 4
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
mov ecx, 0xffffcfff
and ecx, dword [rsp + rax + 0x40]
or ecx, 0x2000
mov dword [rsp + rax + 0x40], ecx
lea rbx, [rsp + 0x110]
mov edx, 6
mov rcx, rbx
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setprecision_long_long___int64__
mov rdx, qword [rsp + 0x118]
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea rcx, [rsp + rax]
add rcx, 0x28
call qword [rsp + 0x110]
vmovsd xmm1, qword [r14]
mov rbp, 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___double____ptr64]
lea rcx, [rsp + 0x28]
call rbp
lea r15, [0x1400b1ca5]
mov rcx, rax
mov rdx, r15
call fcn.1400424e0
vmovsd xmm1, qword [r14 + 8]
mov rcx, rax
call rbp
mov rcx, rax
mov rdx, r15
call fcn.1400424e0
vmovsd xmm1, qword [r14 + 0x10]
mov rcx, rax
call rbp
vmovaps xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0xf
mov eax, dword [rsp + 0xa0]
mov ecx, eax
and ecx, 0x22
cmp ecx, 2
je 0x14004151a
mov rcx, qword [rsp + 0x70]
mov r14, qword [rcx]
test r14, r14
je 0x14004151a
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
cmp r14, rcx
cmovb r14, rcx
jmp 0x14004153e
test al, 4
jne 0x140041588
mov rax, qword [rsp + 0x68]
mov r14, qword [rax]
test r14, r14
je 0x140041588
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
movsxd rcx, dword [rcx]
add r14, rcx
mov rax, qword [rax]
mov r9, qword [rax]
test r9, r9
je 0x140041588
sub r14, r9
cmp r14, 0xf
jbe 0x140041564
lea rcx, [rsp + 0x110]
mov rdx, r14
call fcn.140009060
jmp 0x140041588
mov qword [rsp + 0x120], r14
lea rcx, [rsp + 0x110]
mov rdx, r9
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + r14 + 0x110], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400415f2
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x120]
inc rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x1400415f2
mov r14, rax
mov r8, qword [rsp + 0x120]
cmp qword [rsp + 0x128], 0x10
jb 0x1400415d0
mov rbx, qword [rsp + 0x110]
inc r8
mov rcx, r14
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 1
mov rdx, r14
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [rsp + 0x128]
cmp rax, 0x10
jb 0x140041639
mov rcx, qword [rsp + 0x110]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140041634
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140041767
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400a1ca8
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
mov qword [rsp + rax + 0x28], r12
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 4]
lea ecx, [rax - 0x88]
mov dword [rsp + rax + 0x24], ecx
mov qword [rsp + 0x30], r13
test byte [rsp + 0xa0], 1
je 0x1400416c8
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov ecx, 0x60
test rax, rax
jne 0x140041688
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov ecx, 0x58
mov rcx, qword [rsp + rcx + 0x28]
movsxd rdx, dword [rcx]
add rdx, rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400416c3
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140041767
add rdx, 0x27
mov rcx, rax
call fcn.1400a1ca8
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x80]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov qword [rax], 0
mov rax, qword [rsp + 0x88]
mov dword [rax], 0
mov qword [rsp + 0x98], 0
and byte [rsp + 0xa0], 0xfe
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::ios_base::destructor_void____ptr64]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400a1e40
vmovaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3