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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cd50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [0x415030]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40e8f4
push 0x17
push ebx
push 0x40e4f8
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x408651
mov edi, dword [ebp + 8]
push ebx
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___Cannot_create_edit_list_for_source_file__s.
mov ecx, esi
call fcn.00405a10
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x408643
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x408a4f
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test edi, edi
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push ecx
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], esp
mov ebx, esp
jne 0x408675
xor eax, eax
jmp 0x408684
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test edi, edi
mov dword [ebx], eax
je 0x408698
test eax, eax
jne 0x408698
push 0x8007000e
call fcn.00401280
mov ecx, esi
call fcn.00406f60
test eax, eax
jge 0x4086db
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___Could_not_create_hashed_file_name_for_source_file__s.
mov ecx, esi
call fcn.00405a10
mov edx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
mov esi, eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x4086d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
lea ebx, [esi + 0x50]
push eax
mov ecx, ebx
call fcn.00404230
mov eax, dword [eax]
cmp eax, dword [esi + 0x54]
mov dword [ebp - 0x18], eax
jne 0x408791
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x18], esp
push edx
call fcn.004023f0
mov eax, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x14], esp
push edx
mov byte [ebp - 4], 3
call fcn.004023f0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00406070
test eax, eax
jge 0x408778
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___GenerateRendition___call_failed_for_file__s.
mov ecx, esi
call fcn.00405a10
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x40876e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 0x18]
push eax
mov ecx, ebx
call fcn.00404230
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x4088f4
mov dword [ebp + 0xc], 0
mov eax, dword [eax + 0x10]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
mov ebx, dword [eax + edx*8 + 8]
test ebx, ebx
mov byte [ebp - 4], 4
jne 0x4087b1
xor eax, eax
jmp 0x4087db
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, esp
push ecx
push edx
push ebx
push eax
call fcn.00401150
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40894d
test edi, edi
jne 0x4087f3
xor eax, eax
jmp 0x408819
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.0040c210
mov ecx, dword [ebp - 0x1c]
mov eax, esp
push ecx
push ebx
push edi
push eax
call fcn.00401150
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], eax
call fcn.004024e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40884c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
jne 0x408894
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___GenerateRendition___call_failed_for_file__s.
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.004024c0
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x40888a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x408950
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x18]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*8 + 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401e50
add esp, 8
test al, al
jne 0x408950
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x18]
lea ecx, [eax + eax*2]
inc word [edx + ecx*8 + 0xc]
test ebx, ebx
lea eax, [edx + ecx*8 + 0xc]
mov byte [ebp - 4], 2
je 0x4088f4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
push ecx
lea ecx, [eax + edx*8 + 8]
call fcn.004014d0
test eax, eax
jge 0x408a2d
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___Cannot_copy_internal_rendition_path_to_out_paramter_for_file__s.
mov ecx, esi
call fcn.00405a10
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
mov esi, eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x408943
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.004023f0
mov ecx, dword [ebp - 0x14]
push ecx
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp + 0x14], esp
push edx
mov byte [ebp - 4], 5
call fcn.004023f0
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00406070
test eax, eax
jge 0x4089d2
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___GenerateRendition___redo_call_failed_for_file__s.
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.004024c0
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x4089cb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 0x18]
push eax
lea ecx, [esi + 0x50]
call fcn.00404230
mov eax, dword [eax]
cmp eax, dword [esi + 0x54]
mov dword [ebp - 0x18], eax
jne 0x4088d0
push 0
push edi
push str.CHpodRenditionMgr::GenerateAllRenditions___GenerateRendition___call_failed_to_produce_image_for_file__s.
mov ecx, esi
call fcn.00405a10
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.004024c0
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x408a26
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call ebx
mov eax, esi
jmp 0x408a4f
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x408a4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call esi
xor eax, eax
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c