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

Disassembly:
sub esp, 0xe5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe6c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10172c3f
mov eax, dword [esp + 0xe80]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe5c
ret
and eax, 0x10
cmp al, 0x10
je 0x10172cef
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10172cdb
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x66c]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x670]
push ecx
call fcn.10033da9
mov eax, dword [esp + 0xe88]
mov ecx, dword [esp + 0xe80]
lea edx, [esp + 0x674]
push edx
push eax
mov eax, dword [esp + 0xe8c]
lea edx, [esp + 0xe84]
push ecx
push edx
mov edx, dword [esp + 0xe9c]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
call fcn.10172510
add esp, 0x24
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe5c
ret
mov esi, dword [esp + 0xe80]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xe5c
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xa6c]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa70]
push eax
call fcn.10033da9
lea ecx, [esp + 0xa74]
push 0x1028bc0c
push ecx
call fcn.10033d7f
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0xa6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x10172f99
mov ebx, dword [esp + 0xe88]
mov ebp, dword [esp + 0xe80]
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10172f85
mov edx, dword [esp + 0x1c]
and edx, 0x10
cmp dl, 0x10
je 0x10172e02
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.10033da9
lea ecx, [esp + 0x274]
push 0x1028bc08
push ecx
call fcn.10033d7f
lea edx, [esp + 0x58]
lea eax, [esp + 0x27c]
push edx
push eax
call fcn.10033d7f
lea ecx, [esp + 0x284]
lea edx, [esp + 0x684]
push ecx
push edx
call fcn.10033da9
mov ecx, dword [esp + 0xe98]
lea eax, [esp + 0x68c]
push eax
mov eax, dword [esp + 0xea0]
push ebp
lea edx, [esp + 0xe9c]
push ecx
push edx
mov edx, dword [esp + 0xeb4]
lea ecx, [esp + 0x4c]
push eax
push ecx
push edx
call fcn.10172510
mov ebp, eax
add esp, 0x3c
test ebp, ebp
je 0x10172f41
jmp 0x10172d52
lea eax, [esp + 0x48]
push 0x1026e6f4
push eax
call fcn.100340ae
add esp, 8
test eax, eax
je 0x10172d52
lea ecx, [esp + 0x48]
push 0x1026e6f8
push ecx
call fcn.100340ae
add esp, 8
test eax, eax
je 0x10172d52
xor edi, edi
mov dword [esp + 0x14], edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x10172e9f
mov ecx, dword [ebx + 8]
mov eax, 0xfe03f81
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x10172e9f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
add ecx, esi
push ecx
push edx
call fcn.100340ae
add esp, 8
test eax, eax
je 0x10172e85
mov eax, dword [esp + 0x14]
inc edi
add eax, 0x810
mov dword [esp + 0x14], eax
jmp 0x10172e3c
mov ecx, dword [ebx + 4]
mov eax, edi
shl eax, 7
add eax, edi
shl eax, 4
mov edx, dword [eax + ecx + 0x808]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xe70]
lea edx, [esp + 0x26c]
push ecx
push edx
call fcn.10033da9
lea eax, [esp + 0x274]
push 0x1028bc08
push eax
call fcn.10033d7f
lea ecx, [esp + 0x58]
lea edx, [esp + 0x27c]
push ecx
push edx
call fcn.10033d7f
mov edi, dword [esp + 0xe90]
mov edx, dword [esp + 0xe94]
mov esi, dword [esp + 0xe9c]
lea eax, [esp + 0x284]
push eax
push ebp
lea ecx, [esp + 0xe94]
push edi
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push esi
call fcn.10172510
add esp, 0x34
test eax, eax
je 0x10172f55
mov ecx, dword [esp + 0x18]
push ebx
push esi
push eax
push ecx
push edi
lea edx, [esp + 0x280]
push 0
push edx
call fcn.10172c10
add esp, 0x1c
test eax, eax
je 0x10172f6d
mov esi, dword [esp + 0xe70]
mov edi, dword [esp + 0x10]
jmp 0x10172d52
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe5c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe5c
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe5c
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xe5c
ret
mov ebp, dword [esp + 0xe80]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xe5c
ret