Function at 0x40e880
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xa30], eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1e0], 0
mov dword [esi + 0x1e4], 0
test edi, edi
je 0x40e8cf
cmp word [edi], 0
jne 0x40e8d4
mov edi, str.FastCopy2.ini
test edi, edi
je 0x40e8e0
cmp edi, dword [esi + 0x2d8]
je 0x40e91b
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x40e8fd
push eax
call fcn.0047d4ed
add esp, 4
mov dword [esi + 0x2d8], 0
mov dword [esi + 0x2dc], 0xffffffff
test edi, edi
je 0x40e91b
or edx, 0xffffffff
mov ecx, edi
call fcn.00412220
mov dword [esi + 0x2d8], eax
cmp dword [0x4d3d8c], 6
mov edi, 0x4c2758
jb 0x40ea97
call fcn.0045bfb0
mov ecx, eax
call fcn.0045ad90
test eax, eax
je 0x40ea97
test ebx, ebx
je 0x40e967
push ebx
call fcn.004889e7
mov dword [esi + 0x1e0], eax
add esp, 4
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x40ea6e
jmp 0x40ea5f
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00481280
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00481280
add esp, 0x18
mov dword [ebp - 0xa30], 0
lea eax, [ebp - 0x61c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x104
call fcn.0045bfb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x40e9ec
push 0x7fffffff
push eax
xor edx, edx
lea ecx, [ebp - 0x61c]
call fcn.0045c480
add esp, 8
lea eax, [ebp - 0x61c]
push eax
call fcn.004889e7
push 0x208
mov dword [esi + 0x1e0], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00481280
add esp, 0x10
call fcn.0045bfb0
lea edx, [ebp - 0x414]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40ea21
lea edx, [ebp - 0xa2c]
lea ecx, [ebp - 0x414]
call fcn.0045af30
test eax, eax
jne 0x40ea59
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0xa2c]
push eax
call fcn.004889e7
mov dword [esi + 0x1e4], eax
add esp, 4
mov eax, dword [esi + 0x2d8]
mov ecx, edi
test eax, eax
cmovne ecx, eax
push ecx
push dword [esi + 0x1e4]
call fcn.0045bfb0
mov edx, dword [esi + 0x1e0]
mov ecx, eax
call fcn.0040e450
add esp, 8
mov edx, dword [esi + 0x1e0]
test edx, edx
jne 0x40eab7
call fcn.0045bfb0
push eax
call fcn.004889e7
add esp, 4
mov dword [esi + 0x1e0], eax
mov edx, eax
mov eax, dword [esi + 0x2d8]
lea ecx, [ebp - 0x20c]
test eax, eax
push 0x7fffffff
cmovne edi, eax
push edi
call fcn.0045c480
add esp, 8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0045da80
push 0x4aecf0
mov ecx, esi
call fcn.0045e120
push 0xffffffffffffffff
push 0x4aecf8
mov ecx, esi
call fcn.0045e420
cmp eax, 2
jge 0x40eba2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eba2
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x40eb20
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40eb41
mov eax, dword [str..bak]
mov dword [ecx], eax
mov eax, dword [0x4aed08]
mov dword [ecx + 4], eax
mov ax, word [0x4aed0c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x414]
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40eb8d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0045d900
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0045da80
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0xc