Function at 0x10e15e0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], edi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e1634
test byte [eax + 0x1c], 1
je 0x10e1634
cmp byte [eax + 0x19], 4
jb 0x10e1634
push 0x1010cfc
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
and dword [ebp - 0x260], 0
or dword [ebp - 0x264], 0xffffffff
and dword [ebp - 0x258], 0
mov esi, 0x1010d48
test edi, edi
jne 0x10e1662
push 0x10111c8
push 0x93a
push esi
call fcn.0107b4be
cmp dword [edi + 4], 0
je 0x10e1678
push 0x10111a4
push 0x93b
push esi
call fcn.0107b4be
lea eax, [ebp - 0x260]
push eax
push 0
push ebx
call fcn.010de312
mov dword [ebp - 0x25c], eax
test eax, eax
jl 0x10e18ab
mov ebx, 0x250
push ebx
lea eax, [ebp - 0x254]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x10e171e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e1706
test dword [eax + 0x1c], 0x200
je 0x10e1706
cmp byte [eax + 0x19], 3
jb 0x10e1706
push esi
push dword [ebp - 0x260]
push 0x1010cfc
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp esi, 5
jne 0x10e18ab
mov dword [ebp - 0x25c], 0x80070005
jmp 0x10e18ab
mov edi, 0x1007938
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e1754
test byte [eax + 0x1c], 1
je 0x10e1754
cmp byte [eax + 0x19], 4
jb 0x10e1754
lea ecx, [ebp - 0x228]
push ecx
push 0x1010cfc
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10e175d
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10e1772
sub eax, ecx
sar eax, 1
cmp esi, eax
jb 0x10e1798
lea eax, [ebp - 0x228]
push edi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10e180f
mov eax, 0x1007930
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10e17a0
sub eax, edx
sar eax, 1
cmp esi, eax
jb 0x10e17ca
lea eax, [ebp - 0x228]
push 0x1007930
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10e180f
test byte [ebp - 0x254], 0x10
je 0x10e180f
push 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0107c871
mov dword [ebp - 0x25c], eax
test eax, eax
jl 0x10e18ab
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
push eax
call fcn.01028442
and dword [ebp - 0x258], 0
xor esi, esi
cmp dword [ebp - 0x258], esi
je 0x10e182b
push dword [ebp - 0x258]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x258], esi
push ebx
lea eax, [ebp - 0x254]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10e1723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x10e18ab
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e1895
test byte [eax + 0x1c], 1
je 0x10e1895
cmp byte [eax + 0x19], 2
jb 0x10e1895
push esi
push dword [ebp - 0x260]
push 0x1010cfc
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test esi, esi
jle 0x10e18a5
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x25c], esi
xor esi, esi
cmp dword [ebp - 0x258], esi
je 0x10e18c1
push dword [ebp - 0x258]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x260], esi
je 0x10e18d5
push dword [ebp - 0x260]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], esi
pop edi
pop esi
pop ebx
jge 0x10e1922
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e194c
test byte [eax + 0x1c], 1
je 0x10e1927
cmp byte [eax + 0x19], 3
jb 0x10e1927
push dword [ebp - 0x25c]
push dword [ebp - 0x268]
push 0x1010cfc
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10e194c
test byte [eax + 0x1c], 1
je 0x10e194c
cmp byte [eax + 0x19], 4
jb 0x10e194c
push 0x1010cfc
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x25c]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 8