Function at 0x10d1c29
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x268], eax
mov eax, dword [0x111124c]
mov ebx, 0x111124c
cmp eax, ebx
je 0x10d1c88
test byte [eax + 0x1c], 1
je 0x10d1c88
cmp byte [eax + 0x19], 5
jb 0x10d1c88
push 0x100fe68
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
or dword [ebp - 0x26c], 0xffffffff
xor esi, esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x270], esi
cmp edi, esi
je 0x10d1cc4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10d1cac
sub eax, edx
sar eax, 1
je 0x10d1cce
cmp word [edi + eax*2 - 2], 0x5c
je 0x10d1cce
mov esi, 0x80070057
jmp 0x10d2180
push 0x250
lea eax, [ebp - 0x254]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.0107e903
mov esi, eax
test esi, esi
jge 0x10d1d26
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push edi
push 0x100fe68
push 0x1c
jmp 0x10d2145
test dword [ebp - 0x270], 0x400
je 0x10d1d66
mov esi, 0x80070005
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push edi
push 0x100fe68
push 0x1d
jmp 0x10d2145
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x13
ja 0x10d2152
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d1d7a
sub eax, edx
sar eax, 1
lea edi, [eax + 0x106]
push 2
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.0101aed5
mov esi, eax
test esi, esi
jl 0x10d2180
push dword [ebp - 0x260]
push edi
push dword [ebp - 0x258]
call fcn.01025872
mov esi, eax
test esi, esi
jl 0x10d2180
lea eax, [ebp - 0x25c]
push eax
push 0x1005688
push dword [ebp - 0x260]
call fcn.0107c90e
mov esi, eax
test esi, esi
jl 0x10d2180
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x10d1e9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10d1e47
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d206f
test byte [eax + 0x1c], 1
je 0x10d206f
cmp byte [eax + 0x19], 2
jb 0x10d206f
push esi
push dword [ebp - 0x25c]
push 0x100fe68
push 0x1f
jmp 0x10d2064
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x260]
call fcn.010d12e8
mov esi, eax
test esi, esi
jge 0x10d2180
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push dword [ebp - 0x260]
push 0x100fe68
push 0x20
jmp 0x10d2145
mov eax, dword [ebp - 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d1ea5
sub eax, edx
sar eax, 1
push 4
mov dword [ebp - 0x274], eax
pop ebx
mov ecx, 0x1007938
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10d1eeb
test dx, dx
je 0x10d1ee7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10d1eeb
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10d1ec7
xor eax, eax
jmp 0x10d1ef0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10d2012
mov ecx, 0x1007930
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10d1f27
test dx, dx
je 0x10d1f23
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10d1f27
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10d1f03
xor eax, eax
jmp 0x10d1f2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10d2012
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0x274]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x228]
push ecx
push edi
push eax
call fcn.01040bdd
mov esi, eax
test esi, esi
jl 0x10d2180
test dword [ebp - 0x254], 0x400
jne 0x10d2088
test byte [ebp - 0x254], 0x10
je 0x10d1ff1
cmp dword [ebp + 0xc], 0x14
jae 0x10d1ff1
push 0x10019e4
push edi
push dword [ebp - 0x258]
call fcn.01040bdd
mov esi, eax
test esi, esi
jl 0x10d2180
push dword [ebp - 0x268]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x264]
inc eax
push eax
push dword [ebp - 0x258]
call fcn.010d1c29
mov esi, eax
test esi, esi
jge 0x10d2012
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push dword [ebp - 0x258]
push 0x100fe68
push 0x22
jmp 0x10d2145
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x258]
call fcn.010d12e8
mov esi, eax
test esi, esi
jl 0x10d20ce
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10d1ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x10d2102
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d206f
test byte [eax + 0x1c], 1
je 0x10d206f
cmp byte [eax + 0x19], 2
jb 0x10d206f
push esi
push dword [ebp - 0x25c]
push 0x100fe68
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test esi, esi
jle 0x10d2180
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d2180
mov esi, 0x80070005
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push dword [ebp - 0x258]
push 0x100fe68
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
jmp 0x10d2180
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push dword [ebp - 0x258]
push 0x100fe68
push 0x23
jmp 0x10d2145
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x260]
call fcn.010d12e8
mov esi, eax
test esi, esi
jge 0x10d2180
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push dword [ebp - 0x260]
push 0x100fe68
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10d2180
mov esi, 0x80070057
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10d2180
test byte [eax + 0x1c], 1
je 0x10d2180
cmp byte [eax + 0x19], 2
jb 0x10d2180
push esi
push ecx
push 0x100fe68
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109ba57
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 0x25c], ebx
je 0x10d21aa
push dword [ebp - 0x25c]
call edi
mov dword [ebp - 0x25c], ebx
cmp dword [ebp - 0x258], ebx
je 0x10d21ba
push dword [ebp - 0x258]
call edi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d21e4
test byte [eax + 0x1c], 1
je 0x10d21e4
cmp byte [eax + 0x19], 5
jb 0x10d21e4
push 0x100fe68
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0x10