Function at 0x405200
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0xf14
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push 0x104
push eax
push esi
mov dword [esp + 0x1c], esi
xor ebp, ebp
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea ecx, [esp + 0x1c]
push 0x23
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40527d
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.0040b0c0
inc eax
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.0040b040
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
test eax, eax
jne 0x4054d5
push 0x45
lea edx, [esp + 0x1c]
push 0x41619c
push edx
call fcn.004012e0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.00404ff0
mov edi, 1
add esp, 0x14
cmp eax, edi
je 0x4052dc
mov dword [esp + 0x14], edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00405030
mov ecx, dword [0x41a28c]
add esp, 8
cmp ecx, edi
jne 0x405308
call fcn.00405200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf14
ret
cmp eax, esi
jle 0x405314
mov eax, dword [esp + 0x10]
mov ebp, edi
jmp 0x40531c
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x405330
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x405389
lea edx, [esp + 0x220]
push eax
push edx
call esi
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x220]
mov byte [esp + eax + 0x220], 0x5f
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x405389
push eax
lea eax, [esp + 0x1c]
push eax
call esi
cmp byte [esp + 0x18], 0x22
jne 0x4053c5
lea ecx, [esp + 0x19]
lea edx, [esp + 0x324]
push ecx
push edx
call esi
lea eax, [esp + 0x324]
push 0x22
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrA]
test eax, eax
je 0x4053b6
mov byte [eax], 0
lea ecx, [esp + 0x324]
lea edx, [esp + 0x18]
push ecx
push edx
call esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4054c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
push edx
call fcn.0040b00c
add esp, 4
call fcn.0040b016
cdq
mov ecx, 0x36
idiv ecx
mov edi, edx
add edi, 5
test ebp, ebp
jne 0x405480
xor esi, esi
lea edx, [esp + 0x18]
push edx
push edi
push esi
call fcn.00404e90
add esp, 0xc
inc esi
cmp esi, 0x18
jl 0x405420
call fcn.0040b016
cdq
mov ecx, 0x36
idiv ecx
lea eax, [esp + 0x724]
mov edi, edx
lea edx, [esp + 0x18]
push edx
push 0x41644c
push eax
add edi, 5
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
lea ecx, [esp + 0x724]
push ecx
push edi
push esi
call fcn.00404e90
add esp, 0xc
inc esi
cmp esi, 0x18
jl 0x405464
push 0x45
jmp 0x405482
push 0x41
push 2
call fcn.00405620
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4054aa
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0040b0c0
inc eax
push eax
call fcn.00404dc0
add esp, 0xc
push 5
push 0
lea eax, [esp + 0x20]
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4054d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x67c280
call fcn.00405620
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xb24]
push ecx
push str._s.d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xb24]
push eax
call ebx
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x11c]
mov byte [esp + eax + 0x11c], 0x5f
push edx
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf14
ret