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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10227800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x140
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x450]
push 0
push eax
mov dword [ebp - 0x45c], edi
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x100af1dd
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100af26e
mov esi, dword [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov ecx, esi
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100af080
lea eax, [ebp - 0x450]
mov dword [esi], 0x2a2e2a
push eax
lea eax, [ebp - 0x310]
mov dword [ebp - 0x450], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x460], esi
cmp esi, 0xffffffff
je 0x100af1d6
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
nop dword [eax + eax]
push 1
lea eax, [ebp - 0x424]
push 0x10172938
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100af1ba
push 2
lea eax, [ebp - 0x424]
push 0x10172c2c
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100af1ba
test byte [ebp - 0x450], 0x10
je 0x100af1ba
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x100af26e
mov edx, dword [ebp - 0x454]
lea ecx, [ebp - 0x424]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100af141
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100af156
mov ax, word [0x10172c30]
lea edx, [ebp - 0x20c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100af171
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100af181
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
push dword [ebp - 0x458]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.100af000
mov edi, dword [ebp - 0x45c]
add esp, 0xc
mov esi, dword [ebp - 0x460]
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100af0d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100af258
test byte [ebp - 0x450], 0x10
jne 0x100af23f
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100af26e
mov edx, dword [ebp - 0x454]
lea ecx, [ebp - 0x424]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x100af221
lea eax, [ebp - 0x424]
push eax
call dword [ebp - 0x458]
add esp, 4
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100af1f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f54de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f54de
mov esp, ebp
pop ebp
ret