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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3d0], ebx
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404028
mov eax, dword [ebp - 0xc]
call fcn.00404028
mov eax, dword [ebp + 0xc]
call fcn.00404028
mov eax, dword [ebp + 8]
call fcn.00404028
xor eax, eax
push ebp
push 0x4a4ff2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004094f4
test al, al
jne 0x4a47e3
xor ebx, ebx
jmp 0x4a4fa5
mov ebx, 0xa
lea eax, [ebp - 0x23]
mov byte [eax], 0
inc eax
dec ebx
jne 0x4a47eb
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x4e6304]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040634e
mov eax, dword [ebp - 8]
call fcn.004094f4
test al, al
je 0x4a4830
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
jmp 0x4a4845
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.0040689c
call fcn.00402864
lea eax, [ebp - 0x2bc]
call fcn.004065c0
call fcn.00402864
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.004068bc
call fcn.00402864
cmp dword [ebp - 0xc], 0
je 0x4a49d4
mov eax, dword [ebp - 0xc]
call fcn.004094f4
test al, al
je 0x4a49d4
mov byte [ebp - 0x23], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0040960c
mov edx, dword [ebp - 0x14]
mov eax, 0x4a500c
call fcn.00404160
mov ebx, eax
test ebx, ebx
jle 0x4a48cd
lea eax, [ebp - 0x3c0]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040407c
mov edx, dword [ebp - 0x3c0]
lea eax, [ebp - 0x14]
mov ecx, 0x4a501c
call fcn.00403ec0
mov eax, dword [ebp - 0x14]
call fcn.00403e74
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a48f8
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x4a48ea
push 0
lea edx, [ebp - 0x30]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x28]
add eax, 0xe
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004d9288
mov dword [ebp - 0x28], eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc6c0]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc6c0]
call fcn.004027ac
mov eax, dword [ebp - 0x30]
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
call fcn.00409700
xor eax, eax
push ebp
push 0x4a4a05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
call fcn.004028a0
call fcn.00402864
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a4a39
lea eax, [ebp - 0x170]
push eax
push 0x4a5024
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23], 1
mov eax, dword [ebp - 4]
add eax, 0xc9d4
mov edx, dword [ebp + 0xc]
call fcn.00403c48
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403e74
push eax
mov eax, dword [ebp + 8]
call fcn.00403e74
mov edx, eax
inc edx
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.0040407c
mov eax, dword [ebp - 0x2c]
call fcn.00403e74
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xff
jle 0x4a4ad6
lea eax, [ebp - 0x3c4]
mov ecx, 0x4a5030
mov edx, dword [ebp - 0x2c]
call fcn.00403ec0
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004bc904
mov eax, dword [ebp - 0x18]
call fcn.004028a0
call fcn.00402864
xor ebx, ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x4a4fa5
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a4af6
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x4a4ae8
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x30]
add eax, 0xa
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2bc]
call fcn.004064b8
call fcn.00402864
cmp dword [ebp - 0x10], 0xffffffff
je 0x4a4f65
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0x104
call fcn.00403e24
mov eax, dword [ebp - 0x14]
mov edx, 0x4a5044
call fcn.00403f84
je 0x4a4b9f
mov eax, dword [ebp - 0x14]
mov edx, 0x4a5050
call fcn.00403f84
jne 0x4a4bb3
cmp byte [ebp - 0x19], 0
jne 0x4a4ba9
xor eax, eax
jmp 0x4a4bab
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4a4f45
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x170], 0x10
jne 0x4a4c3e
mov eax, dword [ebp + 0xc]
call fcn.00403e74
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x4a4c0d
push dword [ebp + 0xc]
push 0x4a505c
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c8]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x3c8]
push eax
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a4764
add dword [ebp - 0x30], eax
jmp 0x4a4f45
lea eax, [ebp - 0x3cc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00403ec0
mov eax, dword [ebp - 0x3cc]
push eax
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a4764
add dword [ebp - 0x30], eax
jmp 0x4a4f45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc9d4]
mov edx, dword [ebp + 0xc]
call fcn.00403f84
je 0x4a4d8b
mov eax, dword [ebp - 4]
add eax, 0xc9d4
mov edx, dword [ebp + 0xc]
call fcn.00403c48
mov byte [ebp - 0x23], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403e74
push eax
mov eax, dword [ebp + 8]
call fcn.00403e74
mov edx, eax
inc edx
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.0040407c
mov eax, dword [ebp - 0x2c]
call fcn.00403e74
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a4cb5
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x4a4ca7
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040634e
mov eax, dword [ebp - 8]
call fcn.004094f4
test al, al
je 0x4a4ce6
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
jmp 0x4a4cfb
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.0040689c
call fcn.00402864
lea eax, [ebp - 0x2bc]
call fcn.004065c0
call fcn.00402864
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x30]
add eax, 0xa
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2bc]
call fcn.004064b8
call fcn.00402864
mov byte [ebp - 0x23], 2
mov eax, dword [ebp - 0x14]
call fcn.00403e74
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a4dba
mov ebx, 1
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov byte [edx], cl
inc ebx
inc edx
dec eax
jne 0x4a4dac
mov eax, dword [0x4e6304]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040634e
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
lea eax, [ebp - 0x2bc]
call fcn.004065c0
call fcn.00402864
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x30]
add eax, 0xa
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2bc]
call fcn.0040657c
call fcn.00402864
mov ebx, eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
lea eax, [ebp - 0x2bc]
call fcn.004064b8
call fcn.00402864
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0x4a505c
push dword [ebp - 0x14]
lea eax, [ebp - 0x3d0]
mov edx, 3
call fcn.00403f34
mov edx, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d8fe0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040634e
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
mov edx, ebx
lea eax, [ebp - 0x2bc]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
lea eax, [ebp - 0x2bc]
call fcn.004064b8
call fcn.00402864
mov eax, dword [ebp - 0x30]
add eax, 4
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x4a4b6e
jmp 0x4a4f77
mov eax, dword [ebp - 0x18]
call fcn.004028a0
call fcn.00402864
mov ebx, dword [ebp - 0x30]
jmp 0x4a4fa5
cmp byte [ebp - 0x19], 0
je 0x4a4f8c
mov eax, 0x4a5050
call fcn.004028a0
call fcn.00402864
mov eax, dword [ebp - 0x18]
call fcn.004028a0
call fcn.00402864
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4ff9
lea eax, [ebp - 0x3d0]
mov edx, 5
call fcn.00403c18
lea eax, [ebp - 0x2c]
call fcn.00403bf4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403c18
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c18
lea eax, [ebp + 8]
mov edx, 2
call fcn.00403c18
ret