Function at 0x515c60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aaa70
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
xor esi, esi
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c0], esi
xor eax, eax
push 0x10
push str.Digital_Editions
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
call fcn.00409db0
push 0x17
xor eax, eax
mov dword [ebp - 4], esi
push str.Adobe_Digital_Editions
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00409db0
push 0xe
xor eax, eax
mov byte [ebp - 4], 1
push str.SOFTWAREAdobe
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00409db0
push 0x210
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x80000002
call fcn.0044c810
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.0044c8f0
test al, al
je 0x515fce
nop word [eax + eax]
cmp word [ebp - 0x29c], 0
je 0x515fb0
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
cmovae eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0040d741
add esp, 8
test eax, eax
je 0x515db9
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0042228c
add esp, 0xc
test eax, eax
jne 0x515fb0
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x2bc], ax
lea ecx, [ebp - 0x2bc]
mov eax, dword [ebp - 0x30]
or esi, 2
inc eax
mov dword [ebp - 0x2ac], 0
push eax
mov dword [ebp - 0x2a8], 7
mov dword [ebp - 0x2c0], esi
call fcn.00413ce0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.0040f730
push 1
push 0x5c0584
lea ecx, [ebp - 0x2bc]
call fcn.0040f730
lea ecx, [ebp - 0x29c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x515e30
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0040f730
mov dword [ebp - 0x60], 0
xor ecx, ecx
mov dword [ebp - 0x5c], 0
or esi, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and esi, 0xfffffffd
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x515eac
inc eax
lea ecx, [ebp - 0x2bc]
push eax
push dword [ebp - 0x2bc]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x7c]
mov word [ebp - 0x2bc], ax
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push 0x20019
push eax
push 0x80000002
mov dword [ebp - 0x2a8], 7
mov byte [ebp - 4], 6
movq qword [ebp - 0x7c], xmm0
call fcn.0040dd20
mov eax, 7
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x7c], ecx
je 0x515f61
lea eax, [ebp - 0x28]
push eax
push str.InstallPath
lea ecx, [ebp - 0x7c]
call fcn.0040bc60
test eax, eax
jne 0x515f5e
cmp dword [ebp - 0x18], eax
je 0x515f5e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x515f5e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x5160eb
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp eax, 8
jb 0x515f77
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040c880
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x10
cmp eax, 8
jb 0x515fac
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040a5e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a4]
call fcn.0044d000
lea ecx, [ebp - 0x2a4]
call fcn.0044c8f0
test al, al
jne 0x515d60
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x5b6ea8
mov word [edi], ax
call fcn.00409db0
lea ecx, [ebp - 0x2a4]
call fcn.0044e4f0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x516037
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x11
cmp edx, 0x1000
jb 0x51602d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51620a
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x516089
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x12
cmp edx, 0x1000
jb 0x51607f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51620a
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov edx, dword [ebp - 0x80]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x5161eb
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 0x13
cmp edx, 0x1000
jb 0x5161e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51620a
jmp 0x5161e1
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0047eb10
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x51610f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040c880
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xb
cmp eax, 8
jb 0x516144
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0044e4f0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
cmp eax, 8
jb 0x51617c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xd
cmp eax, 8
jb 0x5161a9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 4], 0xe
cmp eax, 8
jb 0x5161eb
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.0040a5e0
jmp 0x5161eb
push edx
push ecx
call fcn.0040a1a2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 4
call fcn.0056e2db
int3