Function at 0x4e5150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a22c
mov eax, dword fs:[0]
push eax
sub esp, 0xec
push ebx
push esi
push edi
mov eax, dword [0x56617c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x52d978
push 0x4b440
mov dword [ebp - 0x10], 0
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4e53bd
lea ecx, [esi + 0x4b40c]
mov dword [esi], vtable.CMediaFile.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x4b424], 0
mov dword [esi + 0x4b428], 0
mov dword [esi + 0x4b42c], 0
mov dword [esi + 0x4b430], 0
mov dword [esi + 0x4b434], 0
mov dword [esi + 0x4b438], 0
mov dword [ebx + 0x38], esi
test esi, esi
je 0x4e53c4
push 0x52d978
push 0x20
call fcn.004feae3
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4e537e
push str.movie.arc
sub esp, 0x44
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4e5248
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
push str._GameFile_MovieArchive_File
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041a9d0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041a900
lea ecx, [ebp - 0x68]
call fcn.0041c2a0
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0
push eax
mov ecx, 0x592878
call fcn.0041d740
push 1
sub esp, 0x44
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x10], 3
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4e52c3
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
push str._GameFile_MovieArchive_Encode
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 4
call fcn.0041a9d0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0041a900
lea ecx, [ebp - 0xb0]
call fcn.0041c2a0
mov ecx, 0x592878
mov byte [ebp - 4], 3
call fcn.0041d680
mov edx, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
mov esi, eax
call dword [edx + 0x78]
mov dword [edi], vtable.CArchiveManager.0
mov ecx, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 6
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
cmp esi, 1
mov byte [ebp - 4], 7
push 0
sete al
mov dword [edi + 0x1c], 0
movzx eax, al
push eax
push ecx
mov ecx, edi
call fcn.00432e60
jmp 0x4e5380
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], 1
mov dword [ebx + 0x40], edi
je 0x4e539b
lea ecx, [ebp - 0xf8]
call fcn.0041c2a0
test edi, edi
je 0x4e53df
mov dword [ebx + 8], 0
call fcn.004e62c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x38], 0
push str.Failed_to_create_the_Media_File
lea ecx, [ebp - 0x68]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0x68]
push eax
call fcn.004ffbbe
push str.Failed_to_create_the_Movie_Archive
lea ecx, [ebp - 0xb0]
call fcn.0041a6c0
push 0x563c54
lea eax, [ebp - 0xb0]
push eax
call fcn.004ffbbe
int3