Function at 0x1032624
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 0x10328dc
cmp esi, edi
je 0x10328dc
push dword [ebp + 0xc]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01018462
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x10326cc
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032915
test byte [eax + 0x1c], 2
je 0x1032915
push 0x1008a0c
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
jmp 0x1032915
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10326f1
test al, 0x10
jne 0x10326f1
mov dword [ebp - 0x464], 1
jmp 0x1032915
cmp dword [ebp + 0x10], 0
je 0x1032915
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01018462
push 0x1004a9c
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x1032743
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032915
test byte [eax + 0x1c], 2
je 0x1032915
push 0x1008a0c
push 0x1e
jmp 0x10326bc
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 0x1032853
push 4
mov edx, 0x1008ab0
lea eax, [ebp - 0x430]
pop esi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x103279c
test cx, cx
je 0x1032798
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x103279c
add eax, esi
add edx, esi
test cx, cx
jne 0x1032778
xor eax, eax
jmp 0x10327a1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1032853
mov ecx, 0x1008aa8
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10327d8
test dx, dx
je 0x10327d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10327d8
add eax, esi
add ecx, esi
test dx, dx
jne 0x10327b4
xor eax, eax
jmp 0x10327dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1032853
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01018462
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x103282b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032900
test byte [eax + 0x1c], 2
je 0x1032900
push 0x1008a0c
push 0x1f
jmp 0x10328f5
mov ecx, dword [ebp - 0x46c]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x468]
call fcn.01032624
test eax, eax
mov dword [ebp - 0x464], eax
jne 0x1032900
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10328ac
test byte [ebp - 0x45c], 0x10
je 0x10328ac
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01018462
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x10328c1
mov ecx, dword [ebp - 0x46c]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x468]
call fcn.01032624
test eax, eax
mov dword [ebp - 0x464], eax
jne 0x1032900
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call esi
test eax, eax
jne 0x103285b
jmp 0x1032900
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032900
test byte [eax + 0x1c], 2
je 0x1032900
push 0x1008a0c
push 0x20
jmp 0x10328f5
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032915
test byte [eax + 0x1c], 2
je 0x1032915
push 0x1008a0c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010141c0
cmp dword [ebp - 0x460], 0xffffffff
je 0x1032915
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.0103563d
leave
ret 0xc