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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.122cba70
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, 0x1f4
sub ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x122ac78c
mov eax, 1
jmp 0x122ac96f
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
and edx, 0x10
test edx, edx
je 0x122ac90b
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x2c]
cmp ecx, 0x2e
jne 0x122ac7f6
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + 0x2d]
cmp eax, 0x2e
jne 0x122ac7e4
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + 0x2e]
test edx, edx
jne 0x122ac7e4
mov dword [ebp - 0x1c], 0
jmp 0x122ac7f6
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + 0x2d]
test ecx, ecx
jne 0x122ac7f6
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x122ac909
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 0xc]
add edx, 0x2c
push edx
call fcn.122cba70
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 1
cmp dword [ebp - 0x14], eax
jb 0x122ac909
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx - 1], 0
mov dword [ebp - 0x18], 0x10002
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
add eax, 0x2c
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.122cc010
add esp, 8
push 0x1239c104
mov edx, dword [ebp + 8]
push edx
call fcn.122cc010
add esp, 8
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.122ac748
add esp, 0x10
mov dword [ebp - 8], eax
push 0x104
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
call fcn.122ca640
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax - 1]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x2c
push eax
call fcn.122cbc30
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx - 1], 0
mov dword [ebp - 0x18], 0x20002
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov byte [eax - 1], 0x2a
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx], 0
jmp 0x122ac93f
mov dword [ebp - 0x18], 1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov byte [edx - 1], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x2c
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx - 1], 0x2a
cmp dword [ebp - 8], 0
jne 0x122ac947
jmp 0x122ac962
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x122ac7a1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret