Function at 0x4d9050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0e48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push edi
mov eax, dword [0x6089a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [esi + 0xd4]
lea edx, [ebp - 0x10]
xor edi, edi
push edx
mov edx, dword [esi + 0xd0]
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
call eax
test eax, eax
jne 0x4d90d7
lea ecx, [ebp - 0x18]
push ecx
push 0x5d38a0
push 0x5c38e0
push 4
push 0x5c21d0
push 0x151
push 0x5c2224
mov dword [ebp - 0x18], str._ERR__tCannt_get_the_correct_active_index__n
call fcn.00401650
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1168]
cmp eax, edi
mov dword [esi + 0x1158], edi
je 0x4d9107
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [esi + 0x1168]
cmp eax, edi
je 0x4d9107
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x1168], edi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 0x14]
push edx
call eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
mov ebx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp ebx, edi
jne 0x4d9157
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Warn__Failed_delete_output_file__ErrorCode_d._n
push 4
push str.CQMCTranscodingPage::OnFailedTranscoding
push 0x162
push 0x5c231c
mov edx, 0x5c38e0
call fcn.004021a0
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
push 5
call eax
mov edx, dword [0x626520]
mov ecx, dword [esi + 0xd0]
push edi
or ebx, 0xffffffff
push ebx
push 4
add edx, 0xa8
xor eax, eax
call fcn.004b8da0
push 0x5c2358
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0xd0]
push edi
push ecx
mov ecx, dword [0x626520]
push eax
add ecx, 0xa8
lea eax, [ebx + 3]
call fcn.004b8cc0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push str.00:00:00
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0xd0]
mov ecx, dword [0x626520]
push edi
push edx
push eax
add ecx, 0xa8
lea eax, [ebx + 4]
call fcn.004b8cc0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov cl, byte [esi + 0x115c]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1154]
mov byte [ebp - 0x32], cl
mov ecx, dword [0x626524]
mov dword [ebp - 0x38], 0x1f5
mov byte [ebp - 0x33], 2
mov dword [ebp - 0x2e], eax
call fcn.0049db30
mov ecx, dword [0x626528]
mov byte [ebp - 0x31], al
call fcn.0049db30
push ecx
mov ecx, dword [ebp - 0x10]
mov ebx, esp
mov byte [ebp - 0x30], al
mov dword [ebp - 0x14], esp
call fcn.004b3600
lea edx, [ebp - 0x38]
call fcn.004b6420
add esp, 4
call fcn.004b63d0
test eax, eax
je 0x4d9285
call fcn.004b71f0
cmp eax, edi
je 0x4d9285
push eax
call fcn.004b6f10
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret