Function at 0x407ec0
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5668
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2a8]
push 0x50ef50
push eax
call fcn.0040c3c0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2a8]
cmp dword [ebp - 0x294], 8
cmovae eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0x10
jne 0x407faa
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
push 0x50ef60
cmovae eax, dword [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x230]
push str._s_s
push eax
call fcn.0040c3c0
add esp, 0x10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x407faa
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404840
lea ecx, [ebp - 0x230]
call fcn.00410140
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x407fc1
mov eax, dword [eax]
push 0x50ef60
push eax
lea eax, [ebp - 0x290]
push str._s_s
push eax
call fcn.0040c3c0
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x407ffd
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004102d0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x408031
mov eax, dword [eax]
push 0x50ef74
push eax
lea eax, [ebp - 0x278]
push str._s_s
push eax
call fcn.0040c3c0
add esp, 0x10
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40806d
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x2ac], 7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.004102d0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4080a1
mov eax, dword [eax]
push 0x50ef94
push eax
lea eax, [ebp - 0x260]
push str._s_s
push eax
call fcn.0040c3c0
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4080dd
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004102d0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x408111
mov eax, dword [eax]
push 0x50efb0
push eax
lea eax, [ebp - 0x248]
push str._s_s
push eax
call fcn.0040c3c0
mov eax, dword [ebp - 0x2ac]
add esp, 0x10
cmp eax, 8
jb 0x408149
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.00404840
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
call esi
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call esi
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call esi
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4081c7
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x408202
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x40823d
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x408278
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.00404840
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4082b3
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.00404840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret