Function at 0x406070
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ca98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 1
call dword [0x415030]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [0x415218]
mov ecx, 0x415218
mov byte [ebp - 4], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 8]
cmp ebx, edi
mov byte [ebp - 4], 3
jne 0x4060cc
mov dword [ebp - 0x10], edi
jmp 0x4060e0
push ebx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp - 0x10], eax
mov edi, eax
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp - 0x30], edi
je 0x4060f7
cmp edi, ecx
jne 0x4060f7
push 0x8007000e
call fcn.00401280
cmp dword [ebp + 0xc], ecx
mov byte [ebp - 4], 4
jne 0x406150
push ecx
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Invalid_edit_list_for_file__s.
mov ecx, esi
call fcn.00405a10
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
mov dword [ebp + 0x14], eax
call esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40613b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
call esi
push ebx
call esi
mov eax, dword [ebp + 0x10]
push eax
call esi
mov eax, dword [ebp + 0x14]
jmp 0x40689f
mov edi, dword [esi + 0x4c]
mov edx, dword [esi + 0x30]
inc edi
mov eax, edi
cmp eax, edx
mov dword [esi + 0x4c], edi
jne 0x406163
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
cmp word [eax + edx*8 + 0xc], cx
je 0x4061a8
mov eax, dword [esi + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
dec word [eax + edx*8 + 0xc]
mov edi, dword [esi + 0x4c]
lea eax, [eax + edx*8 + 0xc]
mov edx, dword [esi + 0x30]
inc edi
mov eax, edi
cmp eax, edx
mov dword [esi + 0x4c], edi
jne 0x406198
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
cmp word [eax + edx*8 + 0xc], cx
jne 0x406173
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x18]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8 + 4]
push eax
lea ecx, [ebp - 0x28]
lea edi, [esi + 0x50]
push ecx
mov ecx, edi
call fcn.00404230
mov eax, dword [eax]
cmp eax, dword [esi + 0x54]
je 0x4061d7
push eax
lea edx, [ebp - 0x28]
push edx
mov ecx, edi
call fcn.00404ad0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [eax + eax*2]
mov word [ecx + eax*8 + 0xc], 0
mov eax, dword [esi + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edx*8 + 8]
lea eax, [eax + edx*8 + 8]
push ecx
mov dword [ebp - 0x28], eax
call edi
mov eax, dword [ebp - 0x10]
test eax, eax
mov edx, dword [ebp - 0x28]
mov dword [edx], 0
je 0x406257
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x28], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov eax, esp
test eax, eax
mov dword [ebp - 0x24], eax
je 0x406257
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push edx
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x24]
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
mov byte [ebp - 4], 5
jne 0x4062af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea ecx, [ebp - 0x18]
push str.CHpodRenditionMgr::GenerateRendition___Cannot_open_still_source_file__s._Error___d.
push ecx
call fcn.004056e0
mov edx, dword [ebp - 0x18]
add esp, 0x10
push 0
push edx
mov ecx, esi
call fcn.00402e50
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
jmp 0x4062ee
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x18]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8 + 0x10]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x406325
push eax
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Could_not_get_timestamp_for_still_source_file__s.
mov ecx, esi
call fcn.00405a10
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4062ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406311
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
call edi
push ebx
call edi
mov eax, dword [ebp + 0x10]
push eax
call edi
mov eax, esi
jmp 0x40689f
mov ecx, dword [esi + 0x4c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00405ab0
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00402430
mov eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call edi
mov edx, dword [esi + 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
mov edx, dword [esi + 0x34]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jge 0x4063be
push 0
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Could_not_add_resize_to_edit_list_for_still_source_file__s.
mov ecx, esi
call fcn.00405a10
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406381
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
push eax
call edi
push ebx
call edi
mov ecx, dword [ebp + 0x10]
push ecx
call edi
mov eax, esi
jmp 0x40689f
mov al, byte [ebp + 0x14]
test al, al
jne 0x4068b5
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x14], eax
call fcn.004033e0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [ebp - 0x14]
push str._s_u.bmp
push edx
mov byte [ebp - 4], 0xb
call fcn.004056e0
add esp, 0x10
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00401460
mov ecx, dword [eax]
push 1
lea edx, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push edx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00404290
test eax, eax
mov eax, dword [ebp - 0x28]
push eax
setl byte [ebp + 0x17]
mov byte [ebp - 4], 0xc
call edi
mov al, byte [ebp + 0x17]
test al, al
je 0x406471
push 0
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Cannot_add_destination_file_to_safearray__s
jmp 0x406661
lea ecx, [ebp - 0x24]
call fcn.004027f0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
xor eax, eax
cmp ecx, eax
mov word [ebp - 0x50], 0x2008
mov dword [ebp + 0x14], eax
jle 0x40653f
push 1
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xe
call fcn.004043d0
test eax, eax
jge 0x40651d
push 0
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Cannot_add_frame_number_to_safearray_for__s
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp + 0x14]
mov dword [ebp + 0xc], eax
call fcn.00403400
lea ecx, [ebp - 0x24]
call fcn.00403400
lea ecx, [ebp - 0x14]
call fcn.00402870
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x70]
push eax
call esi
lea ecx, [ebp - 0x40]
push ecx
call esi
lea edx, [ebp - 0x50]
push edx
call esi
lea eax, [ebp - 0x60]
push eax
call esi
lea ecx, [ebp - 0x20]
call fcn.004024c0
mov ecx, dword [ebp - 0x10]
push ecx
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov edx, dword [ebp - 0x1c]
push edx
call edi
push ebx
call edi
mov eax, dword [ebp + 0x10]
push eax
call edi
mov eax, dword [ebp + 0xc]
jmp 0x40689f
lea ecx, [ebp + 0x14]
call fcn.004027f0
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov word [ebp - 0x60], 0x2003
mov byte [ebp - 4], 0xc
call fcn.00403400
jmp 0x4065e7
push 1
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0xf
call fcn.004044d0
test eax, eax
jge 0x4065ca
push 0
push ebx
push str.CHpodRenditionMgr::GenerateRendition___Cannot_add_time_offset_to_safearray_for__s
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp + 0x14]
mov dword [ebp + 0xc], eax
call fcn.00403400
lea ecx, [ebp - 0x24]
call fcn.00403400
lea ecx, [ebp - 0x14]
call fcn.00402870
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x70]
push edx
call esi
lea eax, [ebp - 0x40]
push eax
call esi
lea ecx, [ebp - 0x50]
push ecx
call esi
lea edx, [ebp - 0x60]
push edx
call esi
lea ecx, [ebp - 0x20]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
push ebx
call edi
mov edx, dword [ebp + 0x10]
push edx
call edi
mov eax, dword [ebp + 0xc]
jmp 0x40689f
lea ecx, [ebp + 0x14]
call fcn.004027f0
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov word [ebp - 0x40], 0x2005
mov byte [ebp - 4], 0xc
call fcn.00403400
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x70]
push edx
mov edx, dword [ebp - 0x60]
push 0
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x58]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x50]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x48]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [esi + 0x44]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x4066c6
push 1
push ebx
push str.CHpodRenditionMgr::GenerateRendition___GetVideoFrames___call_failed_for_source_file__s
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x14], eax
call fcn.00403400
lea ecx, [ebp - 0x14]
call fcn.00402870
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x70]
push ecx
call esi
lea edx, [ebp - 0x40]
push edx
call esi
lea eax, [ebp - 0x50]
push eax
call esi
lea ecx, [ebp - 0x60]
push ecx
call esi
lea ecx, [ebp - 0x20]
call fcn.004024c0
mov edx, dword [ebp - 0x10]
push edx
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov eax, dword [ebp - 0x1c]
push eax
call edi
push ebx
call edi
mov ecx, dword [ebp + 0x10]
push ecx
call edi
mov eax, dword [ebp + 0x14]
jmp 0x40689f
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 0x18]
call fcn.00401460
mov edx, dword [esi + 0x1c]
mov eax, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x1c]
push edx
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push edx
push eax
mov byte [ebp - 4], 0x10
call dword [ecx + 0x10]
test eax, eax
mov eax, dword [ebp + 0x18]
push eax
setl byte [ebp + 0x17]
mov byte [ebp - 4], 0xc
call edi
mov al, byte [ebp + 0x17]
test al, al
mov eax, dword [ebp - 0x14]
je 0x4067b7
test eax, eax
je 0x406743
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x28], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, esp
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push ecx
push eax
call fcn.00401150
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
push ebx
push str.CHpodRenditionMgr::GenerateRendition___EditStill___call_failed_for_source_file_generate_from_video__s.
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x14], eax
call fcn.00403400
lea ecx, [ebp - 0x14]
call fcn.00402870
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x70]
push edx
call esi
lea eax, [ebp - 0x40]
push eax
call esi
lea ecx, [ebp - 0x50]
push ecx
call esi
lea edx, [ebp - 0x60]
push edx
call esi
lea ecx, [ebp - 0x20]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
push ebx
call edi
mov edx, dword [ebp + 0x10]
push edx
call edi
mov eax, dword [ebp + 0x14]
jmp 0x40689f
test eax, eax
je 0x4067e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x28], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, esp
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push ecx
push eax
call fcn.00401150
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x24]
call fcn.00403400
lea ecx, [ebp - 0x14]
call fcn.00402870
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x60]
push edx
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [esi + 0x18]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x4c]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*8 + 8]
call fcn.00402430
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
lea eax, [eax + eax*2]
mov word [ecx + eax*8 + 0xc], 1
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x18]
lea edx, [ebp + 0x10]
lea eax, [eax + eax*2]
push edx
lea ecx, [ecx + eax*8 + 4]
call fcn.00402430
lea edx, [ebp + 0x10]
push edx
lea ecx, [esi + 0x50]
call fcn.00405dd0
mov ecx, dword [esi + 0x4c]
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
call fcn.004024c0
mov edx, dword [ebp - 0x10]
push edx
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov eax, dword [ebp - 0x1c]
push eax
call edi
push ebx
call edi
mov ecx, dword [ebp + 0x10]
push ecx
call edi
xor eax, eax
lea esp, [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x40682b
push 1
push ebx
push str.CHpodRenditionMgr::GenerateRendition___EditStill___call_failed_for_source_file__s.
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
call edi
lea ecx, [ebp - 0x18]
call fcn.00402870
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
push ebx
call edi
mov edx, dword [ebp + 0x10]
push edx
call edi
mov eax, esi
jmp 0x40689f