Function at 0x4c6f50
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push esi
push edi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], 1
test esi, esi
jne 0x4c6fa2
test byte [0x652fc0], 1
je 0x4c6f9b
push str.tsPath_must_not_be_empty
push 1
push str.ForceDeleteFiles
call fcn.004cb410
add esp, 0xc
xor edi, edi
jmp 0x4c720b
push 1
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x2f
push eax
lea ecx, [ebp + 8]
call fcn.0040a630
push 1
cmp eax, 0xffffffff
lea ecx, [ebp + 8]
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
je 0x4c6fe5
mov dword [ebp - 0x28], 0x2f
call fcn.00477770
mov ecx, eax
lea eax, [esi - 1]
cmp ecx, eax
je 0x4c7007
push 0x524e04
jmp 0x4c6fff
mov dword [ebp - 0x28], 0x5c
call fcn.00477770
mov ecx, eax
lea eax, [esi - 1]
cmp ecx, eax
je 0x4c7007
push 0x50f8e4
lea ecx, [ebp + 8]
call fcn.00417a50
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004c5d40
add esp, 0xc
test byte [0x652fc0], 4
mov byte [ebp - 4], 2
je 0x4c7048
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push str.Remove_file_s___s
push 3
push str.ForceDeleteFiles
call fcn.004cb410
add esp, 0x10
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x290]
push ebx
lea eax, [ebp - 0x24]
mov edi, 1
cmovae eax, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c71e5
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00414540
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24]
cmp eax, esi
je 0x4c70ff
cmp dword [ebp - 0x10], 8
jb 0x4c70a3
push dword [ebp - 0x24]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp dword [esi + 0x14], 8
jae 0x4c70d5
mov eax, dword [esi + 0x10]
inc eax
je 0x4c70e0
add eax, eax
push eax
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.004cfd30
add esp, 0xc
jmp 0x4c70e0
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x2c], 8
jb 0x4c7110
push dword [ebp - 0x40]
call fcn.004cf489
add esp, 4
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4c71c8
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x80
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.004d7d64
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.004d6985
add esp, 0xc
test eax, eax
je 0x4c71c8
mov eax, dword [0x652fc0]
test al, 2
je 0x4c7186
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push str.Fail_to_remove_file__s_n
push 2
push str.ForceDeleteFiles
call fcn.004cb410
mov eax, dword [0x652fc0]
add esp, 0x10
cmp dword [ebp + 0x38], 0
je 0x4c71c6
test al, 2
je 0x4c71b0
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push str.Mark_to_remove_file__s_in_next_reboot_n
push 2
push str.ForceDeleteFiles
call fcn.004cb410
add esp, 0x10
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 4
cmovae eax, dword [ebp - 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c7072
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x10], 8
pop ebx
jb 0x4c71f7
push dword [ebp - 0x24]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp dword [ebp + 0x1c], 8
jb 0x4c721c
push dword [ebp + 8]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4c7241
push dword [ebp + 0x20]
call fcn.004cf489
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret