Function at 0x4a449c
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 0x4a4cfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004094f4
test al, al
jne 0x4a451b
xor ebx, ebx
jmp 0x4a4cb0
mov ebx, 0xa
lea eax, [ebp - 0x23]
mov byte [eax], 0
inc eax
dec ebx
jne 0x4a4523
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x4e1304]
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 0x4a4568
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
jmp 0x4a457d
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 0x4a46fc
mov byte [ebp - 0x23], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0040960c
mov edx, dword [ebp - 0x14]
mov eax, 0x4a4d18
call fcn.00404160
mov ebx, eax
test ebx, ebx
jle 0x4a45f5
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, 0x4a4d28
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 0x4a4620
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 0x4a4612
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.004d5ac8
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 + 0xa6fc]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa6fc]
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 0x4a472d
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 0x4a4761
lea eax, [ebp - 0x170]
push eax
push 0x4a4d30
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23], 1
mov eax, dword [ebp - 4]
add eax, 0xaa10
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 0x4a47e1
lea eax, [ebp - 0x3c4]
mov ecx, 0x4a4d3c
mov edx, dword [ebp - 0x2c]
call fcn.00403ec0
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004bb764
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4a4801
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 0x4a47f3
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 0x4a4c70
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0x104
call fcn.00403e24
mov eax, dword [ebp - 0x14]
mov edx, 0x4a4d50
call fcn.00403f84
je 0x4a48aa
mov eax, dword [ebp - 0x14]
mov edx, 0x4a4d5c
call fcn.00403f84
jne 0x4a48be
cmp byte [ebp - 0x19], 0
jne 0x4a48b4
xor eax, eax
jmp 0x4a48b6
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4a4c50
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x170], 0x10
jne 0x4a4949
mov eax, dword [ebp + 0xc]
call fcn.00403e74
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x4a4918
push dword [ebp + 0xc]
push 0x4a4d68
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.004a449c
add dword [ebp - 0x30], eax
jmp 0x4a4c50
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.004a449c
add dword [ebp - 0x30], eax
jmp 0x4a4c50
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xaa10]
mov edx, dword [ebp + 0xc]
call fcn.00403f84
je 0x4a4a96
mov eax, dword [ebp - 4]
add eax, 0xaa10
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 0x4a49c0
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 0x4a49b2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040634e
mov eax, dword [ebp - 8]
call fcn.004094f4
test al, al
je 0x4a49f1
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.00406885
call fcn.00402864
jmp 0x4a4a06
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 0x4a4ac5
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 0x4a4ab7
mov eax, dword [0x4e1304]
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 0x4a4d68
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.004d5820
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 0x4a4879
jmp 0x4a4c82
mov eax, dword [ebp - 0x18]
call fcn.004028a0
call fcn.00402864
mov ebx, dword [ebp - 0x30]
jmp 0x4a4cb0
cmp byte [ebp - 0x19], 0
je 0x4a4c97
mov eax, 0x4a4d5c
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 0x4a4d04
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