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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001a3cc
push eax
mov dword fs:[0], esp
sub esp, 0x884
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x89c]
push edi
mov ebp, ecx
mov ecx, 0x82
lea edi, [esp + 0x480]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
je 0x10008bf1
mov edi, 0x10001584
mov dword [esp + 0x10], edi
jmp 0x10008bfd
mov dword [esp + 0x10], 0x1001c52c
mov edi, dword [esp + 0x10]
push edi
push esi
lea eax, [esp + 0x488]
push 0x10001574
push eax
call dword [fcn.100042fc]
add esp, 0x10
lea ecx, [esp + 0x28]
lea edx, [esp + 0x480]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x10008c38
xor al, al
jmp 0x10008d98
push ebx
xor ebx, ebx
cmp word [esp + 0x58], 0x2e
je 0x10008d72
test byte [esp + 0x2c], 0x10
lea eax, [esp + 0x58]
push eax
push edi
push esi
push 0x10001564
je 0x10008c7f
lea ecx, [esp + 0x69c]
push ecx
call dword [fcn.100042fc]
add esp, 0x14
lea edx, [esp + 0x68c]
mov ecx, ebp
push edx
call fcn.10008ba0
jmp 0x10008d72
lea ecx, [esp + 0x28c]
push ecx
call dword [fcn.100042fc]
mov dl, byte [esp + 0x27]
lea eax, [esp + 0x290]
push eax
mov byte [esp + 0x30], dl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
mov esi, eax
lea ecx, [esp + 0x18]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x10008ce7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x27c]
push esi
push ecx
push edx
call fcn.10008dc0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
add esp, 0xc
mov word [eax + esi*2], bx
mov esi, dword [ebp + 0x14]
push 0x18
mov dword [esp + 0x8a0], ebx
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp edi, ebx
mov dword [eax], esi
jne 0x10008d06
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push eax
call fcn.10009240
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
add esp, 8
inc edx
cmp eax, ebx
mov dword [ebp + 0x18], edx
mov dword [esp + 0x89c], 0xffffffff
je 0x10008d5b
mov cl, byte [eax - 1]
cmp cl, bl
je 0x10008d4f
cmp cl, 0xff
je 0x10008d4f
dec cl
mov byte [eax - 1], cl
jmp 0x10008d5b
add eax, 0xfffffffe
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x8a4]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10008c3b
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop ebx
mov ecx, dword [esp + 0x890]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x890
ret 4