Function at 0x440d28
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x440d31
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x44107c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
xor eax, eax
push ebp
push 0x441037
push dword fs:[eax]
mov dword fs:[eax], esp
test cl, cl
je 0x440dda
mov eax, dword [ebp - 0x1c]
call fcn.0040557c
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0x1c]
call fcn.0040999c
test al, al
jne 0x440dda
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0040557c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040557c
mov ebx, eax
push ebx
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x440dda
mov edx, ebx
lea eax, [ebp - 0x128]
call fcn.004052c8
mov eax, dword [ebp - 0x128]
call fcn.0040557c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x440dda
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x441041
mov eax, dword [0x49076c]
cmp dword [eax], 2
jne 0x440e02
push 5
mov eax, dword [ebp - 0x1c]
call fcn.0040557c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040557c
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x44102d
mov dl, 1
mov eax, dword [0x4168b4]
call fcn.004041bc
mov dword [ebp - 0x24], eax
push 0xff
lea eax, [ebp - 0x124]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
xor eax, eax
push ebp
push 0x440ec5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 8]
call fcn.0040deb4
lea eax, [ebp - 0x130]
mov ecx, 0x441098
mov edx, dword [ebp - 8]
call fcn.00405404
mov eax, dword [ebp - 0x130]
call fcn.0040999c
test al, al
je 0x440ebb
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0xc]
call fcn.0040deb4
lea eax, [ebp - 0x138]
mov ecx, 0x441098
mov edx, dword [ebp - 0xc]
call fcn.00405404
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x440ed7
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00408f24
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0x4410ac
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x440f21
mov edx, 0x4410ac
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.0040999c
test al, al
jne 0x440f95
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.00409d6c
mov eax, dword [ebp - 4]
call fcn.004099e4
test al, al
jne 0x440f4c
mov eax, dword [ebp - 4]
call fcn.00409a08
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.00409f68
mov ebx, dword [ebp - 0x144]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x148], ebx
mov eax, dword [ebp - 0x148]
call fcn.0040deb4
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x1c]
call fcn.00409eac
mov ecx, dword [ebp - 0x14c]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00405404
jmp 0x440fa0
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.00409f68
cmp dword [ebp - 4], 0
je 0x440fe0
push dword [ebp - 4]
push 0x4410c0
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 0x18]
call fcn.00409f68
push dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00405480
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00405340
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x14]
call fcn.0040deb4
lea eax, [ebp - 0x15c]
mov ecx, 0x441098
mov edx, dword [ebp - 0x14]
call fcn.00405404
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x24]
call fcn.004041ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x441041
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441083
lea eax, [ebp - 0x15c]
mov edx, 5
call fcn.004050f4
lea eax, [ebp - 0x144]
mov edx, 8
call fcn.004050f4
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004050f4
ret