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

Disassembly:
push 0x2c
mov eax, 0x45ec51
call fcn.00449ef5
xor esi, esi
inc esi
cmp byte [0x4a6428], 0
mov dword [ebp - 0x1c], esi
jne 0x40f841
call fcn.0040f79d
mov eax, dword [ebp + 8]
cmp eax, dword [0x4a641c]
jle 0x40f853
mov eax, esi
jmp 0x40fce7
mov eax, dword [0x4a6af4]
cmp eax, dword [0x4669b4]
jne 0x40fa9d
call fcn.004366fe
push eax
lea ecx, [ebp + 8]
call fcn.00411d53
mov esi, 0x104
xor edi, edi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0040166e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40f97c
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0040946d
call fcn.004366fe
push eax
lea ecx, [ebp - 0x18]
call fcn.00411d53
push 0x4a65fc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00401025
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004063a1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x34]
call fcn.0040123e
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x18]
mov esi, 0x3021
push esi
mov edi, 0x4a6af0
push ebx
mov ecx, edi
call fcn.0044225b
test eax, eax
jne 0x40f99d
push 0x4712f4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004061c9
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 esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0044225b
test eax, eax
jne 0x40f98e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x40fce7
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, edi
call fcn.0044254a
test edx, edx
ja 0x40f9b0
test eax, eax
jbe 0x40fa72
mov dword [ebp - 0x20], 1
test edx, edx
ja 0x40f9c2
cmp eax, 0x100000
jb 0x40fa31
mov ecx, edi
call fcn.00442611
push 0x4a6600
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401025
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 0x40fa0b
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
mov ecx, edi
call fcn.0044225b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
je 0x40f95d
call fcn.004017c4
cmp dword [ebp - 0x20], 0
je 0x40fa72
push 2
push 0
mov byte [ebp - 4], 6
mov eax, dword [0x4a6af0]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov esi, 0x471324
push esi
mov ecx, edi
call fcn.00442452
push esi
mov ecx, edi
call fcn.00442452
push esi
mov ecx, edi
call fcn.00442452
jmp 0x40fa72
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004017c4
lea ecx, [ebx - 0x10]
call fcn.004017c4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017c4
jmp 0x40faa2
mov edi, 0x4a6af0
call fcn.004366fe
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d53
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 8
call fcn.0040fdc2
pop ecx
call fcn.004366fe
push eax
lea ecx, [ebp + 8]
call fcn.00411d53
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40faed
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x40fbbb
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401025
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401025
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.004063a1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
push 0x471328
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.00406198
cmp eax, 0xffffffff
je 0x40fb83
add eax, 0x10
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00407796
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004063a1
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
push str.hidden
mov ecx, esi
call fcn.00406262
mov byte [ebp - 4], 0xd
push dword [ebp + 8]
mov ecx, edi
call fcn.00442452
push 0x471324
mov ecx, edi
call fcn.00442452
mov dword [ebp - 4], 9
jmp 0x40fbbb
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x40fcb9
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004063a1
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x40fbe3
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x40fbf0
push 0x471364
lea ecx, [ebp + 8]
call fcn.00406262
cmp dword [ebp + 0x14], 0x186a0
jne 0x40fc5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x40fc0e
mov dword [ebp - 0x1c], 1
push eax
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x400
push esi
push eax
push 0x1100
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push str.GetLastError__:__1_d_____2_s_
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004061c9
add esp, 0xc
mov byte [ebp - 4], 0xf
push dword [ebp - 0x20]
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040e9cd
mov ecx, dword [ebp - 0x18]
add esp, 0x10
jmp 0x40fc88
push str.Error_Code:__1_d__n
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004061c9
add esp, 0xc
push dword [ebp + 0x14]
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040e9cd
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 0x11
push dword [ebp + 8]
mov ecx, edi
call fcn.00442452
mov dword [ebp - 4], 9
jmp 0x40fcb9
mov ecx, edi
mov byte [ebp - 4], 0x13
call fcn.004425e6
cmp dword [ebp + 0x14], 0
je 0x40fcce
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [ebp - 0x1c]
call fcn.00449f9a
ret