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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf8ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x10], ebx
je 0x5afccc
lea esi, [ebp - 0x6c]
call fcn.005af090
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x10]
mov esi, 0x10
mov ebx, 1
mov dword [ebp - 0x34], ebx
cmp dword [eax + 0x14], esi
jb 0x5afb77
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [edi + 0x10]
push eax
push 0
mov ecx, edi
call fcn.00404a60
test eax, eax
jne 0x5afbc2
lea ecx, [ebp - 0x50]
push ecx
call fcn.005af0c0
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x10]
mov ebx, 3
mov dword [ebp - 0x34], ebx
cmp dword [eax + 0x14], esi
jb 0x5afbab
mov eax, dword [eax]
mov edx, dword [edi + 0x10]
push ecx
push eax
push edx
push 0
mov ecx, edi
call fcn.00404a60
mov byte [ebp + 0xb], 1
test eax, eax
jne 0x5afbc6
mov byte [ebp + 0xb], 0
mov esi, 0xf
test bl, 2
je 0x5afbf3
and ebx, 0xfffffffd
cmp dword [ebp - 0x3c], 0x10
jb 0x5afbe5
mov eax, dword [ebp - 0x50]
push eax
call fcn.0052d217
add esp, 4
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x5afc11
cmp dword [ebp - 0x58], 0x10
jb 0x5afc11
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0052d217
add esp, 4
cmp byte [ebp + 0xb], 0
je 0x5afc56
lea edx, [ebp - 0x6c]
push edx
call fcn.005af0c0
add esp, 4
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.005afb20
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x58], 0x10
mov bl, al
jb 0x5afc4e
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0052d217
add esp, 4
test bl, bl
jne 0x5afdf3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 3
call fcn.004018d0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00405380
add esp, 4
push 3
push 0x63a148
lea ecx, [ebp - 0x30]
call fcn.00419290
mov eax, dword [ebp - 0x30]
mov ebx, 0x10
cmp dword [ebp - 0x1c], ebx
jae 0x5afca3
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
jne 0x5afce1
cmp dword [ebp - 0x1c], ebx
jb 0x5afccc
mov eax, dword [ebp - 0x30]
push eax
call fcn.0052d217
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [ebp - 0x1ac], bl
jne 0x5afd72
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x30]
call fcn.004018d0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5afd3f
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
lea ecx, [eax - 1]
mov eax, esi
cmp edx, ebx
jae 0x5afd13
lea eax, [ebp - 0x30]
mov al, byte [eax + ecx]
cmp al, 0x5c
je 0x5afd1e
cmp al, 0x2f
jne 0x5afd35
mov eax, esi
cmp edx, ebx
jae 0x5afd27
lea eax, [ebp - 0x30]
push ecx
push eax
call fcn.0052ecb7
add esp, 8
test eax, eax
je 0x5afd3f
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00401520
lea eax, [ebp - 0x180]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5afd48
sub eax, edx
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00419290
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.005aeed0
mov esi, dword [ebp + 8]
jmp 0x5afdc5
cmp byte [ebp - 0x180], 0x2e
je 0x5afdc5
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x30]
call fcn.004018d0
lea eax, [ebp - 0x30]
push eax
call fcn.00405380
lea eax, [ebp - 0x180]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5afda0
sub eax, edx
push eax
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00419290
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push edx
call fcn.005afb20
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5afce1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1c], ebx
jb 0x5afdf3
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0052d217
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4