Function at 0x415be0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e87a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1b8], eax
test eax, eax
je 0x4160e5
lea ecx, [ebp - 0x19c]
call fcn.0041b700
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov byte [ebp - 4], 1
cmp edi, esi
jae 0x415d7d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415cb3
test al, 0x10
je 0x415cb3
mov esi, dword [ebp - 0x1ac]
cmp dword [ebp - 0x1a8], esi
je 0x415ca1
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00406000
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebp - 0x1ac], 4
jmp 0x415d6b
push edi
push esi
lea ecx, [ebp - 0x1b0]
call fcn.004149a0
jmp 0x415d6b
call fcn.00406320
mov ecx, eax
test ecx, ecx
je 0x416101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0041a9a0
add esp, 8
test eax, eax
je 0x415d3f
push 4
push 0
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x415d49
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x94]
call fcn.00414c40
push dword [eax]
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 3
push str.del__q___s___r_n
push eax
call fcn.0041b830
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
add esp, 0xc
cmp eax, ecx
je 0x415d49
push eax
call fcn.0049a668
jmp 0x415d46
push dword [edi]
call fcn.0041b3b0
add esp, 4
mov edx, dword [ebp - 0x1a0]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebx + 4]
add edi, 4
cmp edi, esi
jb 0x415c63
mov edi, dword [ebx]
cmp edi, esi
je 0x415da3
nop
mov edx, dword [edi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415d9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, esi
jne 0x415d80
mov edi, dword [ebx]
mov esi, dword [ebp - 0x1b0]
mov dword [ebx + 4], edi
cmp esi, dword [ebp - 0x1ac]
jae 0x415f93
push dword [esi]
call fcn.0041b070
add esp, 4
test eax, eax
jne 0x415f84
call fcn.00406320
mov ecx, eax
test ecx, ecx
je 0x416101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.0041a9a0
add esp, 8
test eax, eax
je 0x415f58
push 4
push 0
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x415f62
mov ebx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x94], eax
test ebx, ebx
jne 0x415e44
xor eax, eax
mov dword [ebp - 0x94], eax
jmp 0x415f27
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415e50
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00414900
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x94]
mov edi, dword [ebp - 0x1a4]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x415f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415f19
mov ebx, dword [ebp - 0x1b4]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0x90]
push 0x80
push eax
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.00414900
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x94]
push dword [ebp - 0x1a4]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x41610b
mov eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 5
push str.rd__s__q___s___r_n
push eax
call fcn.0041b830
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
add esp, 0xc
cmp eax, ecx
je 0x415f62
push eax
call fcn.0049a668
jmp 0x415f5f
push dword [esi]
call fcn.0041b3b0
add esp, 4
mov edx, dword [ebp - 0x1a0]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415f84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x1ac]
jb 0x415db8
call fcn.00406320
mov ecx, eax
test ecx, ecx
je 0x416101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1a4], eax
mov edi, dword [ebp - 0x1b8]
mov byte [ebp - 4], 6
movzx eax, word [edi]
push eax
lea eax, [ebp - 0x1a4]
push str._c:.temp
push eax
call fcn.00408820
mov esi, dword [ebp - 0x1a4]
add esp, 0xc
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x416026
push esi
lea ecx, [ebp - 0x94]
call fcn.00414c40
push dword [eax]
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 7
push str.rd__q___s___r_n
push eax
call fcn.0041b830
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
add esp, 0xc
cmp eax, ecx
je 0x416026
push eax
call fcn.0049a668
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416049
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1b0]
mov byte [ebp - 4], 0
test esi, esi
je 0x4160d5
mov edi, dword [ebp - 0x1ac]
cmp esi, edi
je 0x416088
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41607b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x416061
mov esi, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x1a8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4160ad
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41612a
push ecx
push esi
call fcn.0042747a
add esp, 8
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
lea ecx, [ebp - 0x19c]
call fcn.0041b710
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042788a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
push 0x80
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x94]
call fcn.00414980
add esp, 0xc
call fcn.00414eb0
call fcn.0047b0d8
int3