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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008458f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x1003b818
xor ebx, ebx
jmp 0x1003baf1
lea eax, [ebp - 0x260]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
push 0x1008fa70
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0x10093ad0
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
lea ecx, [ebp - 0x274]
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.1003a550
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x274]
mov ebx, eax
add esi, 0xfffffff0
mov dword [ebp - 0x268], ebx
mov edx, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003b8a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x1003ba96
lea ebx, [ebx]
push ecx
mov ecx, esp
mov dword [ebp - 0x26c], esp
push 0x1008fa70
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x234]
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call fcn.10022bb0
mov byte [ebp - 4], 4
mov esi, dword [ebp + 8]
push ecx
mov ebx, esp
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x1003b90c
cmp ecx, dword [esi - 0x10]
jne 0x1003b90c
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x1003b945
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1003bac4
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.1006b19c
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebx], eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.1003a550
add esp, 0xc
mov byte [ebp - 4], 5
test byte [ebp - 0x260], 0x10
je 0x1003ba05
lea ecx, [ebp - 0x234]
mov eax, 0x10095ad8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003b99e
test dx, dx
je 0x1003b99a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003b99e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003b978
xor eax, eax
jmp 0x1003b9a3
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003ba4f
lea eax, [ebp - 0x234]
mov ecx, 0x10095adc
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1003b9dc
test dx, dx
je 0x1003b9d8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1003b9dc
add ecx, 4
add eax, 4
test dx, dx
jne 0x1003b9b6
xor eax, eax
jmp 0x1003b9e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003ba4f
push ecx
mov ecx, dword [ebp - 0x264]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [esi], eax
call fcn.1003b7d0
add esp, 4
jmp 0x1003ba4f
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp - 0x264]
call edi
push dword [ebp - 0x264]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
jne 0x1003ba4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1003ba4f
mov ecx, dword [ebp - 0x264]
call fcn.1003deb0
push 0
push dword [ebp - 0x264]
call edi
push dword [ebp - 0x264]
call ebx
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003ba73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003b8b0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.100236e0
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003bac9
test al, 0x10
je 0x1003bac9
mov esi, 1
jmp 0x1003bacb
call fcn.10023990
xor esi, esi
lea edx, [edi - 0x10]
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003bae7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
xor ebx, ebx
test esi, esi
sete bl
lea esi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1003bb0f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret