Function at 0x466e10
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf3ef
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2a4], esi
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x29c]
xor eax, eax
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0x288], 7
push eax
mov dword [ebp - 0x284], 1
call fcn.00414c10
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x466ea2
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x29c]
push eax
call fcn.00414dc0
push 0x5c
lea ecx, [ebp - 0x29c]
call fcn.00417aa0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x466ec8
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x29c]
push eax
call fcn.00414dc0
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, 2
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x288]
cmp edx, 8
jb 0x466f57
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466f4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4672e5
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x27c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x466fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x4672ea
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x466fc9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467315
push edx
push ecx
call fcn.00479e95
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x27c]
shr eax, 4
and al, 1
mov dword [ebp - 0x284], eax
je 0x46707d
mov ecx, 0x4e7ea4
lea eax, [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46702c
test dx, dx
je 0x467028
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46702c
add eax, 4
add ecx, 4
test dx, dx
jne 0x467006
xor eax, eax
jmp 0x467031
sbb eax, eax
or eax, 1
test eax, eax
je 0x46726c
mov ecx, 0x4eca28
lea eax, [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46706a
test dx, dx
je 0x467066
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46706a
add eax, 4
add ecx, 4
test dx, dx
jne 0x467044
xor eax, eax
jmp 0x46706f
sbb eax, eax
or eax, 1
test eax, eax
je 0x46726c
cmp byte [ebp + 0x10], 0
jne 0x46709b
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4672e0
mov eax, dword [ecx]
lea edx, [ebp - 0x27c]
push edx
push edi
call dword [eax + 8]
cmp byte [ebp - 0x284], 0
je 0x46726c
cmp byte [ebp + 0xc], 0
je 0x46726c
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2bc]
xor eax, eax
mov dword [ebp - 0x2ac], 0
mov word [ebp - 0x2bc], ax
mov eax, dword [ebp - 0x280]
or eax, 4
mov dword [ebp - 0x2a8], 7
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], eax
mov eax, dword [edi + 0x10]
inc eax
push eax
call fcn.00414c10
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x467102
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.00414dc0
push 0x5c
lea ecx, [ebp - 0x2bc]
call fcn.00417aa0
lea ecx, [ebp - 0x250]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x467127
sub ecx, edx
lea eax, [ebp - 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00414dc0
mov dword [ebp - 0x28c], 0
xor ecx, ecx
mov dword [ebp - 0x288], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x29c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x280]
or eax, 8
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x284], eax
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x29c]
push dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [ebp - 0x2a0]
call fcn.00466e10
mov byte [ebp - 4], 4
add esp, 0xc
mov edx, dword [ebp - 0x288]
cmp edx, 8
jb 0x467204
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4671fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4672e5
push edx
push ecx
call fcn.00479e95
add esp, 8
and dword [ebp - 0x280], 0xfffffffb
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
cmp edx, 8
jb 0x46726c
mov ecx, dword [ebp - 0x2bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467262
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4672e5
push edx
push ecx
call fcn.00479e95
add esp, 8
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x466fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x4672a0
lea ecx, [ebp - 0x28]
call fcn.00414fe0
push eax
push str.Unable_to_enumerate_directory__ls_
push edi
jmp 0x4672f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x466fc9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467315
jmp 0x466fbf
call fcn.004764a5
call fcn.0049b19a
lea ecx, [ebp - 0x28]
call fcn.00414fe0
push eax
push str.Unable_to_enumerate_directory__ls_
push esi
lea ecx, [ebp - 0x298]
call fcn.0042a730
push 0x50271c
lea eax, [ebp - 0x298]
push eax
call fcn.00491d27
call fcn.0049b19a
int3