Function at 0x610184b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xa8c
mov eax, 0x6103e587
call fcn.6102ab31
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa88]
mov byte [ebp - 0xa81], 1
call fcn.6100d224
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa90]
call fcn.6100d224
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d224
mov byte [ebp - 4], 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xa8c], eax
jne 0x61018540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d179
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa90]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.6100d179
xor al, al
call fcn.6102abc3
ret 4
test al, 0x10
jne 0x61018577
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d179
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa90]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.6100d179
mov al, bl
jmp 0x61018538
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa90]
push eax
push esi
call fcn.61017dbb
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
je 0x610185d3
mov eax, dword [ebp - 0xa90]
cmp dword [eax - 0xc], ebx
je 0x610185d3
lea ecx, [ebp - 0x420]
push ecx
push ebx
push 0x61003e70
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x610185d3
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x420]
push ecx
push eax
call edi
test eax, eax
je 0x610185d3
lea eax, [ebp - 0x420]
push eax
jmp 0x610185d5
push dword [esi]
lea ecx, [ebp - 0xa88]
call fcn.6100d7a2
test word [ebp - 0xa8c], 0x400
je 0x6101862a
push ebx
push 0x6200000
push 3
push ebx
push 7
push 0x10000
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x6101861a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x61018546
push 4
push ebx
push dword [ebp - 0xa88]
call edi
jmp 0x61018544
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.6100cec8
test eax, eax
jl 0x61018544
push ebx
push esi
push 0x61003eac
lea eax, [ebp - 0x830]
push eax
call fcn.6103b4ec
test eax, eax
je 0x61018544
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x830]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xa8c], eax
je 0x610187d8
cmp esi, 1
jne 0x610187d8
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.6100cec8
test eax, eax
jl 0x6101874a
push ebx
push esi
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.6103b4ec
test eax, eax
je 0x6101874a
test byte [ebp - 0xa80], 0x10
je 0x61018764
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x61003928
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x6101874a
push 0x61003ea4
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x6101874a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa98]
call fcn.6100d970
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa98]
push eax
call fcn.610184b0
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa98]
call fcn.6100d179
test bl, bl
je 0x61018748
mov byte [ebp - 0xa81], 0
xor ebx, ebx
lea eax, [ebp - 0xa80]
push eax
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x6101868b
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6101874a
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x61003e70
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x610187c0
push 1
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x628]
jne 0x610187c6
lea eax, [ebp - 0x218]
push 4
push ebx
push eax
call edi
mov byte [ebp - 0xa81], 0
jmp 0x6101874a
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x61018816
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x61018816
push 4
push ebx
push dword [ebp - 0xa88]
call edi
mov byte [ebp - 0xa81], 0
mov bl, byte [ebp - 0xa81]
jmp 0x61018546