Function at 0x4a4f00
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x15c
push 0
push 0
dec ecx
jne 0x4a4f09
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a534d
push dword fs:[eax]
mov dword fs:[eax], esp
push edx
lea eax, [ebp - 0x479]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x479]
push eax
lea eax, [ebp - 0x79a]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4a535c
lea eax, [ebp - 0x479]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x479]
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a5322
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a5319
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4a4fbb
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x12
jne 0x4a4fbb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x4a5322
lea eax, [ebx + 0x364]
push eax
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x4a530f
lea eax, [ebp - 0x14]
mov edx, 0x4a536c
call fcn.0040447c
lea eax, [ebp - 0x18]
mov edx, 0x4a5378
call fcn.0040447c
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404894
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
je 0x4a530f
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404894
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
je 0x4a530f
lea eax, [ebp - 0x79a]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4a537c
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edx, eax
and edx, 4
cmp edx, 4
je 0x4a5085
mov edx, eax
and edx, 1
cmp edx, 1
jne 0x4a5144
lea eax, [ebp - 0xabb]
call fcn.004889b8
test al, al
je 0x4a50eb
lea eax, [ebp - 0xac0]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrlenA_1
sub eax, 4
push eax
lea eax, [ebp - 0xac4]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov eax, dword [ebp - 0xac4]
mov edx, 1
pop ecx
call fcn.004048f4
mov edx, dword [ebp - 0xac0]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a5118
lea eax, [ebp - 0xac8]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov edx, dword [ebp - 0xac8]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0xacc]
mov eax, dword [0x4a8de0]
call fcn.00406620
mov edx, dword [ebp - 0xacc]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a530f
and eax, 0x10
cmp eax, 0x10
jne 0x4a517f
cmp byte [ebx + 0x384], 0
je 0x4a530f
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xabb]
mov eax, ebx
call fcn.004a4f00
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add dword [eax], edx
jmp 0x4a530f
mov eax, dword [ebp + 8]
mov dword [ebx + 0x37c], eax
lea eax, [ebx + 0x37c]
push eax
push 0x4a9d78
lea eax, [ebp - 0xabb]
push eax
push 0
call sub.fpEncrypt.dll_UncryptionFile
mov esi, eax
test esi, esi
jne 0x4a5232
lea eax, [ebp - 0xad0]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrlenA_1
sub eax, 4
push eax
lea eax, [ebp - 0xad4]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov eax, dword [ebp - 0xad4]
mov edx, 1
pop ecx
call fcn.004048f4
mov edx, dword [ebp - 0xad0]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0xad8]
mov eax, dword [0x4a8afc]
call fcn.00406620
mov edx, dword [ebp - 0xad8]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
inc dword [eax]
jmp 0x4a52f2
lea eax, [ebp - 0xabb]
call fcn.004889b8
test al, al
je 0x4a5298
lea eax, [ebp - 0xadc]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrlenA_1
sub eax, 4
push eax
lea eax, [ebp - 0xae0]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov eax, dword [ebp - 0xae0]
mov edx, 1
pop ecx
call fcn.004048f4
mov edx, dword [ebp - 0xadc]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a52c5
lea eax, [ebp - 0xae4]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov edx, dword [ebp - 0xae4]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xae8]
push eax
mov ecx, dword [ebp + 8]
mov edx, 1
mov eax, esi
call fcn.00488794
mov edx, dword [ebp - 0xae8]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, dword [ebx + 0x30c]
mov eax, dword [esi + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 7
mov eax, esi
call fcn.0043513c
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4a4f84
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5354
lea eax, [ebp - 0xae8]
mov edx, 0xb
call fcn.00404408
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404408
ret