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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x1022a800]
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 0x100af50d
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100af59e
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 0x100af3b0
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 0x100af506
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 0x101759c8
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100af4ea
push 2
lea eax, [ebp - 0x424]
push 0x10175cbc
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x100af4ea
test byte [ebp - 0x450], 0x10
je 0x100af4ea
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 0x100af59e
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 0x100af471
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100af486
mov ax, word [0x10175cc0]
lea edx, [ebp - 0x20c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100af4a1
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100af4b1
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.100af330
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 0x100af400
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 0x100af588
test byte [ebp - 0x450], 0x10
jne 0x100af56f
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call ebx
test eax, eax
je 0x100af59e
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 0x100af551
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 0x100af522
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.100f7dfb
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.100f7dfb
mov esp, ebp
pop ebp
ret