Function at 0x10d1c08
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 [0x111027c]
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 [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x10d1c67
test byte [eax + 0x1c], 1
je 0x10d1c67
cmp byte [eax + 0x19], 5
jb 0x10d1c67
push 0x100fe68
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x10d1ca3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10d1c8b
sub eax, edx
sar eax, 1
je 0x10d1cad
cmp word [edi + eax*2 - 2], 0x5c
je 0x10d1cad
mov esi, 0x80070057
jmp 0x10d215f
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.0107e9b5
mov esi, eax
test esi, esi
jge 0x10d1d05
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push edi
push 0x100fe68
push 0x1c
jmp 0x10d2124
test dword [ebp - 0x270], 0x400
je 0x10d1d45
mov esi, 0x80070005
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push edi
push 0x100fe68
push 0x1d
jmp 0x10d2124
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x13
ja 0x10d2131
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d1d59
sub eax, edx
sar eax, 1
lea edi, [eax + 0x106]
push 2
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.0101ae15
mov esi, eax
test esi, esi
jl 0x10d215f
push dword [ebp - 0x260]
push edi
push dword [ebp - 0x258]
call fcn.010257dc
mov esi, eax
test esi, esi
jl 0x10d215f
lea eax, [ebp - 0x25c]
push eax
push 0x100568c
push dword [ebp - 0x260]
call fcn.0107ca99
mov esi, eax
test esi, esi
jl 0x10d215f
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 0x10d1e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x10d1e26
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d204e
test byte [eax + 0x1c], 1
je 0x10d204e
cmp byte [eax + 0x19], 2
jb 0x10d204e
push esi
push dword [ebp - 0x25c]
push 0x100fe68
push 0x1f
jmp 0x10d2043
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x260]
call fcn.010d12c5
mov esi, eax
test esi, esi
jge 0x10d215f
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push dword [ebp - 0x260]
push 0x100fe68
push 0x20
jmp 0x10d2124
mov eax, dword [ebp - 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10d1e84
sub eax, edx
sar eax, 1
push 4
mov dword [ebp - 0x274], eax
pop ebx
mov ecx, 0x1007948
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10d1eca
test dx, dx
je 0x10d1ec6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10d1eca
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10d1ea6
xor eax, eax
jmp 0x10d1ecf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10d1ff1
mov ecx, 0x1007940
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10d1f06
test dx, dx
je 0x10d1f02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10d1f06
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x10d1ee2
xor eax, eax
jmp 0x10d1f0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10d1ff1
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.01040cf0
mov esi, eax
test esi, esi
jl 0x10d215f
test dword [ebp - 0x254], 0x400
jne 0x10d2067
test byte [ebp - 0x254], 0x10
je 0x10d1fd0
cmp dword [ebp + 0xc], 0x14
jae 0x10d1fd0
push 0x10019e4
push edi
push dword [ebp - 0x258]
call fcn.01040cf0
mov esi, eax
test esi, esi
jl 0x10d215f
push dword [ebp - 0x268]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x264]
inc eax
push eax
push dword [ebp - 0x258]
call fcn.010d1c08
mov esi, eax
test esi, esi
jge 0x10d1ff1
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push dword [ebp - 0x258]
push 0x100fe68
push 0x22
jmp 0x10d2124
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x258]
call fcn.010d12c5
mov esi, eax
test esi, esi
jl 0x10d20ad
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10d1e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x10d20e1
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d204e
test byte [eax + 0x1c], 1
je 0x10d204e
cmp byte [eax + 0x19], 2
jb 0x10d204e
push esi
push dword [ebp - 0x25c]
push 0x100fe68
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test esi, esi
jle 0x10d215f
and esi, 0xffff
or esi, 0x80070000
jmp 0x10d215f
mov esi, 0x80070005
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push dword [ebp - 0x258]
push 0x100fe68
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
jmp 0x10d215f
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push dword [ebp - 0x258]
push 0x100fe68
push 0x23
jmp 0x10d2124
push dword [ebp - 0x268]
push dword [ebp - 0x264]
push dword [ebp - 0x260]
call fcn.010d12c5
mov esi, eax
test esi, esi
jge 0x10d215f
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push dword [ebp - 0x260]
push 0x100fe68
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10d215f
mov esi, 0x80070057
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x10d215f
test byte [eax + 0x1c], 1
je 0x10d215f
cmp byte [eax + 0x19], 2
jb 0x10d215f
push esi
push ecx
push 0x100fe68
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
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 0x10d2189
push dword [ebp - 0x25c]
call edi
mov dword [ebp - 0x25c], ebx
cmp dword [ebp - 0x258], ebx
je 0x10d2199
push dword [ebp - 0x258]
call edi
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d21c3
test byte [eax + 0x1c], 1
je 0x10d21c3
cmp byte [eax + 0x19], 5
jb 0x10d21c3
push 0x100fe68
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x10