Function at 0x100a0ca
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push dword [esi]
mov ebx, eax
call edi
add ebx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x100a10a
push eax
call edi
add ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add ebx, 5
push ebx
push 0x42
mov dword [ebp - 0x25c], ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
call ebx
push dword [ebp - 0x25c]
mov dword [ebp - 0x258], eax
push 0x42
call edi
push eax
call ebx
mov edi, dword [ebp - 0x258]
test edi, edi
mov dword [ebp - 0x250], eax
je 0x100a455
test eax, eax
je 0x100a443
push dword [esi + 4]
mov ebx, dword [ebp - 0x25c]
push ebx
push edi
call fcn.0101627b
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov eax, dword [esi]
jne 0x100a185
inc eax
inc eax
jmp 0x100a186
inc eax
push eax
push ebx
push edi
call fcn.01016202
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [eax + 0x114], 0
je 0x100a1af
push edi
call fcn.01014d9f
test eax, eax
jne 0x100a1af
and dword [ebp + 0xc], eax
jmp 0x100a443
push edi
push ebx
push dword [ebp - 0x250]
call fcn.0101627b
push 0x10016d4
push ebx
push dword [ebp - 0x250]
call fcn.01016202
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x18
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x254], eax
je 0x100a310
mov ebx, 0x105
test byte [ebp - 0x24c], 0x10
je 0x100a2e6
push 0x1001950
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100a2e6
push 0x100194c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100a2e6
cmp dword [0x10201ec], 0
jne 0x100a25f
lea eax, [ebp - 0x220]
push 0x1001944
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x100a2e6
mov eax, dword [esi + 4]
add eax, 0x11c
cmp dword [eax], 0
je 0x100a2d9
push dword [eax]
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.0101627b
lea eax, [ebp - 0x10c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100a287
sub eax, ecx
cmp byte [ebp + eax - 0x10d], 0x5c
mov eax, dword [esi]
jne 0x100a2a0
inc eax
inc eax
jmp 0x100a2a1
inc eax
push eax
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.01016202
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.01016202
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call fcn.0100943a
test eax, eax
je 0x100a2e6
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.01009d51
cmp dword [0x1021dcc], 0
jne 0x100a30a
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a1f9
mov ebx, dword [ebp - 0x25c]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x258]
push ebx
push dword [ebp - 0x250]
call fcn.0101627b
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x110]
add esp, 0xc
test eax, eax
jne 0x100a343
mov eax, 0x10016d4
push eax
push ebx
push dword [ebp - 0x250]
call fcn.01016202
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x254], eax
je 0x100a431
cmp dword [0x1021dcc], 0
jne 0x100a431
test byte [ebp - 0x24c], 0x10
mov eax, dword [ebp - 0x234]
mov edi, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x238]
mov dword [ebp - 0x25c], eax
jne 0x100a416
cmp dword [0x10201ec], 0
jne 0x100a3f0
lea eax, [ebp - 0x220]
push 0x100193c
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x100a416
lea eax, [ebp - 0x220]
push 0x100192c
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x100a416
lea eax, [ebp - 0x220]
push 0x100191c
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x100a416
mov eax, dword [esi + 4]
push 0
push dword [ebp - 0x24c]
push dword [ebp - 0x25c]
push ebx
push edi
push dword [eax + 0x114]
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.01009cba
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a371
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x258]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalHandle]
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
jmp 0x100a45b
mov ebx, dword [sym.imp.KERNEL32.dll_LocalHandle]
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call edi
cmp dword [ebp - 0x250], 0
je 0x100a47f
push dword [ebp - 0x250]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 0x250]
call ebx
push eax
call edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
je 0x100a4bf
push dword [esi + 0x14]
call fcn.010182e3
jmp 0x100a4b9
cmp dword [0x1021dcc], 0
jne 0x100a4bf
push edi
push esi
call fcn.0100a0ca
push esi
call fcn.01018340
mov esi, eax
test esi, esi
jne 0x100a4a3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 8