Function at 0x100383a0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8069
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x100c66d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x4c], cx
mov esi, 7
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
call fcn.10005150
lea eax, [esi + 0x19]
lea edi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.10034b80
lea edi, [esi + 1]
cmp dword [ebp - 0x3c], ebx
je 0x1003847b
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x10038411
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1003847b
push str..
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.100069b0
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x10038445
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x2f4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f8], eax
cmp eax, 0xffffffff
jne 0x10038493
cmp dword [ebp - 0x54], edi
jb 0x1003846f
mov eax, dword [ebp - 0x68]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
cmp dword [ebp - 0x38], edi
jb 0x1003848c
mov edx, dword [ebp - 0x4c]
push edx
call fcn.1003d468
add esp, 4
xor al, al
jmp 0x100386a7
lea eax, [ebp - 0x2c8]
push eax
push 0x100b67c8
call fcn.1003f595
add esp, 8
test eax, eax
je 0x1003864c
lea ecx, [ebp - 0x2c8]
push ecx
push 0x100bb078
call fcn.1003f595
add esp, 8
test eax, eax
je 0x1003864c
lea edx, [ebp - 0xa0]
push edx
lea ebx, [ebp - 0x4c]
call fcn.10039ad0
add esp, 4
push eax
lea eax, [ebp - 0x2c8]
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.100068d0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8c], edi
jb 0x1003850e
mov eax, dword [ebp - 0xa0]
push eax
call fcn.1003d468
add esp, 4
mov eax, dword [ebp - 0x30]
xor ebx, ebx
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], cx
cmp dword [ebp - 0x1c], edi
jae 0x10038535
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10038556
mov ecx, dword [ebp - 0x30]
and eax, 0xfffffffe
cmp dword [ebp - 0x1c], edi
jae 0x1003854e
lea ecx, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x2f4], 0x10
mov edx, dword [ebp - 0x30]
je 0x100385d7
cmp dword [ebp - 0x1c], edi
jae 0x1003856a
lea edx, [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x84], ax
mov eax, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10038580
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x84]
call fcn.10005fb0
lea ecx, [ebp - 0x84]
push ecx
mov byte [ebp - 4], 5
call fcn.100383a0
add esp, 4
cmp dword [ebp - 0x70], edi
jb 0x100385c3
mov edx, dword [ebp - 0x84]
push edx
call fcn.1003d468
add esp, 4
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jae 0x100385ce
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10038637
cmp dword [ebp - 0x1c], edi
jae 0x100385df
lea edx, [ebp - 0x30]
xor eax, eax
mov word [ebp - 0x84], ax
mov eax, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100385f3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x84]
call fcn.10005fb0
push 1
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.100386d0
add esp, 4
cmp dword [ebp - 0x70], edi
jb 0x10038637
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.1003d468
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
jb 0x1003864c
mov edx, dword [ebp - 0x30]
push edx
call fcn.1003d468
add esp, 4
mov esi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x2f4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10038493
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x54], edi
jb 0x10038680
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], dx
cmp dword [ebp - 0x38], edi
jb 0x100386a5
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1003d468
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003c5b5
mov esp, ebp
pop ebp
ret