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

Disassembly:
push 0x1b0
mov eax, 0x100409cc
call fcn.1003f47d
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
push eax
call fcn.1000d25c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 1
push 0x10046c60
call fcn.10011626
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000d229
push 3
push 0x10046c64
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.10011626
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x1b0]
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100063b6
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000d229
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 2
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100061ef
sub ecx, edx
lea eax, [ebp - 0x184]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10011626
test byte [ebp - 0x1b0], 0x10
je 0x100062fa
lea ecx, [ebp - 0x184]
cmp byte [ecx], 0x2e
jne 0x1000622c
movzx eax, byte [ecx + 1]
test al, al
je 0x10006394
lea edx, [ebp - 0x184]
mov esi, 0x10046c68
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [esi + ecx]
jne 0x1000624d
inc ecx
cmp ecx, 3
jne 0x10006239
jmp 0x10006394
lea edx, [ebp - 0x184]
mov esi, 0x10046c6c
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [esi + ecx]
jne 0x1000626d
inc ecx
cmp ecx, 4
jne 0x1000625a
xor eax, eax
jmp 0x10006272
sbb eax, eax
or eax, 1
test eax, eax
je 0x100062db
push 0x10046809
lea ecx, [ebp - 0x28]
call fcn.1000d25c
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 3
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006290
sub ecx, edx
lea eax, [ebp - 0x184]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10011626
push 7
push str._es_lib
lea ecx, [ebp - 0x28]
call fcn.10011626
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ecx, dword [0x1007a114]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.1003d13f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10011432
push dword [ebp + 0x10]
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push dword [ebp + 0xc]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.10006165
add esp, 0xc
jmp 0x10006394
cmp byte [ebp + 0x10], 0
jne 0x10006394
sub esp, 0x18
mov byte [ebp - 0x1bc], 0
mov eax, esp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1b8], eax
push dword [ebp - 0x1bc]
push ecx
push eax
call fcn.100073ec
add esp, 0xc
call fcn.10005aad
add esp, 0x18
cmp byte [ebp + 0xc], 0
je 0x10006394
mov eax, dword [0x10079190]
cmp dword [eax + 0x2c], 0x5dc
jbe 0x10006394
sub esp, 0x18
add eax, 0x1c
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1000d229
mov ecx, dword [0x10079190]
push esi
call fcn.10005550
mov ecx, dword [0x10079190]
push 1
call fcn.100056fa
lea ecx, [ebp - 0x1b1]
call fcn.1000ed64
mov esi, eax
mov ecx, esi
call fcn.10011ea6
mov ecx, dword [0x10079190]
add ecx, 0x1c
push esi
call fcn.100117d3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.10011432
lea eax, [ebp - 0x1b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100061d6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x58]
call fcn.10011432
lea ecx, [ebp - 0x70]
call fcn.10011432
call fcn.1003f43b
ret