Function at 0x4e6ff5
Capabilities:
Check if file exists

Disassembly:
push 0x50
mov eax, 0x5b95b5
call fcn.00598f2b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e7207
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 0x5cd820
push 1
push ebx
push 0x5cd830
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4e71dd
cmp dword [ebp - 0x10], ebx
je 0x4e71dd
push dword [ebp + 8]
xor eax, eax
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
call fcn.00441039
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or eax, 0xffffffff
cmp ax, word [ebp - 0x28]
jne 0x4e71dd
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x4e71cd
mov esi, dword [ebp - 0x24]
cmp esi, ebx
je 0x4e71cd
mov dword [ebp - 0x20], ebx
push str.root
mov byte [ebp - 4], 3
call fcn.0047ffdd
pop ecx
cmp eax, ebx
je 0x4e70d3
mov edi, eax
lea esi, [ebp - 0x20]
call fcn.0046ae24
jmp 0x4e70d5
xor eax, eax
cmp eax, ebx
je 0x4e71bc
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x4e71ab
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x4e71ab
cmp dword [ebp - 0x18], ebx
je 0x4e71ab
mov dword [ebp - 0x14], ebx
jle 0x4e71ab
mov dword [ebp + 8], ebx
lea edx, [ebp + 8]
push edx
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp + 8]
jne 0x4e718e
cmp eax, ebx
je 0x4e718e
lea eax, [ebp - 0x5c]
push eax
call fcn.004e720f
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 6
push dword [ebp + 8]
call fcn.004e7274
test eax, eax
je 0x4e717d
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.004e795f
test eax, eax
je 0x4e717d
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
push eax
call fcn.004e833a
lea edi, [ebp - 0x5c]
call fcn.004baf7e
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
jmp 0x4e7192
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x4e719c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x4e7123
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4e71bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4e71cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4e71dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x24
cdq
pop ecx
idiv ecx
mov esi, eax
neg esi
sbb esi, esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
neg esi
cmp eax, ebx
je 0x4e7205
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00599003
ret 0xc