Function at 0x4f27f4
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.00404100
mov eax, dword [ebp - 0xc]
call fcn.00404100
mov eax, dword [ebp + 0xc]
call fcn.00404100
mov eax, dword [ebp + 8]
call fcn.00404100
xor eax, eax
push ebp
push 0x4f3082
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409718
test al, al
jne 0x4f2873
xor ebx, ebx
jmp 0x4f3035
mov ebx, 0xa
lea eax, [ebp - 0x23]
mov byte [eax], 0
inc eax
dec ebx
jne 0x4f287b
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [0x50b4bc]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040649a
mov eax, dword [ebp - 8]
call fcn.00409718
test al, al
je 0x4f28c0
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069d1
call fcn.00402874
jmp 0x4f28d5
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069e8
call fcn.00402874
lea eax, [ebp - 0x2bc]
call fcn.0040670c
call fcn.00402874
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.00406a08
call fcn.00402874
cmp dword [ebp - 0xc], 0
je 0x4f2a64
mov eax, dword [ebp - 0xc]
call fcn.00409718
test al, al
je 0x4f2a64
mov byte [ebp - 0x23], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409830
mov edx, dword [ebp - 0x14]
mov eax, 0x4f309c
call fcn.00404238
mov ebx, eax
test ebx, ebx
jle 0x4f295d
lea eax, [ebp - 0x3c0]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404154
mov edx, dword [ebp - 0x3c0]
lea eax, [ebp - 0x14]
mov ecx, 0x4f30ac
call fcn.00403f98
mov eax, dword [ebp - 0x14]
call fcn.00403f4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4f2988
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 0x4f297a
push 0
lea edx, [ebp - 0x30]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
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.005070b4
mov dword [ebp - 0x28], eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14508]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14508]
call fcn.004027bc
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.00409990
xor eax, eax
push ebp
push 0x4f2a95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
call fcn.004028b0
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f2ac9
lea eax, [ebp - 0x170]
push eax
push 0x4f30b4
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23], 1
mov eax, dword [ebp - 4]
add eax, 0x1480c
mov edx, dword [ebp + 0xc]
call fcn.00403d20
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403f4c
push eax
mov eax, dword [ebp + 8]
call fcn.00403f4c
mov edx, eax
inc edx
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.00404154
mov eax, dword [ebp - 0x2c]
call fcn.00403f4c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xff
jle 0x4f2b66
lea eax, [ebp - 0x3c4]
mov ecx, 0x4f30c0
mov edx, dword [ebp - 0x2c]
call fcn.00403f98
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004d52fc
mov eax, dword [ebp - 0x18]
call fcn.004028b0
call fcn.00402874
xor ebx, ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x4f3035
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4f2b86
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 0x4f2b78
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
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.00406604
call fcn.00402874
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f2ff5
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x144]
mov ecx, 0x104
call fcn.00403efc
mov eax, dword [ebp - 0x14]
mov edx, 0x4f30d4
call fcn.0040405c
je 0x4f2c2f
mov eax, dword [ebp - 0x14]
mov edx, 0x4f30e0
call fcn.0040405c
jne 0x4f2c43
cmp byte [ebp - 0x19], 0
jne 0x4f2c39
xor eax, eax
jmp 0x4f2c3b
mov al, 1
mov byte [ebp - 0x19], al
jmp 0x4f2fd5
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x170], 0x10
jne 0x4f2cce
mov eax, dword [ebp + 0xc]
call fcn.00403f4c
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x5c
je 0x4f2c9d
push dword [ebp + 0xc]
push 0x4f30ec
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c8]
mov edx, 3
call fcn.0040400c
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.004f27f4
add dword [ebp - 0x30], eax
jmp 0x4f2fd5
lea eax, [ebp - 0x3cc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00403f98
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.004f27f4
add dword [ebp - 0x30], eax
jmp 0x4f2fd5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1480c]
mov edx, dword [ebp + 0xc]
call fcn.0040405c
je 0x4f2e1b
mov eax, dword [ebp - 4]
add eax, 0x1480c
mov edx, dword [ebp + 0xc]
call fcn.00403d20
mov byte [ebp - 0x23], 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403f4c
push eax
mov eax, dword [ebp + 8]
call fcn.00403f4c
mov edx, eax
inc edx
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.00404154
mov eax, dword [ebp - 0x2c]
call fcn.00403f4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4f2d45
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 0x4f2d37
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040649a
mov eax, dword [ebp - 8]
call fcn.00409718
test al, al
je 0x4f2d76
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069d1
call fcn.00402874
jmp 0x4f2d8b
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069e8
call fcn.00402874
lea eax, [ebp - 0x2bc]
call fcn.0040670c
call fcn.00402874
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
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.00406604
call fcn.00402874
mov byte [ebp - 0x23], 2
mov eax, dword [ebp - 0x14]
call fcn.00403f4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x4f2e4a
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 0x4f2e3c
mov eax, dword [0x50b4bc]
mov byte [eax], 2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040649a
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069d1
call fcn.00402874
lea eax, [ebp - 0x2bc]
call fcn.0040670c
call fcn.00402874
mov edx, eax
lea eax, [ebp - 0x2bc]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x23]
mov ecx, 0xa
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
push 0
lea edx, [ebp - 0x3bb]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
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.004066c8
call fcn.00402874
mov ebx, eax
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
lea eax, [ebp - 0x2bc]
call fcn.00406604
call fcn.00402874
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0x4f30ec
push dword [ebp - 0x14]
lea eax, [ebp - 0x3d0]
mov edx, 3
call fcn.0040400c
mov edx, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00506e0c
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2bc]
call fcn.0040649a
mov edx, 1
lea eax, [ebp - 0x2bc]
call fcn.004069d1
call fcn.00402874
mov edx, ebx
lea eax, [ebp - 0x2bc]
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x28]
mov ecx, 4
lea eax, [ebp - 0x2bc]
call fcn.004065a0
call fcn.00402874
lea eax, [ebp - 0x2bc]
call fcn.00406604
call fcn.00402874
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 0x4f2bfe
jmp 0x4f3007
mov eax, dword [ebp - 0x18]
call fcn.004028b0
call fcn.00402874
mov ebx, dword [ebp - 0x30]
jmp 0x4f3035
cmp byte [ebp - 0x19], 0
je 0x4f301c
mov eax, 0x4f30e0
call fcn.004028b0
call fcn.00402874
mov eax, dword [ebp - 0x18]
call fcn.004028b0
call fcn.00402874
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 0x4f3089
lea eax, [ebp - 0x3d0]
mov edx, 5
call fcn.00403cf0
lea eax, [ebp - 0x2c]
call fcn.00403ccc
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403cf0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403cf0
lea eax, [ebp + 8]
mov edx, 2
call fcn.00403cf0
ret