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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404693
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x18
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402b50
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402b44
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x468]
call fcn.00401990
push 0x405424
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.00401990
mov byte [ebp - 4], 1
cmp word [ebp - 0x218], 0
jne 0x40291f
xor ecx, ecx
jmp 0x40293f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402930
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00402c70
push 1
sub esp, 8
lea ecx, [ebp - 0x438]
call fcn.00402bd0
push ecx
inc eax
lea ecx, [ebp - 0x438]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00402b90
mov esi, eax
lea eax, [ebp - 0x438]
cmp eax, esi
je 0x4029c4
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40299b
inc eax
push eax
push dword [ebp - 0x438]
call fcn.00401c90
xor eax, eax
mov dword [ebp - 0x424], 7
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00401c20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x4029e0
inc eax
push eax
push dword [ebp - 0x480]
call fcn.00401c90
push ecx
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x480]
call fcn.00402e90
add esp, 4
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x450]
call fcn.00402f60
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x402a2c
inc eax
push eax
push dword [ebp - 0x480]
call fcn.00401c90
xor eax, eax
mov dword [ebp - 0x46c], 7
cmp dword [ebp - 0x43c], 8
mov word [ebp - 0x480], ax
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x470], 0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402a9e
push 0x403420
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00402ff0
lea edx, [ebp - 0x450]
mov ecx, eax
call fcn.00403210
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov bl, 1
jmp 0x402abe
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x403450
push str.Failed_to_copy_file_to_startup_folder.
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor bl, bl
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x402ad6
inc eax
push eax
push dword [ebp - 0x450]
call fcn.00401c90
xor eax, eax
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x440], 0
cmp eax, 8
jb 0x402b0b
inc eax
push eax
push dword [ebp - 0x438]
call fcn.00401c90
mov ecx, dword [ebp - 0x454]
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp ecx, 8
jb 0x402b40
inc ecx
push ecx
push dword [ebp - 0x468]
call fcn.00401c90
mov al, bl
jmp 0x402b70
push 0x403450
push str.Failed_to_get_module_file_name.
jmp 0x402b5a
push 0x403450
push str.Failed_to_get_startup_folder_path.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403770
mov esp, ebp
pop ebp
ret