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

Disassembly:
push 0x2c
mov eax, 0x4659fe
call fcn.004508e5
xor esi, esi
inc esi
cmp byte [0x4b24e1], 0
mov dword [ebp - 0x1c], esi
jne 0x4108a6
call fcn.00410802
mov eax, dword [ebp + 8]
cmp eax, dword [0x4b24d4]
jle 0x4108b8
mov eax, esi
jmp 0x410d4a
mov eax, dword [0x4b2bf4]
cmp eax, dword [0x46da14]
jne 0x410b02
call fcn.0043ce9a
push eax
lea ecx, [ebp + 8]
call fcn.00413a25
mov esi, 0x104
xor edi, edi
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0040163a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4109e1
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00409da3
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x18]
call fcn.00413a25
push 0x4b26c8
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.00406b64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x34]
call fcn.00401229
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x18]
mov esi, 0x3021
push esi
mov edi, 0x4b2bf0
push ebx
mov ecx, edi
call fcn.00448aa0
test eax, eax
jne 0x410a02
push 0x478eac
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406977
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.00448aa0
test eax, eax
jne 0x4109f3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017ba
xor eax, eax
jmp 0x410d4a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, edi
call fcn.00448d8f
test edx, edx
ja 0x410a15
test eax, eax
jbe 0x410ad7
mov dword [ebp - 0x20], 1
test edx, edx
ja 0x410a27
cmp eax, 0x100000
jb 0x410a96
mov ecx, edi
call fcn.00448e56
push 0x4b26cc
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 0x410a70
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
mov ecx, edi
call fcn.00448aa0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test eax, eax
je 0x4109c2
call fcn.004017ba
cmp dword [ebp - 0x20], 0
je 0x410ad7
push 2
push 0
mov byte [ebp - 4], 6
mov eax, dword [0x4b2bf0]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov esi, 0x478edc
push esi
mov ecx, edi
call fcn.00448c97
push esi
mov ecx, edi
call fcn.00448c97
push esi
mov ecx, edi
call fcn.00448c97
jmp 0x410ad7
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.004017ba
lea ecx, [ebx - 0x10]
call fcn.004017ba
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017ba
jmp 0x410b07
mov edi, 0x4b2bf0
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x14]
call fcn.00413a25
lea esi, [ebp - 0x14]
mov dword [ebp - 4], 8
call fcn.00410e89
call fcn.0043ce9a
push eax
lea ecx, [ebp + 8]
call fcn.00413a25
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x410b50
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x410c1e
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.00406b64
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
push 0x478ee0
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.00406946
cmp eax, 0xffffffff
je 0x410be6
add eax, 0x10
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00407f97
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00406b64
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
push str.hidden
mov ecx, esi
call fcn.00406a25
mov byte [ebp - 4], 0xd
push dword [ebp + 8]
mov ecx, edi
call fcn.00448c97
push 0x478edc
mov ecx, edi
call fcn.00448c97
mov dword [ebp - 4], 9
jmp 0x410c1e
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x410d1c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00406b64
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
jne 0x410c46
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x410c53
push 0x478f1c
lea ecx, [ebp + 8]
call fcn.00406a25
cmp dword [ebp + 0x14], 0x186a0
jne 0x410cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x410c71
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.00406977
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.0040f9a4
mov ecx, dword [ebp - 0x18]
add esp, 0x10
jmp 0x410ceb
push str.Error_Code:__1_d__n
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00406977
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.0040f9a4
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov byte [ebp - 4], 0x11
push dword [ebp + 8]
mov ecx, edi
call fcn.00448c97
mov dword [ebp - 4], 9
jmp 0x410d1c
mov ecx, edi
mov byte [ebp - 4], 0x13
call fcn.00448e2b
cmp dword [ebp + 0x14], 0
je 0x410d31
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, dword [ebp - 0x1c]
call fcn.0045098a
ret