Function at 0x40e15a
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push 0x2c
mov eax, 0x4524e2
call fcn.0043bf3d
xor esi, esi
inc esi
cmp byte [0x48a3a0], 0
mov dword [ebp - 0x1c], esi
jne 0x40e17a
call fcn.0040e0d6
mov eax, dword [ebp + 8]
cmp eax, dword [0x48a394]
jle 0x40e18c
mov eax, esi
jmp 0x40e5da
mov eax, dword [0x48aad0]
cmp eax, dword [0x457974]
jne 0x40e3d6
call fcn.00428b72
push eax
lea ecx, [ebp + 8]
call fcn.0040fd20
mov esi, 0x104
xor edi, edi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00402467
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e2b5
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408a36
call fcn.00428b72
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fd20
push 0x48a44c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00401e40
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00408b20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x34]
call fcn.00402056
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x18]
mov edi, 0x3021
push edi
mov esi, 0x48aacc
push ebx
mov ecx, esi
call fcn.0043466d
test eax, eax
jne 0x40e2d6
push 0x4605bc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040885d
add esp, 0xc
push 0x80
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0043466d
test eax, eax
jne 0x40e2c7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004025dc
lea ecx, [ebx - 0x10]
call fcn.004025dc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025dc
xor eax, eax
jmp 0x40e5da
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, esi
call fcn.0043495c
test edx, edx
ja 0x40e2e9
test eax, eax
jbe 0x40e3ab
mov dword [ebp - 0x20], 1
test edx, edx
ja 0x40e2fb
cmp eax, 0x100000
jb 0x40e36a
mov ecx, esi
call fcn.00434a23
push 0x48a450
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401e40
add esp, 0xc
push 0x80
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e344
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x34]
push eax
push edi
push ebx
mov ecx, esi
call fcn.0043466d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
je 0x40e296
call fcn.004025dc
cmp dword [ebp - 0x20], 0
je 0x40e3ab
push 2
push 0
mov byte [ebp - 4], 6
mov eax, dword [0x48aacc]
push 0
mov ecx, esi
call dword [eax + 0x28]
mov edi, 0x4605ec
push edi
mov ecx, esi
call fcn.00434864
push edi
mov ecx, esi
call fcn.00434864
push edi
mov ecx, esi
call fcn.00434864
jmp 0x40e3ab
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004025dc
lea ecx, [ebx - 0x10]
call fcn.004025dc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x40e3db
mov esi, 0x48aacc
call fcn.00428b72
push eax
lea ecx, [ebp - 0x14]
call fcn.0040fd20
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 8
call fcn.0040e6e3
pop ecx
call fcn.00428b72
push eax
lea ecx, [ebp + 8]
call fcn.0040fd20
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x40e426
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40e4a8
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401e40
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401e40
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.00408b20
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025dc
mov byte [ebp - 4], 0xc
push dword [ebp + 8]
mov ecx, esi
call fcn.00434864
push 0x4605ec
mov ecx, esi
call fcn.00434864
mov dword [ebp - 4], 9
jmp 0x40e4a8
cmp dword [ebp + 0x14], ebx
je 0x40e5a4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00408b20
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40e4ce
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40e4db
push 0x4605f0
lea ecx, [ebp + 8]
call fcn.0040893e
cmp dword [ebp + 0x14], 0x186a0
jne 0x40e543
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x40e4f7
mov dword [ebp - 0x1c], 1
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x400
push edi
push ebx
push 0x1100
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x4605f8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040885d
add esp, 0xc
mov byte [ebp - 4], 0xe
push dword [ebp - 0x20]
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040d0d4
mov ecx, dword [ebp - 0x18]
add esp, 0x10
jmp 0x40e571
push str.Error_Code:__1_d__n
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040885d
add esp, 0xc
push dword [ebp + 0x14]
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040d0d4
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov byte [ebp - 4], 0x10
push dword [ebp + 8]
mov ecx, esi
call fcn.00434864
mov dword [ebp - 4], 9
jmp 0x40e5a4
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.004349f8
jmp 0x40e5b9
cmp dword [ebp + 0x14], ebx
je 0x40e5c1
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [ebp - 0x1c]
call fcn.0043bfe2
ret