Function at 0x100b436
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x100e318]
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 0x100b49f
mov dword [ebp - 0xa70], 0x8007000e
jmp 0x100b74b
xor ecx, ecx
push esi
mov word [eax], cx
mov esi, dword [ebx]
mov dword [ebp - 0xa68], eax
jmp 0x100b6bf
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 0x100b627
mov ecx, 0x1001ecc
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100b52c
cmp dx, di
je 0x100b528
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100b52c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100b506
xor eax, eax
jmp 0x100b531
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100b60a
mov ecx, 0x1001ec4
lea eax, [ebp - 0xa38]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100b56a
cmp dx, di
je 0x100b566
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100b56a
add eax, 4
add ecx, 4
cmp dx, di
jne 0x100b544
xor eax, eax
jmp 0x100b56f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100b60a
push 0x10015f8
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.01006617
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100b719
cmp dword [ebp - 0xa6c], edi
je 0x100b6f7
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100b6c8
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 0x100b4fb
jmp 0x100b6a3
push 0x2a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100b6a3
push 0x3f
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100b6a3
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.01006617
cmp eax, edi
mov dword [ebp - 0xa70], eax
jl 0x100b72e
cmp dword [ebp - 0xa6c], edi
je 0x100b703
inc dword [ebp - 0xa74]
cmp dword [ebp + 0xc], edi
je 0x100b6c8
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 0x100b6c8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x100b6ad
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x100b4b2
mov eax, dword [ebx]
cmp eax, edi
je 0x100b6df
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 0x100b70f
mov eax, dword [ebp - 0xa78]
mov dword [ebx], eax
mov dword [ebp - 0xa78], edi
jmp 0x100b719
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100b719
mov dword [ebp - 0xa70], 0x8007007a
jmp 0x100b72e
mov dword [ebp - 0xa70], 0x80070002
cmp dword [ebp - 0xa7c], 0xffffffff
je 0x100b72e
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp dword [ebp - 0xa78], edi
je 0x100b74b
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.010091bd
leave
ret 8