Function at 0x415ae3
Capabilities:
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push 0x6c0
mov eax, 0x4a9c78
call fcn.0045edc9
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x658]
mov edx, edi
mov dword [ebp - 0x6c8], ebx
call fcn.004154dd
xor eax, eax
push eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x6c4], eax
mov dword [ebp - 0x6c0], eax
call fcn.004163a4
mov dword [ebp - 0x6c4], eax
push 0x4c6f18
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.004066b2
add esp, 0xc
push 3
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040a2c4
lea edx, [ebp - 0x6c4]
mov ecx, eax
call 0x4159cd
pop ecx
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 1
call fcn.0040a301
lea eax, [ebp - 0x6bc]
push eax
lea ecx, [ebp - 0x6c4]
call fcn.004161a4
lea eax, [ebp - 0x6cc]
push eax
lea ecx, [ebp - 0x6c4]
call fcn.0041615c
mov ecx, dword [ebp - 0x6bc]
cmp ecx, dword [eax]
je 0x415df2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4c6f34
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.004066b2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6bc]
add ecx, 0x34
push ecx
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0040675d
add esp, 0x18
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 5
call fcn.0040a301
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004628a0
add esp, 0xc
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x640]
push 0x104
push eax
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, 0x102
ja 0x415c3b
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040f04a
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x640]
test byte [eax + 8], 0x10
je 0x415c73
call fcn.0040a2c4
mov ecx, eax
call fcn.00415ae3
test al, al
jne 0x415db5
lea ecx, [ebp - 0x640]
call fcn.0040a301
xor bl, bl
jmp 0x415dfe
call fcn.0040a2c4
push eax
call esi
test eax, eax
jne 0x415db5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415db5
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004628a0
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x415cdc
cmp eax, 0x104
jae 0x415cdc
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x6b8]
call fcn.004097aa
or ebx, 1
jmp 0x415cf1
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x6a0]
call fcn.0040479a
or ebx, 2
push eax
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x6c8], ebx
call fcn.004090ea
test bl, 2
je 0x415d1c
and ebx, 0xfffffffd
lea ecx, [ebp - 0x6a0]
mov dword [ebp - 0x6c8], ebx
call fcn.0040a301
mov dword [ebp - 4], 5
test bl, 1
je 0x415d3c
and ebx, 0xfffffffe
lea ecx, [ebp - 0x6b8]
mov dword [ebp - 0x6c8], ebx
call fcn.0040a301
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004628a0
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x218]
add esp, 0xc
add eax, 0x34
push ecx
push 0
push eax
lea ecx, [ebp - 0x670]
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x670]
call fcn.0040a301
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 1
call fcn.0040a301
mov eax, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6c4]
mov eax, dword [eax]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x6cc]
push eax
call fcn.0041615c
mov ecx, dword [ebp - 0x6bc]
cmp ecx, dword [eax]
jne 0x415ba8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov byte [ebp - 4], 7
mov edi, 0x258
mov eax, dword [ebp - 0x6c4]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x6c4]
mov dword [eax + 4], eax
and dword [ebp - 0x6c0], 0
mov eax, dword [ebp - 0x6c4]
cmp ecx, eax
je 0x415e45
mov esi, dword [ecx]
push edi
push 1
push ecx
call fcn.0040a390
mov eax, dword [ebp - 0x6c4]
add esp, 0xc
mov ecx, esi
cmp esi, eax
jne 0x415e2b
push edi
push 1
push eax
mov byte [ebp - 4], 8
call fcn.0040a390
add esp, 0xc
lea ecx, [ebp - 0x658]
call fcn.0040a301
mov al, bl
call fcn.0045ed73
ret