Function at 0x1004e95b
Capabilities:
Check if file exists

Disassembly:
push 0x74
mov eax, 0x1006f582
call fcn.100657c5
mov edi, ecx
mov dword [ebp - 0x64], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], ebx
test ecx, ecx
je 0x1004e999
push ecx
call fcn.1005c06a
pop ecx
mov dword [ebp - 0x7c], eax
jmp 0x1004e99c
mov dword [ebp - 0x7c], ebx
test esi, esi
je 0x1004e9ac
push esi
call fcn.1005c06a
pop ecx
mov dword [ebp - 0x5c], eax
jmp 0x1004e9af
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov esi, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 2
mov eax, dword [0x10077790]
cmp eax, 0x10077790
je 0x1004e9ef
test byte [eax + 0x1c], 0x10
je 0x1004e9ef
cmp byte [eax + 0x19], 5
jb 0x1004e9ef
push dword [eax + 0x14]
mov edx, 0x100062dc
push dword [eax + 0x10]
push 0x6e
pop ecx
call fcn.1000e7a2
cmp dword [ebp - 0x50], 0
je 0x1004ed07
cmp dword [ebp - 0x6c], 0
je 0x1004ed07
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1004ed07
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004ed07
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x1004ed07
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x1004ed07
mov eax, dword [edi]
lea ecx, [ebp - 0x78]
push ecx
push edi
mov dword [ebp - 0x78], ebx
call dword [eax + 0x18]
test eax, eax
js 0x1004ecee
cmp dword [ebp - 0x78], 0
je 0x1004ecee
push 0x1000d300
lea ecx, [ebp - 0x58]
call fcn.100147b6
mov edi, dword [ebp - 0x50]
mov ecx, edi
call fcn.1001228c
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.10014691
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
js 0x1004ec62
mov edi, 0x10007554
mov ecx, edi
call fcn.1001228c
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.10014691
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
js 0x1004ec62
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x54]
call fcn.1001b381
push dword [ebp - 0x70]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
mov ecx, edi
call fcn.1001228c
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.10014691
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
js 0x1004ec62
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x54]
add eax, 0x1c
push 2
push 2
push edi
push dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov dword [ebp - 0x50], eax
test eax, eax
js 0x1004ecb7
push edi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea edi, [eax*2 + 2]
mov dword [ebp - 0x6c], edi
add edi, 0x48
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x1004eb45
mov edi, 0x8007000e
mov dword [ebp - 0x50], edi
jmp 0x1004ec62
push edi
push ebx
push eax
call fcn.10057cb0
mov ecx, dword [ebp - 0x68]
lea eax, [edi - 0x1c]
add esp, 0xc
lea esi, [ebp - 0x20]
mov dword [ecx + 0x18], eax
lea edi, [ecx + 0x1c]
mov eax, dword [ebp + 0x1c]
neg eax
mov dword [ecx], 0x445356ff
sbb eax, eax
and eax, 3
add eax, 0x16
mov dword [ecx + 4], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ecx + 0x2c]
lea esi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x6c]
mov edx, edi
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x54]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edi
add ecx, 0x48
call fcn.10014c75
mov esi, dword [ebp - 0x64]
pop ecx
pop ecx
lea eax, [esi + 0x5c]
push eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xf0], 6
jne 0x1004ec4d
lea eax, [esi + 0x54]
cmp dword [eax], ebx
je 0x1004ec4d
push eax
lea ecx, [ebp - 0x74]
call fcn.1004f997
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 0x74]
push eax
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x5c], 1
mov byte [ebp - 4], 3
lea ecx, [edi + 0x48]
mov esi, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x68]
push ecx
mov eax, dword [esi]
push 0xffffffffffffffff
push esi
call dword [eax + 0x20]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
je 0x1004ec20
mov byte [ebp - 4], 2
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1004ec62
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x1c
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0xffffffffffffffff
push esi
call dword [eax + 0x24]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
jne 0x1004ec11
cmp dword [ebp - 0x3c], eax
je 0x1004ec11
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x50], edi
jmp 0x1004ec11
mov eax, dword [ebp - 0x5c]
mov edi, 0x8007048f
push eax
mov dword [ebp - 0x50], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x64]
push dword [ebp - 0x54]
add eax, 0x1c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp edi, 0x8103010d
jne 0x1004ec8c
mov edi, dword [ebp + 0x1c]
neg edi
sbb edi, edi
and edi, 3
add edi, 0x89736001
mov dword [ebp - 0x50], edi
push ebx
push 0x10006844
push edi
push ebx
push dword [ebp - 0x64]
call fcn.1004cd47
add esp, 0x14
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1004ecba
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1004ecba
mov edi, dword [ebp - 0x50]
mov eax, dword [0x10077790]
cmp eax, 0x10077790
je 0x1004ece6
test byte [eax + 0x1c], 0x10
je 0x1004ece6
cmp byte [eax + 0x19], 5
jb 0x1004ece6
push edi
push dword [eax + 0x14]
mov edx, 0x100062dc
push dword [eax + 0x10]
push 0x6f
pop ecx
call fcn.1000e7be
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
jmp 0x1004ed1e
push ebx
push 0x10006844
push 0x8007048f
push ebx
push edi
call fcn.1004cd47
mov dword [ebp - 0x50], eax
mov edi, eax
jmp 0x1004ed1b
push ebx
push 0x10006844
push 0x80070057
push ebx
push edi
call fcn.1004cd47
mov edi, eax
add esp, 0x14
mov byte [ebp - 4], 1
test esi, esi
je 0x1004ed2c
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
mov eax, edi
call fcn.1006576f
ret 0x18