Function at 0x4a4a7c
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 0x4a4a85
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4eca
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 0x4a4edc
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 0x4a4e9f
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a4e96
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 0x4a4b36
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x12
jne 0x4a4b36
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x4a4e9f
lea eax, [ebx + 0x364]
push eax
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
jge 0x4a4e8c
lea eax, [ebp - 0x14]
mov edx, 0x4a4eec
call fcn.0040447c
lea eax, [ebp - 0x18]
mov edx, 0x4a4ef8
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 0x4a4e8c
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 0x4a4e8c
lea eax, [ebp - 0x79a]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x4a4efc
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 0x4a4c00
mov edx, eax
and edx, 1
cmp edx, 1
jne 0x4a4cbf
lea eax, [ebp - 0xabb]
call fcn.004889b8
test al, al
je 0x4a4c66
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 0x4a4c93
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 [0x4a8e5c]
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 0x4a4e8c
and eax, 0x10
cmp eax, 0x10
jne 0x4a4cfa
cmp byte [ebx + 0x384], 0
je 0x4a4e8c
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.004a4a7c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add dword [eax], edx
jmp 0x4a4e8c
cmp dword [ebp + 8], 1
jne 0x4a4d1e
mov byte [ebx + 0x36f], 1
mov word [ebx + 0x374], pe_nt_image_headers32
mov al, byte [ebx + 0x380]
mov byte [ebx + 0x376], al
jmp 0x4a4d36
mov byte [ebx + 0x36f], 2
push 0x4a9d78
call sub.kernel32.dll_lstrlenA_1
mov word [ebx + 0x374], ax
lea eax, [ebx + 0x36c]
push eax
push 0x4a9d78
lea eax, [ebp - 0xabb]
push eax
call sub.fpEncrypt.dll_EncryptionFile
mov esi, eax
test esi, esi
jne 0x4a4db2
lea eax, [ebp - 0xad0]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
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 - 0xad4]
mov eax, dword [0x4a8ad0]
call fcn.00406620
mov edx, dword [ebp - 0xad4]
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 0x4a4e6f
lea eax, [ebp - 0xabb]
call fcn.004889b8
test al, al
je 0x4a4e18
lea eax, [ebp - 0xad8]
push eax
lea eax, [ebp - 0xabb]
push eax
call sub.kernel32.dll_lstrlenA_1
sub eax, 4
push eax
lea eax, [ebp - 0xadc]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov eax, dword [ebp - 0xadc]
mov edx, 1
pop ecx
call fcn.004048f4
mov edx, dword [ebp - 0xad8]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a4e45
lea eax, [ebp - 0xae0]
lea edx, [ebp - 0xabb]
mov ecx, 0x321
call fcn.0040464c
mov edx, dword [ebp - 0xae0]
mov eax, dword [ebx + 0x30c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xae4]
push eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, esi
call fcn.00488794
mov edx, dword [ebp - 0xae4]
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 0x4a4aff
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 0x4a4ed1
lea eax, [ebp - 0xae4]
mov edx, 0xa
call fcn.00404408
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404408
ret