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

Disassembly:
mov eax, 0x100534a8
call fcn.10051f40
sub esp, 0x308
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x5c]
call fcn.10001fd4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x20]
call fcn.10008cb7
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x20]
call fcn.10008c7f
mov esi, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x20]
call fcn.10008cb7
push dword [edi]
push dword [esi]
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.10008dce
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
push 0x10061dec
lea edx, [ebp + 8]
lea ecx, [ebp - 0xbc]
call fcn.10007f23
pop ecx
mov ecx, eax
call fcn.10001e24
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0xbc]
call fcn.10001e30
cmp esi, 0xffffffff
jne 0x100088a1
mov bl, 1
jmp 0x100088c8
xor ebx, ebx
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10008b02
mov edi, dword [ebp - 0x18]
cmp byte [edi], 0
je 0x100088e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x5c]
call fcn.10001f0f
lea ecx, [ebp + 8]
call fcn.10001e30
lea ecx, [ebp + 0x20]
call fcn.10001e30
mov al, bl
jmp 0x10008b23
test byte [ebp - 0x30c], 0x10
je 0x100089de
mov ecx, 0x10061d28
lea eax, [ebp - 0x2e0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008925
test dx, dx
je 0x10008921
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008925
add eax, 4
add ecx, 4
test dx, dx
jne 0x100088ff
mov eax, ebx
jmp 0x1000892a
sbb eax, eax
or eax, 1
test eax, eax
je 0x100089de
mov ecx, 0x10061e10
lea eax, [ebp - 0x2e0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10008963
test dx, dx
je 0x1000895f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10008963
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000893d
mov eax, ebx
jmp 0x10008968
sbb eax, eax
or eax, 1
test eax, eax
je 0x100089de
push ecx
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x74]
call fcn.10003b7e
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.10007fe1
pop ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.10008e51
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.10001e30
lea ecx, [ebp - 0x74]
call fcn.10001e30
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.10007c8e
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0xa4]
push eax
call fcn.10007c8e
mov ecx, edi
call fcn.10008805
lea ecx, [ebp - 0xa4]
call fcn.10001e30
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x40]
call fcn.10003b7e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008cb7
mov edi, eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008c7f
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008cb7
push dword [edi]
push dword [esi]
push dword [eax]
lea ecx, [ebp - 0x44]
call fcn.10008dce
add esp, 0xc
push ebx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008c45
cmp eax, 0xffffffff
je 0x10008af2
push 0x250
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x74]
call fcn.10001fae
push eax
lea ecx, [ebp - 0x5c]
call fcn.10001f14
lea ecx, [ebp - 0x74]
call fcn.10001f0f
mov dword [ebp - 4], ebx
sub esp, 0x18
mov esi, esp
lea eax, [ebp - 0x5c]
push eax
push 0x10070ea8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.10018b1c
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.10002821
pop ecx
mov edx, eax
mov ecx, esi
call fcn.10002821
pop ecx
push 0x66
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.100044b2
mov esi, eax
lea ecx, [ebp - 0x74]
call fcn.10001f0f
lea ecx, [ebp - 0x8c]
call fcn.10001f0f
cmp esi, 0xffffffff
jne 0x10008ae0
lea ecx, [ebp - 0x40]
call fcn.10001e30
lea ecx, [ebp - 0x5c]
call fcn.10001f0f
lea ecx, [ebp + 8]
call fcn.10001e30
lea ecx, [ebp + 0x20]
call fcn.10001e30
xor al, al
jmp 0x10008b23
or dword [ebp - 4], 0xffffffff
jmp 0x10008af2
lea ecx, [ebp - 0x40]
call fcn.10001e30
mov esi, dword [ebp - 0x1c]
jmp 0x100088a3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x5c]
call fcn.10001f0f
lea ecx, [ebp + 8]
call fcn.10001e30
lea ecx, [ebp + 0x20]
call fcn.10001e30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x30