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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x25c], 0
or dword [ebp - 0x268], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x258], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1010176
sub eax, ecx
sar eax, 1
lea ebx, [eax + 0x106]
lea eax, [ebx + ebx]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x10101ba
mov dword [ebp - 0x25c], 8
xor esi, esi
jmp 0x101066d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10101bf
sub eax, edx
sar eax, 1
lea edi, [eax + 0x106]
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 0x26c], eax
test eax, eax
jne 0x10101fd
mov dword [ebp - 0x25c], 8
xor esi, esi
jmp 0x1010625
push dword [ebp - 0x264]
mov esi, 0x10031b0
push esi
push ebx
mov ebx, dword [ebp - 0x260]
push ebx
call fcn.0100fd95
mov eax, ebx
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101021e
push dword [ebp - 0x258]
sub eax, ecx
sar eax, 1
lea eax, [ebx + eax*2]
mov ebx, dword [ebp - 0x26c]
push esi
push edi
push ebx
mov dword [ebp - 0x264], eax
call fcn.0100fd95
mov eax, ebx
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1010251
sub eax, ecx
push 0x10031ac
sar eax, 1
push 0x105
push dword [ebp - 0x264]
lea eax, [ebx + eax*2]
mov dword [ebp - 0x270], eax
call fcn.0100fd26
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x10102ce
push dword [ebp - 0x258]
call fcn.01013866
mov esi, eax
test esi, esi
jne 0x10102ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1003158
push 4
mov dword [ebp - 0x25c], eax
call fcn.01011862
add esp, 0x10
jmp 0x1010625
cmp dword [ebp + 0x18], 0
je 0x10102f0
push 0x1003048
push 0
push dword [ebp - 0x258]
call fcn.0101277b
mov esi, eax
test esi, esi
je 0x1010619
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1010343
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x258]
call fcn.01011603
cmp edi, 2
je 0x101032c
push edi
push dword [ebp - 0x258]
push 0x1002ca8
push 3
jmp 0x101038d
push dword [ebp - 0x258]
push 0x1002c48
push 2
call fcn.01011862
add esp, 0xc
jmp 0x1010395
and eax, 0x3120
mov ecx, 0x80
or eax, ecx
cmp eax, ecx
je 0x1010358
and eax, 0xffffff7f
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test esi, esi
jne 0x10103a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x258]
call fcn.01011603
push edi
push dword [ebp - 0x258]
push 0x1002be8
push 4
call fcn.01011862
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1010619
lea eax, [ebp - 0x228]
push eax
mov esi, 0x105
push esi
push dword [ebp - 0x264]
call fcn.0100fd26
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x270]
call fcn.0100fd26
test byte [ebp - 0x254], 0x10
je 0x101048e
mov ecx, 0x1003044
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101040d
test dx, dx
je 0x1010409
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101040d
add eax, 4
add ecx, 4
test dx, dx
jne 0x10103e7
xor eax, eax
jmp 0x1010412
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10105c6
mov ecx, 0x100303c
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101044b
test dx, dx
je 0x1010447
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101044b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1010425
xor eax, eax
jmp 0x1010450
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10105c6
push ebx
push dword [ebp - 0x260]
push 0x1002ffc
push 2
call fcn.01011862
add esp, 0x10
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x260]
call fcn.0101013b
jmp 0x10105c0
cmp dword [ebp + 0x1c], 0
je 0x10104a7
push dword [ebp - 0x264]
call fcn.0100fb70
test eax, eax
je 0x10105c6
cmp dword [ebp + 0x14], 0
je 0x10104cf
push 0x1002f40
push 0
push ebx
call fcn.0101277b
mov esi, eax
test esi, esi
jne 0x10104cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10105e3
cmp dword [ebp + 0x20], 0
jne 0x10104e8
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x260]
call fcn.0100fdf4
test eax, eax
je 0x1010512
call fcn.01010e88
push 1
mov edi, eax
call fcn.0101101e
push ebx
push dword [ebp - 0x260]
call fcn.0100fa7f
push edi
mov esi, eax
call fcn.0101101e
test esi, esi
je 0x10105e7
push ebx
call fcn.0100fb01
test eax, eax
je 0x10105c6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101055f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push ebx
call fcn.01011603
cmp edi, 2
je 0x101054d
push edi
push ebx
push 0x1002ca8
push 3
jmp 0x101059a
push ebx
push 0x1002c48
push 2
call fcn.01011862
add esp, 0xc
jmp 0x10105a2
and eax, 0x3120
mov ecx, 0x80
or eax, ecx
cmp eax, ecx
je 0x1010574
and eax, 0xffffff7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test esi, esi
jne 0x10105ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push ebx
call fcn.01011603
push edi
push ebx
push 0x1002be8
push 4
call fcn.01011862
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10105e7
cmp dword [ebp + 0x14], 0
je 0x10105c6
push 0x1002f40
push 1
push ebx
call fcn.0101277b
mov esi, eax
test esi, esi
je 0x10105e7
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x10103a4
test esi, esi
jne 0x10105fb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x101068c
xor esi, esi
inc esi
cmp dword [ebp + 0x18], 0
je 0x1010625
push 0x1003048
push 1
push dword [ebp - 0x258]
call fcn.0101277b
mov esi, eax
test esi, esi
jne 0x1010625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
push dword [ebp - 0x260]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
cmp dword [ebp - 0x26c], 0
je 0x1010654
push dword [ebp - 0x26c]
push 0
call edi
push eax
call ebx
cmp dword [ebp - 0x268], 0xffffffff
je 0x1010669
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1010679
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01009199
leave
ret 0x1c
call edi
jmp 0x101061f