Function at 0x40e760
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 [0x4db06c]
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 + 0x200], 0
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 0
test edi, edi
je 0x40e7af
cmp word [edi], 0
jne 0x40e7b4
mov edi, str.FastCopy2.ini
mov dword [esi + 0x2f4], 0xffffffff
test edi, edi
je 0x40e7ca
cmp edi, dword [esi + 0x2f0]
je 0x40e805
mov eax, dword [esi + 0x2f0]
test eax, eax
je 0x40e7e7
push eax
call fcn.00487954
add esp, 4
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0xffffffff
test edi, edi
je 0x40e805
or edx, 0xffffffff
mov ecx, edi
call fcn.00412580
mov dword [esi + 0x2f0], eax
cmp dword [0x4e042c], 6
mov edi, 0x4c1430
jb 0x40e986
call fcn.00461c00
mov ecx, eax
call fcn.00460720
test eax, eax
je 0x40e986
test ebx, ebx
je 0x40e851
push ebx
call fcn.004930e7
mov dword [esi + 0x1f8], eax
add esp, 4
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x40e95d
jmp 0x40e94e
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0048b570
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0048b570
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.00461c00
push eax
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x40e8d6
push SysReAllocString
push eax
xor edx, edx
lea ecx, [ebp - 0x61c]
call fcn.00462880
add esp, 8
lea eax, [ebp - 0x61c]
push eax
call fcn.004930e7
push 0x208
mov dword [esi + 0x1f8], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0048b570
add esp, 0x10
call fcn.00461c00
lea edx, [ebp - 0x414]
sub edx, eax
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40e910
lea edx, [ebp - 0xa2c]
lea ecx, [ebp - 0x414]
call fcn.004608c0
test eax, eax
jne 0x40e948
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487555
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0xa2c]
push eax
call fcn.004930e7
mov dword [esi + 0x1fc], eax
add esp, 4
mov eax, dword [esi + 0x2f0]
mov ecx, edi
test eax, eax
cmovne ecx, eax
push ecx
push dword [esi + 0x1fc]
call fcn.00461c00
mov edx, dword [esi + 0x1f8]
mov ecx, eax
call fcn.0040e3c0
add esp, 8
mov edx, dword [esi + 0x1f8]
test edx, edx
jne 0x40e9a6
call fcn.00461c00
push eax
call fcn.004930e7
add esp, 4
mov dword [esi + 0x1f8], eax
mov edx, eax
mov eax, dword [esi + 0x2f0]
lea ecx, [ebp - 0x20c]
test eax, eax
push SysReAllocString
cmovne edi, eax
push edi
call fcn.00462880
add esp, 8
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00463f70
push str.main
mov ecx, esi
call fcn.00464670
push 0xffffffffffffffff
push str.ini_version
mov ecx, esi
call fcn.00464990
cmp eax, 2
jge 0x40ea92
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ea92
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x40ea10
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40ea31
mov eax, dword [str..bak]
mov dword [ecx], eax
mov eax, dword [0x4c0d3c]
mov dword [ecx + 4], eax
mov ax, word [0x4c0d40]
mov word [ecx + 8], ax
lea eax, [ebp - 0x414]
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL30.dll_MoveFileExW]
test eax, eax
jne 0x40ea7d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL30.dll_DeleteFileW]
mov ecx, esi
call fcn.00463e70
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00463f70
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487555
mov esp, ebp
pop ebp
ret 0xc