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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x1053d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x464], 0
or dword [ebp - 0x460], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x468], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x1032948
cmp esi, edi
je 0x1032948
push dword [ebp + 0xc]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010183fd
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1032738
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032981
test byte [eax + 0x1c], 2
je 0x1032981
push 0x1008a14
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141a1
jmp 0x1032981
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x103275d
test al, 0x10
jne 0x103275d
mov dword [ebp - 0x464], 1
jmp 0x1032981
cmp dword [ebp + 0x10], 0
je 0x1032981
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010183fd
push 0x1004aa4
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x10327af
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032981
test byte [eax + 0x1c], 2
je 0x1032981
push 0x1008a14
push 0x1e
jmp 0x1032728
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test byte [ebp - 0x45c], 0x10
mov dword [ebp - 0x460], eax
je 0x10328bf
push 4
mov edx, 0x1008b3c
lea eax, [ebp - 0x430]
pop esi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1032808
test cx, cx
je 0x1032804
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1032808
add eax, esi
add edx, esi
test cx, cx
jne 0x10327e4
xor eax, eax
jmp 0x103280d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10328bf
mov ecx, 0x1008b34
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1032844
test dx, dx
je 0x1032840
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1032844
add eax, esi
add ecx, esi
test dx, dx
jne 0x1032820
xor eax, eax
jmp 0x1032849
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10328bf
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010183fd
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1032897
mov eax, dword [section..data]
cmp eax, section..data
je 0x103296c
test byte [eax + 0x1c], 2
je 0x103296c
push 0x1008a14
push 0x1f
jmp 0x1032961
mov ecx, dword [ebp - 0x46c]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x468]
call fcn.01032690
test eax, eax
mov dword [ebp - 0x464], eax
jne 0x103296c
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1032918
test byte [ebp - 0x45c], 0x10
je 0x1032918
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.010183fd
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x103292d
mov ecx, dword [ebp - 0x46c]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x468]
call fcn.01032690
test eax, eax
mov dword [ebp - 0x464], eax
jne 0x103296c
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call esi
test eax, eax
jne 0x10328c7
jmp 0x103296c
mov eax, dword [section..data]
cmp eax, section..data
je 0x103296c
test byte [eax + 0x1c], 2
je 0x103296c
push 0x1008a14
push 0x20
jmp 0x1032961
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032981
test byte [eax + 0x1c], 2
je 0x1032981
push 0x1008a14
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141a1
cmp dword [ebp - 0x460], 0xffffffff
je 0x1032981
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x464]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010356d1
leave
ret 0xc