Function at 0x4be0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ec79
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x84], 0
mov eax, dword [eax + 0x538]
add eax, 0x50
push eax
call fcn.00408180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 5
xor eax, eax
mov dword [ebp - 0x44], 0
push str.Video
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00408270
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004ece40
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0xf
push str.CategoryFolders
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov ecx, 2
call fcn.004ebb30
add esp, 0x18
cmp eax, 2
jl 0x4be1a2
push 0
push 0x559640
lea ecx, [ebp - 0x44]
call fcn.00408270
mov edx, dword [ebp - 0x4c]
mov eax, bind
mov esi, dword [ebp - 0x34]
sub eax, edx
cmp eax, esi
jb 0x4be93b
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push esi
cmovae ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xe0]
call fcn.004097f0
mov byte [ebp - 4], 3
lea edx, [ebp - 0xe0]
cmp dword [ebp - 0x34], 0
mov ecx, 0x560568
mov eax, 0x559640
cmovne eax, ecx
lea ecx, [ebp - 0x2c]
push eax
call fcn.004175c0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xcc]
cmp ecx, 8
jb 0x4be24e
mov edx, dword [ebp - 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be244
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be940
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
cmp dword [ebp - 0x18], 8
mov word [ebp - 0xe0], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0xcc], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4be286
test al, 0x10
jne 0x4be28e
lea ecx, [ebp - 0x2c]
call fcn.00408b60
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov edi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00408180
mov dl, 1
lea ecx, [ebp - 0xc8]
call fcn.00415ac0
add esp, 0x18
mov esi, eax
push 0x12
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 6
push eax
call fcn.004c3170
push esi
push eax
push dword [ebp - 0x8c]
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00409d30
mov esi, dword [ebp - 0x88]
mov ecx, esi
call fcn.004c2e90
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x90]
cmp ecx, 0x10
jb 0x4be323
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4be319
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be945
push ecx
push edx
call fcn.00517162
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp ecx, 0x10
jb 0x4be37c
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4be372
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be945
push ecx
push edx
call fcn.00517162
add esp, 8
lea edi, [esi + 0xf8]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x84], edi
push eax
mov ecx, edi
call fcn.004c5390
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push ecx
mov ecx, eax
call fcn.00417ff0
mov dword [ebp - 0xa4], 0
xor ecx, ecx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x94], xmm0
mov word [eax], cx
lea ecx, [ebp - 0xa4]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov eax, 0x1e
mov dword [ebp - 0x80], eax
call fcn.004102e0
mov ecx, dword [ebp - 0x90]
mov byte [ebp - 0x75], al
cmp ecx, 8
jb 0x4be44f
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be445
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be94a
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp ecx, 8
jb 0x4be4b0
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be4a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be94a
push ecx
push edx
call fcn.00517162
add esp, 8
cmp byte [ebp - 0x75], 0
je 0x4be5d6
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.00408180
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, edi
push esp
call fcn.004c5390
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00416760
mov edi, eax
add esi, 0x3bc
add esp, 0x30
cmp esi, edi
je 0x4be522
mov ecx, esi
call fcn.00408210
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ecx, dword [ebp - 0xb4]
cmp ecx, 8
jb 0x4be562
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be558
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be94f
push ecx
push edx
call fcn.00517162
add esp, 8
sub esp, 0x18
mov edi, esp
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00408180
mov dl, 1
lea ecx, [ebp - 0xa4]
call fcn.00415ac0
add esp, 0x18
mov esi, eax
push 1
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xa
push eax
call fcn.004c3170
push esi
push eax
push dword [ebp - 0x8c]
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00409d30
mov ecx, dword [ebp - 0x88]
mov eax, 0x3e
mov dword [ebp - 0x80], eax
call fcn.004c2e90
lea ecx, [ebp - 0xc8]
call fcn.004028f0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.004028f0
push 0xe0
call fcn.00517390
mov edi, eax
mov dword [ebp - 0x7c], edi
push 0xe0
push 0
push edi
mov byte [ebp - 4], 0xc
call fcn.00519680
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0xa4]
add esp, 0x10
push eax
call fcn.004c5390
mov byte [ebp - 4], 0xd
sub esp, 0x18
mov ecx, dword [ebp - 0x80]
mov esi, esp
or ecx, 1
mov dword [ebp - 0xac], esi
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], esp
push dword [ebp - 0x1c]
push ecx
push ecx
mov ecx, eax
call fcn.00417ff0
mov dword [esi], 0
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x80]
or eax, 0x40
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
sub esp, 0x18
mov dword [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0xac], esp
lea edx, [ebp - 0x74]
push 0x5604ec
call fcn.00409730
sub esp, 0x14
mov byte [ebp - 4], 0xf
mov ecx, esp
lea edx, [ebp - 0x74]
push 0x5604d4
call fcn.00409730
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, edi
push dword [ebp - 0x88]
call fcn.004dd810
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x80]
test al, 1
je 0x4be749
mov ecx, dword [ebp - 0x90]
cmp ecx, 8
jb 0x4be72c
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be954
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov edi, dword [ebp - 0x88]
mov eax, dword [edi + 0x5ac]
mov esi, dword [edi + 0x5a8]
mov dword [ebp - 0x84], eax
cmp esi, eax
je 0x4be77e
mov ecx, dword [esi]
test ecx, ecx
je 0x4be777
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x84]
add esi, 4
cmp esi, eax
jne 0x4be765
mov eax, dword [edi + 0x5a8]
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0xa8]
mov ecx, esi
mov dword [edi + 0x5ac], eax
call fcn.004ddae0
mov cl, al
mov dword [ebp - 4], 5
mov byte [ebp - 0x75], cl
test cl, cl
je 0x4be7e1
sub esp, 0x18
mov eax, esp
push 0x11
push eax
call fcn.004c3170
mov ecx, edi
call fcn.004c2e90
jmp 0x4be808
lea eax, [esi + 0x40]
lea ecx, [edi + 0x540]
cmp ecx, eax
je 0x4be801
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4be7f8
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00408270
mov ecx, edi
call fcn.004c2f50
test esi, esi
je 0x4be814
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4be84e
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be844
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be959
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x4be89c
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be892
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be959
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x4be8e6
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be8dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be959
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 8
jb 0x4be91c
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4be912
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be959
push ecx
push edx
call fcn.00517162
add esp, 8
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
call fcn.00401640
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
call fcn.0051eb64
int3