Function at 0x1400030e0
Capabilities:
Copy file
Get common file path
Get startup folder
Write file to startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x750]
sub rsp, 0x850
mov rax, qword [0x140035080]
xor rax, rsp
mov qword [rbp + 0x740], rax
xor edi, edi
lea rdx, [rbp + 0x110]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140003733
cmp eax, 0x104
jae 0x140003733
mov r8d, 0x104
lea rdx, [rbp + 0x320]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x20]
call fcn.140002da0
nop
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x80]
call fcn.140004f60
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
mov rcx, rax
call fcn.140006850
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8d, [rdi + 4]
lea rdx, str..exe
lea rcx, [rsp + 0x30]
call fcn.140006850
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140003236
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003231
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003766
call fcn.140007ea0
movdqa xmm0, xmmword [0x14002f650]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140003289
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003284
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000376c
call fcn.140007ea0
movdqa xmm0, xmmword [0x14002f650]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
xor r8d, r8d
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400036a7
lea rax, [rbp + 0x530]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 7]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400036a7
lea rdx, [rbp + 0x530]
lea rcx, [rsp + 0x58]
call fcn.140004f60
nop
mov r8d, 0x13
lea rdx, str._startup_script.bat
mov rcx, rax
call fcn.140006850
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x14000337c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003377
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003772
call fcn.140007ea0
movdqa xmm0, xmmword [0x14002f650]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], di
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp]
call fcn.140023cb0
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
lea rcx, [rbp]
call fcn.140005560
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx], rsi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
cmp qword [rbp + 0x88], 0
je 0x140003600
lea rdx, str._echo_off
lea rcx, [rbp]
call fcn.140005b80
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400059f0
movzx edx, ax
mov rcx, rbx
call fcn.1400065c0
mov rcx, rbx
call fcn.140006460
lea rdx, [0x14002f430]
lea rcx, [rbp]
call fcn.140005b80
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rax
call fcn.1400068d0
lea rdx, [0x14002f42c]
mov rcx, rax
call fcn.140005b80
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.1400059f0
movzx edx, ax
mov rcx, rbx
call fcn.1400065c0
mov rcx, rbx
call fcn.140006460
lea rcx, [rbp + 8]
call fcn.140005420
test rax, rax
jne 0x1400034c2
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x10]
and eax, 0x17
mov dword [rbp + rcx + 0x10], eax
mov edx, dword [rbp + rcx + 0x14]
and edx, eax
jne 0x140003778
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rsi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.140004b80
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 4], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.140007760
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140003569
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037cc
call fcn.140007ea0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400035a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037d2
call fcn.140007ea0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], di
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1400035f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003760
call fcn.140007ea0
xor eax, eax
jmp 0x140003738
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rsi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.140004b80
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 4], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.140007760
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400036a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037cc
call fcn.140007ea0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400036e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037d2
call fcn.140007ea0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], di
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140003733
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000372e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003760
call fcn.140007ea0
mov eax, 1
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.140007d60
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140010898
nop
call fcn.140010898
nop
call fcn.140010898
nop
call fcn.140010898
nop
test dl, 4
je 0x140003786
lea rbx, str.ios_base::badbit_set
jmp 0x14000379b
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1400012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400023e0
lea rdx, [0x1400337b0]
lea rcx, [rsp + 0x58]
call fcn.140009c3c
nop
call fcn.140010898
nop
call fcn.140010898
int3