Function at 0x4e5c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f0760
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x6089a0]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x120], 0
mov dword [esp + 0x24], edi
je 0x4e5c99
lea eax, [esp + 0x54]
push eax
mov eax, dword [edi + 0xe4]
lea ecx, [esp + 0x478]
push ecx
call fcn.004e3f20
jmp 0x4e5cf7
mov esi, dword [edi + 0x124]
call fcn.004b0f60
test esi, esi
mov ebx, eax
jl 0x4e5cf7
mov ecx, dword [ebx + 0x38]
test ecx, ecx
jne 0x4e5cb5
xor eax, eax
jmp 0x4e5cbd
mov eax, dword [ebx + 0x3c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x4e5cf7
test ecx, ecx
je 0x4e5cd1
mov eax, dword [ebx + 0x3c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4e5cd7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebx + 0x38]
mov esi, dword [edx + esi*4]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x478]
push ecx
lea edx, [edi + 0x128]
push edx
push esi
call fcn.004ad260
mov eax, dword [edi + 0x108]
lea ebx, [edi + 0x108]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x30], ebx
je 0x4e5d25
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
mov eax, dword [ebx]
cmp eax, esi
je 0x4e5d25
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x8a0], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea esi, [esp + 0x2c]
mov byte [esp + 0x8a0], 1
call fcn.004b23b0
push 0x5b30b8
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x8ac], 2
call fcn.00401030
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x8a4], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, esi
mov byte [esp + 0x8a0], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x5c5380
push 0x5c53d0
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
lea ecx, [esp + 0x1c]
call fcn.004b3020
add esp, 8
test eax, eax
je 0x4e5e1a
lea ecx, [esp + 0x1c]
push ecx
push 0x5d38a0
push 0x5b3550
push 4
push 0x5b31c8
push 0x55
push 0x5b30e4
mov dword [esp + 0x38], str._ERR__Failed_to_CoCreateInstance_CLSID_QPTinyGraphVideoMerger__IID_IEncSettings_._n
call fcn.00401650
add esp, 0x1c
lea ecx, [esp + 0x20]
mov dword [edi + 0xe8], 0x3ec
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x8a0], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e5e13
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
jmp 0x4e63f1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
fild dword [esp + 0x68]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ecx
fstp dword [esp]
push eax
call edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x480]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x474]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x478]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x47c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x4e5efc
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e5efc
mov ecx, dword [edi + 0x10c]
push 0
push 0xb4
push 0x140
push 0
push 0
push 0
call sub.MFC80U.DLL_Ordinal_6061
mov ecx, dword [edi + 0x10c]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push 1
push eax
call edx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
push edi
lea esi, [esp + 0x2c]
call fcn.004e5540
mov ecx, esi
mov byte [esp + 0x8a0], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_1220]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push esi
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx]
push ebx
push str.d0vS
push eax
call edx
test eax, eax
je 0x4e5fd2
lea eax, [esp + 0x1c]
push eax
push 0x5d38a0
push 0x5b3550
push 4
push 0x5b32d0
push 0x7a
push 0x5b3294
mov dword [esp + 0x38], str._ERR__Failed_to_QueryInterface_IID_IVideoMergerControl_._n
call fcn.00401650
mov dword [edi + 0xe8], 0x3ec
add esp, 0x1c
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x8a0], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e5fcb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x4e63f1
mov eax, dword [ebx]
mov edx, dword [edi + 0x20]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov ecx, dword [edi + 0xe4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x4e6172
lea ebx, [ebx]
mov ecx, dword [edi + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [esp + 0x1c]
push edx
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8a0], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_1220]
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push esi
push eax
mov eax, dword [ecx + 0x34]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x2c]
push eax
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8a0], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_1220]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x48]
push ebx
add esi, 0x38
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi]
push ecx
push edx
call eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
add dword [edi + 0xf8], eax
mov ecx, dword [esp + 0x18]
push 0
adc dword [edi + 0xfc], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
mov eax, dword [esp + 0x3c]
mov esi, dword [0x6265b4]
mov ebx, eax
add esi, 0xa8
test eax, eax
mov dword [esp + 0x34], ebx
jl 0x4e6147
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jge 0x4e6147
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2788
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4e6147
push ebx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2860
xor ecx, ecx
cmp eax, ecx
je 0x4e6138
mov dword [eax + 8], ecx
mov dword [eax + 0xac], 0xffffffff
mov dword [eax + 0x14], ecx
mov edi, dword [esp + 0x34]
xor ebx, ebx
call fcn.004b8a70
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8a0], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x30]
jne 0x4e6000
mov eax, dword [0x6265bc]
cmp dword [eax + 0xe4], 0
je 0x4e61ef
mov edx, dword [0x6265c0]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00491bb0
mov byte [esp + 0x8a0], 7
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x4e61dd
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e61dd
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_1220]
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push esi
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x11c]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x18]
mov byte [esp + 0x8a0], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
test eax, eax
jge 0x4e6239
lea eax, [esp + 0x24]
push eax
push 0x5d38a0
push 0x5b3550
push 4
push 0x5b3358
push 0xa8
push 0x5b33ac
mov dword [esp + 0x40], 0x5b3324
call fcn.00401650
mov dword [edi + 0xe8], 0x3ed
jmp 0x4e5f99
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
test eax, eax
jge 0x4e6283
lea eax, [esp + 0x24]
push eax
push 0x5d38a0
push 0x5b3550
push 4
push str.CQMCVideoMergePage::StartVideoProcessing
push 0xaf
push str..QMCVideoMergePageLogic.cpp
mov dword [esp + 0x40], 0x5b33e8
call fcn.00401650
mov dword [edi + 0xe8], 0x3ee
jmp 0x4e5f99
mov ebx, dword [ebx]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x14]
push ebx
call ecx
mov ecx, dword [edi + 0xe4]
lea eax, [esp + 0x40]
mov dword [edi + 0xec], 1
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
push 0
call edx
test eax, eax
je 0x4e637b
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
push 1
call edx
mov ebx, dword [0x6265b4]
mov eax, dword [ebx + 0xc8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
add ebx, 0xa8
push 0x1004
push eax
call esi
test eax, eax
jle 0x4e637b
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_2788
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1200
push ecx
call esi
test eax, eax
jle 0x4e637b
push 0
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_2860
test eax, eax
je 0x4e632b
mov dword [eax + 8], 3
mov dword [eax + 0xac], 0xffffffff
mov dword [eax + 0x14], 0
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x1004
push edx
call esi
test eax, eax
jle 0x4e637b
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_2788
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call esi
test eax, eax
jle 0x4e637b
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
mov ecx, ebx
call fcn.004b8400
mov eax, dword [ebx + 0x20]
push 1
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x4e6398
push edi
call sub.MFC80U.DLL_Ordinal_1386
mov ecx, dword [edi + 0x10c]
push 5
call sub.MFC80U.DLL_Ordinal_6086
mov ecx, dword [edi + 0xe4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
call fcn.004b72b0
mov ecx, dword [edi + 0x20]
push 0
push 0x1f4
push 0
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x8a0], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e63ec
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret