Function at 0x100e877
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x1013b58]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0xa7c], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
push 0x800
push edi
mov dword [ebp - 0xa70], 1
mov dword [ebp - 0xa6c], 0x400
mov dword [ebp - 0xa74], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xa78], eax
cmp eax, edi
jne 0x100e8e0
mov dword [ebp - 0xa70], 0x8007000e
jmp 0x100eb8c
xor ecx, ecx
push esi
mov word [eax], cx
mov esi, dword [ebx]
mov dword [ebp - 0xa68], eax
jmp 0x100eb00
mov eax, 0x100
push eax
lea ecx, [ebp - 0x814]
push ecx
push eax
lea ecx, [ebp - 0x614]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
lea eax, [ebp - 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa7c], eax
cmp eax, 0xffffffff
je 0x100ea68
mov ecx, 0x1001e7c
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100e96d
cmp dx, di
je 0x100e969
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100e96d
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100e947
xor eax, eax
jmp 0x100e972
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100ea4b
mov ecx, 0x1001e74
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100e9ab
cmp dx, di
je 0x100e9a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100e9ab
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100e985
xor eax, eax
jmp 0x100e9b0
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100ea4b
push 0x10017a0
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll__wmakepath_s
add esp, 0x18
push edi
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
call fcn.0100dc93
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100eb5a
cmp dword [ebp - 0xa6c], edi
je 0x100eb38
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100eb09
add dword [ebp - 0xa68], 2
mov ecx, dword [ebp - 0xa68]
xor eax, eax
dec dword [ebp - 0xa6c]
mov word [ecx], ax
lea eax, [ebp - 0xa64]
push eax
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100e93c
jmp 0x100eae4
push 0x2a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100eae4
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100eae4
push edi
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0xa68]
push eax
push esi
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
call fcn.0100dc93
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100eb6f
cmp dword [ebp - 0xa6c], edi
je 0x100eb44
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100eb09
add dword [ebp - 0xa68], 2
mov ecx, dword [ebp - 0xa68]
xor eax, eax
dec dword [ebp - 0xa6c]
mov word [ecx], ax
cmp dword [ebp + 0xc], edi
je 0x100eb09
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100eaee
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x100e8f3
mov eax, dword [ebx]
cmp eax, edi
je 0x100eb20
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx], edi
cmp dword [ebp - 0xa74], edi
je 0x100eb50
mov eax, dword [ebp - 0xa78]
mov dword [ebx], eax
mov dword [ebp - 0xa78], edi
jmp 0x100eb5a
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100eb5a
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100eb6f
mov dword [ebp - 0xa70], 0x80070002
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x100eb6f
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0xa78], edi
je 0x100eb8c
push dword [ebp - 0xa78]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa70]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b081
leave
ret 8