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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x36
push 0
push 0
dec ecx
jne 0x52ae9d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x52b3f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, esi
call fcn.004041b8
mov ecx, eax
mov edx, esi
mov eax, 0x52b40c
call fcn.0040d184
test al, al
jne 0x52aefb
lea eax, [ebp - 8]
mov ecx, 0x52b40c
mov edx, esi
call fcn.00404204
jmp 0x52af05
lea eax, [ebp - 8]
mov edx, esi
call fcn.00403fd0
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x17c]
mov ecx, edi
mov edx, dword [ebp - 8]
call fcn.00404204
mov eax, dword [ebp - 0x17c]
call fcn.0040437c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x52b3c0
xor eax, eax
push ebp
push 0x52b3b9
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x52b38d
cmp byte [0x566e48], 0
jne 0x52b3a2
mov eax, dword [0x567568]
mov eax, dword [eax]
call fcn.0045184c
test dword [ebp - 0x178], 0x10
jbe 0x52b019
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov eax, dword [ebp - 0x180]
mov edx, 0x52b418
call fcn.004042c8
je 0x52b36d
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov eax, dword [ebp - 0x184]
mov edx, 0x52b424
call fcn.004042c8
je 0x52b36d
cmp byte [ebp + 8], 0
je 0x52b36d
push 1
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x188]
mov edx, dword [ebp - 8]
call fcn.00404204
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.0052ae94
jmp 0x52b36d
mov eax, dword [0x5677f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2dc]
mov eax, dword [eax + 0x1f0]
xor edx, edx
call fcn.004601f4
push eax
lea eax, [ebp - 0x194]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov ecx, dword [ebp - 0x194]
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 8]
call fcn.00404204
mov edx, dword [ebp - 0x190]
pop eax
call fcn.0046016c
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 8]
call fcn.004097e8
mov edx, dword [ebp - 0x198]
mov eax, 0x52b430
call fcn.0040d240
test eax, eax
jle 0x52b36d
lea eax, [ebp - 0x1a0]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov eax, dword [ebp - 0x1a0]
lea edx, [ebp - 0x19c]
call fcn.004097e8
mov eax, dword [ebp - 0x19c]
mov edx, 0x52b44c
call fcn.004042c8
jne 0x52b36d
mov dl, 1
mov eax, dword [0x4106ec]
call fcn.00403168
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x52b35f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a8]
lea edx, [ebp - 0x14c]
mov ecx, 0x104
call fcn.00404168
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 8]
call fcn.00404204
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x58]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
jmp 0x52b334
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b460
call fcn.0040d240
add eax, 6
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004041b8
mov ecx, eax
mov eax, dword [ebp - 0x2c]
pop edx
call fcn.004043c0
lea eax, [ebp - 0x38]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b470
call fcn.0040d240
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.004043c0
mov al, byte [0x52b474]
push eax
lea eax, [ebp - 0x1ac]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
call fcn.0040d930
mov edx, dword [ebp - 0x1ac]
lea eax, [ebp - 0x2c]
call fcn.00403fd0
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b480
call fcn.0040d240
test eax, eax
jle 0x52b334
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b480
call fcn.0040d240
add eax, 8
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004041b8
mov ecx, eax
mov eax, dword [ebp - 0x2c]
pop edx
call fcn.004043c0
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b470
call fcn.0040d240
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.004043c0
mov al, byte [0x52b474]
push eax
lea eax, [ebp - 0x1b0]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
call fcn.0040d930
mov edx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x2c]
call fcn.00403fd0
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b494
call fcn.0040d240
test eax, eax
jle 0x52b334
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b494
call fcn.0040d240
add eax, 0xd
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004041b8
mov ecx, eax
mov eax, dword [ebp - 0x2c]
pop edx
call fcn.004043c0
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b470
call fcn.0040d240
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.004043c0
mov al, byte [0x52b474]
push eax
lea eax, [ebp - 0x1b4]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.0040d930
mov edx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x2c]
call fcn.00403fd0
push dword [ebp - 8]
push 0x52b4ac
push dword [ebp - 0x38]
push 0x52b4c0
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404278
mov eax, dword [ebp - 0x30]
call fcn.0047ee4c
test al, al
je 0x52b334
mov eax, dword [ebp - 0x30]
call fcn.00409ca4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52b2f4
mov eax, ebx
call fcn.0040a2a0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x34]
call fcn.0040be28
push dword [ebp - 0x24]
push 0x52b4d0
push dword [ebp - 0x30]
push 0x52b4e4
push dword [ebp - 0x34]
push 0x52b4e4
push dword [ebp - 0x28]
push 0x52b4f0
lea eax, [ebp - 0x1b8]
mov edx, 8
call fcn.00404278
mov edx, dword [ebp - 0x1b8]
mov eax, dword [0x569b94]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x2c]
mov eax, 0x52b460
call fcn.0040d240
test eax, eax
jg 0x52b132
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b366
mov eax, dword [ebp - 0x20]
call fcn.00403198
ret
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x52b38d
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x12
jne 0x52b38d
mov bl, 1
test bl, bl
je 0x52af4d
cmp byte [0x566e48], 0
jne 0x52af4d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b3c0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b3fa
lea eax, [ebp - 0x1b8]
mov edx, 0x10
call fcn.00403f5c
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.00403f38
ret