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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
push ebx
push esi
push edi
mov dword [ebp - 0x55c], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x1000c1f4
inc ebx
push edi
je 0x1000c24d
pop eax
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x210], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x558], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x557]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x558]
push ecx
push str._s.
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x454], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x450]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x1000c2c1
xor eax, eax
jmp 0x1000c542
mov dword [ebp - 4], 0
mov byte [ebp - 0x314], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 4], 0
jne 0x1000c530
push 0x10014610
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000c4ee
push 0x1001460c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000c4ee
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x558]
push edx
push str._s_s
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 0x454]
and ecx, 0x10
test ecx, ecx
je 0x1000c379
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x314]
push ecx
mov ecx, dword [ebp - 0x55c]
call fcn.1000c1d0
test eax, eax
jne 0x1000c374
xor eax, eax
jmp 0x1000c542
jmp 0x1000c4ee
push 0x10014620
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000c3a5
push 0x1001461c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1000c3c0
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x55c]
call fcn.1000baf0
jmp 0x1000c4ee
movsx eax, byte [ebp - 0x108]
cmp eax, 0x2a
jne 0x1000c428
movsx ecx, byte [ebp - 0x107]
cmp ecx, 0x2e
jne 0x1000c428
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x428]
lea eax, [ebp - 0x107]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esi, eax
push esi
lea ecx, [ebp - 0x107]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000c423
lea edx, [ebp - 0x314]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x55c]
call fcn.1000baf0
jmp 0x1000c4ee
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx edx, byte [ebp + eax - 0x10a]
cmp edx, 0x2e
jne 0x1000c4c0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx ecx, byte [ebp + eax - 0x109]
cmp ecx, 0x2a
jne 0x1000c4c0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 2
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHELL32.dll_StrCmpNIA]
test eax, eax
jne 0x1000c4be
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 2
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, eax
jne 0x1000c4be
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x55c]
call fcn.1000baf0
jmp 0x1000c4ee
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000c4ee
lea edx, [ebp - 0x314]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x55c]
call fcn.1000baf0
lea ecx, [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000c52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1000c51a
mov dword [ebp - 4], 1
jmp 0x1000c52b
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1000c542
jmp 0x1000c2e1
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc