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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x10160380]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, 0x101a157a
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x4a0], ebx
call fcn.10137ff6
push 0x140
lea eax, [ebp - 0x494]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x100a1b4f
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x324]
push eax
push 0x104
push edi
call esi
test eax, eax
je 0x100a1bec
mov ecx, dword [ebp - 0x49c]
lea edx, [ebp - 0x21c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100a1900
lea eax, [ebp - 0x33c]
mov ecx, 0x1018b3b8
push eax
call fcn.1005fbf0
cmp dword [ebp - 0x328], 0xf
lea ecx, [ebp - 0x33c]
mov edx, dword [ebp - 0x49c]
cmova ecx, dword [ebp - 0x33c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100a1938
lea ecx, [ebp - 0x33c]
call fcn.1001b4d0
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 dword [ebp - 0x4a0], eax
cmp eax, 0xffffffff
je 0x100a1b48
nop
lea eax, [ebp - 0x354]
mov ecx, 0x1018b1f8
push eax
or ebx, 1
call fcn.10050700
cmp dword [ebp - 0x340], 0xf
lea eax, [ebp - 0x354]
push 1
cmova eax, dword [ebp - 0x354]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100a1a05
lea eax, [ebp - 0x33c]
mov ecx, 0x1018b7c0
push eax
or ebx, 2
call fcn.1005fb00
cmp dword [ebp - 0x328], 0xf
lea eax, [ebp - 0x33c]
push 2
cmova eax, dword [ebp - 0x33c]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
mov byte [ebp - 0x495], 0
test eax, eax
jne 0x100a1a0c
mov byte [ebp - 0x495], 1
test bl, 2
je 0x100a1a1f
lea ecx, [ebp - 0x33c]
and ebx, 0xfffffffd
call fcn.1001b4d0
lea ecx, [ebp - 0x354]
and ebx, 0xfffffffe
call fcn.1001b4d0
cmp byte [ebp - 0x495], 0
jne 0x100a1b27
test byte [ebp - 0x494], 0x10
je 0x100a1b27
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call esi
test eax, eax
je 0x100a1bec
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 0x100a1a71
lea eax, [ebp - 0x354]
mov ecx, 0x1018b8c0
push eax
call fcn.10050700
cmp dword [ebp - 0x340], 0xf
lea edx, [ebp - 0x354]
cmova edx, dword [ebp - 0x354]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100a1aa6
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a1ab6
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 ecx, [ebp - 0x354]
call fcn.1001b4d0
lea edx, [ebp - 0x21c]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100a1ae0
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a1af0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, fcn.100a1c00
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [ebp - 0x114]
call fcn.100a1880
mov edi, dword [ebp - 0x4a4]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x494]
push eax
push dword [ebp - 0x4a0]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a1980
mov eax, dword [ebp - 0x4a0]
push eax
call 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 0x100a1bd6
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
nop
test byte [ebp - 0x494], 0x10
jne 0x100a1bbd
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100a1bec
mov eax, dword [ebp - 0x49c]
lea edx, [ebp - 0x468]
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x100a1ba0
lea eax, [ebp - 0x468]
push eax
call fcn.100a1c00
add esp, 4
lea eax, [ebp - 0x494]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a1b70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100dfbc8
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.100dfbc8
mov esp, ebp
pop ebp
ret