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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x552064]
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
cmp byte [0x5645b1], 0
mov esi, dword [ebp + 8]
je 0x43fa8e
xor ecx, ecx
call fcn.00492360
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43faf6
mov eax, dword [esi + 0x10]
cmp dword [eax], 0
jne 0x43faaf
cmp ecx, 1
jbe 0x43faf6
mov edi, dword [eax + 4]
cmp ecx, 2
jbe 0x43faf8
mov ebx, dword [eax + 8]
jmp 0x43fafa
mov edx, dword [0x5645d8]
mov ebx, dword [0x5645d4]
cmp ecx, 1
jbe 0x43fad7
mov edi, dword [eax + 4]
test edi, edi
je 0x43fad7
mov eax, edx
sub eax, ebx
sar eax, 2
cmp eax, edi
jbe 0x43fad7
mov edi, dword [ebx + edi*4]
jmp 0x43fad9
xor edi, edi
cmp ecx, 2
jbe 0x43faf8
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x43faf8
sub edx, ebx
sar edx, 2
cmp edx, eax
jbe 0x43faf8
mov ebx, dword [ebx + eax*4]
jmp 0x43fafa
xor edi, edi
xor ebx, ebx
cmp ecx, 3
jbe 0x43fb12
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x38], edx
cmp ecx, 4
jbe 0x43fb17
mov eax, dword [eax + 0x10]
jmp 0x43fb19
xor edx, edx
mov dword [ebp - 0x38], edx
xor eax, eax
mov ecx, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jne 0x43fb3b
push eax
push edx
push ebx
mov edx, edi
call fcn.00415600
add esp, 0xc
jmp 0x43fc43
push str..avi
push ecx
mov ecx, dword [0x563dac]
mov edx, str._Movie_
call fcn.00497ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x43fbb1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43fb6e
test al, 0x10
je 0x43fc14
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x67706d2e
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43fb8d
test al, 0x10
je 0x43fc0e
mov eax, dword [esi - 8]
lea edx, [esi - 8]
mov esi, dword [ebp - 0x30]
mov ecx, esi
cmp eax, 0xffffffff
je 0x43fbbb
dec eax
mov dword [edx], eax
test eax, eax
jg 0x43fbbb
push edx
call fcn.00501c9e
add esp, 4
mov ecx, esi
jmp 0x43fbbb
mov ecx, dword [ebp - 0x38]
mov dword [esi - 4], 0x67706d2e
push str..avi
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, str._Movie_
mov ecx, dword [0x55f1c4]
call fcn.00497ad0
mov esi, eax
add esp, 8
test esi, esi
je 0x43fc7d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43fbf3
test al, 0x10
je 0x43fc14
mov eax, dword [esi - 4]
push esi
mov dword [eax + esi - 4], 0x67706d2e
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43fc84
test al, 0x10
jne 0x43fc84
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov ecx, esi
push eax
push dword [ebp - 0x30]
mov edx, edi
push ebx
call fcn.00415600
mov eax, dword [esi - 8]
add esi, 0xfffffff8
add esp, 0xc
cmp eax, 0xffffffff
je 0x43fc43
dec eax
mov dword [esi], eax
test eax, eax
jg 0x43fc43
push esi
call fcn.00501c9e
add esp, 4
call fcn.00495ed0
mov eax, dword [0x564610]
xor edx, edx
mov dword [eax + 8], 0
mov ecx, dword [0x564610]
call fcn.00492040
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.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi - 4], 0x67706d2e
push str.Could_not_open_file:__r_n
lea ecx, [ebp - 0x2c]
call fcn.0041c030
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004299c0
lea ecx, [ebp - 0x2c]
call fcn.0041bfd0
mov ecx, eax
call fcn.00469b60
int3