Function at 0x100e869
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 0x100e8d2
mov dword [ebp - 0xa70], 0x8007000e
jmp 0x100eb7e
xor ecx, ecx
push esi
mov word [eax], cx
mov esi, dword [ebx]
mov dword [ebp - 0xa68], eax
jmp 0x100eaf2
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 0x100ea5a
mov ecx, 0x1001e7c
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100e95f
cmp dx, di
je 0x100e95b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100e95f
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100e939
xor eax, eax
jmp 0x100e964
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100ea3d
mov ecx, 0x1001e74
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100e99d
cmp dx, di
je 0x100e999
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100e99d
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100e977
xor eax, eax
jmp 0x100e9a2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100ea3d
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.0100dc84
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100eb4c
cmp dword [ebp - 0xa6c], edi
je 0x100eb2a
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100eafb
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 0x100e92e
jmp 0x100ead6
push 0x2a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100ead6
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100ead6
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.0100dc84
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100eb61
cmp dword [ebp - 0xa6c], edi
je 0x100eb36
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100eafb
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 0x100eafb
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100eae0
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x100e8e5
mov eax, dword [ebx]
cmp eax, edi
je 0x100eb12
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 0x100eb42
mov eax, dword [ebp - 0xa78]
mov dword [ebx], eax
mov dword [ebp - 0xa78], edi
jmp 0x100eb4c
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100eb4c
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100eb61
mov dword [ebp - 0xa70], 0x80070002
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x100eb61
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0xa78], edi
je 0x100eb7e
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.0100b071
leave
ret 8