Function at 0x10369b2
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, 0x1055b8e
call fcn.01022105
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa88]
mov byte [ebp - 0xa81], 1
call fcn.010155dc
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa90]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.010155dc
mov byte [ebp - 4], 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xa8c], eax
jne 0x1036a42
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa90]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.010151a6
xor al, al
call fcn.01022197
ret 4
test al, 0x10
jne 0x1036a79
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa94]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa90]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.010151a6
mov al, bl
jmp 0x1036a3a
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa90]
push eax
push esi
call fcn.01035d59
test al, al
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
je 0x1036ad5
mov eax, dword [ebp - 0xa90]
cmp dword [eax - 0xc], ebx
je 0x1036ad5
lea ecx, [ebp - 0x420]
push ecx
push ebx
push 0x100ad28
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1036ad5
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x420]
push ecx
push eax
call edi
test eax, eax
je 0x1036ad5
lea eax, [ebp - 0x420]
push eax
jmp 0x1036ad7
push dword [esi]
lea ecx, [ebp - 0xa88]
call fcn.01015d13
test word [ebp - 0xa8c], 0x400
je 0x1036b2c
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 0x1036b1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x1036a48
push 4
push ebx
push dword [ebp - 0xa88]
call edi
jmp 0x1036a46
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.0101506d
test eax, eax
jl 0x1036a46
push ebx
push esi
push 0x100ae50
lea eax, [ebp - 0x830]
push eax
call fcn.01052845
test eax, eax
je 0x1036a46
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 0x1036cda
cmp esi, 1
jne 0x1036cda
push dword [ebp - 0xa88]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0101506d
test eax, eax
jl 0x1036c4c
push ebx
push esi
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.01052845
test eax, eax
je 0x1036c4c
test byte [ebp - 0xa80], 0x10
je 0x1036c66
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1005f78
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x1036c4c
push 0x1005f70
lea eax, [ebp - 0xa54]
push eax
call esi
test eax, eax
je 0x1036c4c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa98]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa98]
push eax
call fcn.010369b2
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa98]
call fcn.010151a6
test bl, bl
je 0x1036c4a
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 0x1036b8d
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 0x1036c4c
lea eax, [ebp - 0x628]
push eax
push ebx
push 0x100ad28
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1036cc2
push 1
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x628]
jne 0x1036cc8
lea eax, [ebp - 0x218]
push 4
push ebx
push eax
call edi
mov byte [ebp - 0xa81], 0
jmp 0x1036c4c
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 0x1036d18
push dword [ebp - 0xa88]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1036d18
push 4
push ebx
push dword [ebp - 0xa88]
call edi
mov byte [ebp - 0xa81], 0
mov bl, byte [ebp - 0xa81]
jmp 0x1036a48