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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x10167368]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x494]
push 0x140
mov edi, ecx
mov dword [ebp - 0x498], ebx
push ebx
push eax
mov dword [ebp - 0x4a0], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x1009a995
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x324]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1009aa2b
mov ecx, dword [ebp - 0x49c]
lea edx, [ebp - 0x21c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x1009a614
lea eax, [ebp - 0x33c]
mov ecx, 0x101f4a88
push eax
call fcn.1005d810
mov edi, dword [ebp - 0x328]
lea ecx, [ebp - 0x33c]
mov esi, dword [ebp - 0x33c]
cmp edi, 0x10
mov edx, dword [ebp - 0x49c]
setae ah
cmovae ecx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1009a653
test ah, ah
je 0x1009a692
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1009a688
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009a688
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.100e1eaa
add esp, 8
lea eax, [ebp - 0x494]
mov dword [ebp - 0x494], 0x10
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x4a4], esi
cmp esi, 0xffffffff
je 0x1009a984
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop word [eax + eax]
lea eax, [ebp - 0x33c]
or ebx, 1
push eax
mov ecx, 0x101f4878
mov dword [ebp - 0x498], ebx
call fcn.1004ea50
cmp dword [ebp - 0x328], 0x10
lea eax, [ebp - 0x33c]
push 1
cmovae eax, dword [ebp - 0x33c]
push eax
lea eax, [ebp - 0x468]
push eax
call edi
add esp, 0xc
test eax, eax
je 0x1009a756
lea eax, [ebp - 0x354]
or ebx, 2
push eax
mov ecx, 0x101f4f78
mov dword [ebp - 0x498], ebx
call fcn.1005d680
cmp dword [ebp - 0x340], 0x10
lea eax, [ebp - 0x354]
push 2
cmovae eax, dword [ebp - 0x354]
push eax
lea eax, [ebp - 0x468]
push eax
call edi
add esp, 0xc
test eax, eax
je 0x1009a756
xor bl, bl
jmp 0x1009a758
mov bl, 1
mov eax, dword [ebp - 0x498]
test al, 2
je 0x1009a7c6
mov edx, dword [ebp - 0x340]
and eax, 0xfffffffd
mov dword [ebp - 0x498], eax
cmp edx, 0x10
jb 0x1009a7ab
mov ecx, dword [ebp - 0x354]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009a79b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a682
push edx
push ecx
call fcn.100e1eaa
mov eax, dword [ebp - 0x498]
add esp, 8
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0xf
mov byte [ebp - 0x354], 0
mov edx, dword [ebp - 0x328]
and eax, 0xfffffffe
mov dword [ebp - 0x498], eax
cmp edx, 0x10
jb 0x1009a809
mov ecx, dword [ebp - 0x33c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009a7ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a682
push edx
push ecx
call fcn.100e1eaa
add esp, 8
test bl, bl
jne 0x1009a967
test byte [ebp - 0x494], 0x10
je 0x1009a967
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x104
push dword [ebp - 0x4a0]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1009aa2b
mov edx, dword [ebp - 0x49c]
lea ecx, [ebp - 0x468]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x1009a851
lea eax, [ebp - 0x33c]
mov ecx, 0x101f5030
push eax
call fcn.1004ea50
cmp dword [ebp - 0x328], 0x10
lea edx, [ebp - 0x33c]
jb 0x1009a8e7
mov ebx, dword [ebp - 0x33c]
mov edx, ebx
mov esi, ebx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1009a890
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009a8a0
mov ecx, edx
mov eax, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x328]
inc ecx
cmp ecx, 0x1000
jb 0x1009a8db
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a682
push ecx
push ebx
call fcn.100e1eaa
add esp, 8
jmp 0x1009a916
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1009a8f0
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009a900
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x21c]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x1009a920
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009a930
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, fcn.1009aa40
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [ebp - 0x114]
call fcn.1009a5a0
mov esi, dword [ebp - 0x4a4]
add esp, 4
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea eax, [ebp - 0x494]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1009a984
mov ebx, dword [ebp - 0x498]
jmp 0x1009a6d0
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
mov edi, dword [ebp - 0x4a0]
jmp 0x1009a99b
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x494]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1009aa15
test byte [ebp - 0x494], 0x10
jne 0x1009aa00
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1009aa2b
mov eax, dword [ebp - 0x49c]
lea edx, [ebp - 0x468]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x1009a9e3
lea eax, [ebp - 0x468]
push eax
call fcn.1009aa40
add esp, 4
lea eax, [ebp - 0x494]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1009a9b0
push esi
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100e1968
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e1968
mov esp, ebp
pop ebp
ret