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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x1026a5dc]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
push 0x140
lea eax, [esp + 0x1c]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x18], edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x100a8846
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x36c]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100a88d4
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x260]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100a86f3
lea eax, [esp + 0x18]
mov dword [esi], 0x2a2e2a
push eax
lea eax, [esp + 0x36c]
mov dword [esp + 0x1c], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x100a883f
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop word [eax + eax]
push 1
lea eax, [esp + 0x48]
push 0x10256260
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100a8825
push 2
lea eax, [esp + 0x48]
push 0x10256264
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100a8825
test byte [esp + 0x18], 0x10
je 0x100a8825
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x100a88d4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100a87a6
lea edi, [esp + 0x158]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100a87c0
mov ax, word [0x10259e58]
lea edx, [esp + 0x260]
mov word [edi], ax
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100a87e0
lea edi, [esp + 0x158]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100a87f1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, fcn.100a88f0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [esp + 0x15c]
call fcn.100a8680
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a8740
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100a88ba
nop dword [eax]
test byte [esp + 0x18], 0x10
jne 0x100a88a3
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x264]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100a88d4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x100a8888
lea eax, [esp + 0x44]
push eax
call fcn.100a88f0
add esp, 4
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100a8860
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.100e8209
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x474]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100e8209
mov esp, ebp
pop ebp
ret