Function at 0x6101899e
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, 0x6103ef97
call fcn.6102b349
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa88]
mov byte [ebp - 0xa81], 1
call fcn.6100d83e
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa90]
call fcn.6100d83e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d83e
mov byte [ebp - 4], 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xa8c], eax
cmp eax, 0xffffffff
jne 0x61018a2e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa90]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.6100d793
xor al, al
call fcn.6102b3db
ret 4
test al, 0x10
jne 0x61018a65
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.6100d793
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa90]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.6100d793
mov al, bl
jmp 0x61018a26
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa90]
push eax
push esi
call fcn.610182a8
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
je 0x61018ac1
mov eax, dword [ebp - 0xa90]
cmp dword [eax - 0xc], ebx
je 0x61018ac1
lea ecx, [ebp - 0x420]
push ecx
push ebx
push 0x61003f74
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x61018ac1
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x420]
push ecx
push eax
call edi
test eax, eax
je 0x61018ac1
lea eax, [ebp - 0x420]
push eax
jmp 0x61018ac3
push dword [esi]
lea ecx, [ebp - 0xa88]
call fcn.6100de0c
test dword [ebp - 0xa8c], 0x400
je 0x61018b19
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 0x61018b09
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x61018a34
push 4
push ebx
push dword [ebp - 0xa88]
call edi
jmp 0x61018a32
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.6100d41c
test eax, eax
jl 0x61018a32
push ebx
push esi
push 0x61003fb0
lea eax, [ebp - 0x830]
push eax
call fcn.6103c186
test eax, eax
je 0x61018a32
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x830]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa8c], eax
cmp eax, 0xffffffff
je 0x61018cc7
cmp esi, 1
jne 0x61018cc7
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.6100d41c
test eax, eax
jl 0x61018c39
push ebx
push esi
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.6103c186
test eax, eax
je 0x61018c39
test byte [ebp - 0xa80], 0x10
je 0x61018c53
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x61003924
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x61018c39
push 0x61003fa8
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x61018c39
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa98]
call fcn.6100dfda
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa98]
push eax
call fcn.6101899e
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa98]
call fcn.6100d793
test bl, bl
je 0x61018c37
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 0x61018b7a
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 0x61018c39
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x61003f74
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x61018caf
push 1
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x628]
jne 0x61018cb5
lea eax, [ebp - 0x218]
push 4
push ebx
push eax
call edi
mov byte [ebp - 0xa81], 0
jmp 0x61018c39
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 0x61018d05
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x61018d05
push 4
push ebx
push dword [ebp - 0xa88]
call edi
mov byte [ebp - 0xa81], 0
mov bl, byte [ebp - 0xa81]
jmp 0x61018a34