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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee92a
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x28c], eax
mov edi, ecx
mov dword [ebp - 0x290], edi
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x288], 0
je 0x49184a
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x2b4], 0
push 0x52b1cc
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b0], 0
movups xmmword [ebp - 0x2c4], xmm0
call fcn.0040ab20
lea esi, [ebp - 0x2c4]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x491864
push eax
lea ecx, [ebp - 0x30c]
call fcn.00423730
mov esi, eax
mov dword [ebp - 4], 1
mov eax, 2
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x491c21
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x491892
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2dc]
call fcn.0040a490
mov eax, dword [ebp - 0x284]
or eax, 4
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
jbe 0x4918d3
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x2dc]
call fcn.0040a680
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
or dword [ebp - 0x284], 8
lea ecx, [ebp - 0x2dc]
call fcn.0040a900
mov eax, dword [ebp - 0x284]
test al, 2
je 0x49194f
and eax, 0xfffffffd
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x284], eax
call fcn.0040a900
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 6
test al, 1
je 0x49196b
and eax, 0xfffffffe
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x284], eax
call fcn.0040a900
xor ecx, ecx
call fcn.00496ce0
cmp dword [ebp - 0x1c], 7
lea edx, [ebp - 0x280]
push 0
push 0
push 0
movzx ecx, al
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x4919c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x491c26
jmp 0x491bf9
mov eax, dword [ebp - 0x280]
shr eax, 4
and al, 1
mov dword [ebp - 0x14], eax
je 0x491a59
mov ecx, 0x5263c4
lea eax, [ebp - 0x254]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x491a06
test dx, dx
je 0x491a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x491a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4919e0
xor eax, eax
jmp 0x491a0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x491bd1
mov eax, 0x530d58
lea ecx, [ebp - 0x254]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x491a46
test dx, dx
je 0x491a42
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x491a46
add ecx, 4
add eax, 4
test dx, dx
jne 0x491a20
xor eax, eax
jmp 0x491a4b
sbb eax, eax
or eax, 1
test eax, eax
je 0x491bd1
cmp byte [ebp + 0x10], 0
jne 0x491aca
cmp byte [ebp + 0xc], 0
je 0x491a81
mov ecx, dword [ebp - 0x28c]
mov eax, ecx
cmp dword [ecx + 0x14], 7
jbe 0x491a6f
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x491ac0
mov eax, dword [ebp - 0x294]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x491c1c
mov eax, dword [eax]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x290]
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x288]
call edi
mov edi, dword [ebp - 0x290]
cmp byte [ebp - 0x14], 0
je 0x491bd1
cmp byte [ebp + 0xc], 0
je 0x491bd1
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x491c21
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x491af6
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2f4]
call fcn.0040a490
or dword [ebp - 0x284], 0x10
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491b21
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0040a680
mov dword [ebp - 0x29c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2ac], xmm0
mov dword [ebp - 0x298], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2ac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x29c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
or dword [ebp - 0x284], 0x20
mov edx, dword [ebp - 0x28c]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
push dword [ebp - 0x294]
call fcn.004917b0
add esp, 0x10
lea ecx, [ebp - 0x2ac]
call fcn.0040a900
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 7
call fcn.0040a900
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4919c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x491c4e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
call fcn.0040a900
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.004a5e3b
mov esp, ebp
pop ebp
ret
call fcn.004a382a
call fcn.0040a970
lea ecx, [ebp - 0x30]
push ecx
push 0x23
push str.Unable_to_enumerate_directory__
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004648a0
push 0x542628
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a869b
lea ecx, [ebp - 0x30]
push ecx
push 0x23
push str.Unable_to_enumerate_directory__
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004648a0
push 0x542628
lea eax, [ebp - 0x2a8]
push eax
call fcn.004a869b
int3