Function at 0x500c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5edd38]
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 - 0x90]
mov dword [ebp - 0x44], edi
xor esi, esi
mov dword [ebp - 0x2bc], esi
xor eax, eax
push 0x10
push str.Digital_Editions
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call fcn.00408f30
push 0x17
xor eax, eax
mov dword [ebp - 4], esi
push str.Adobe_Digital_Editions
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.00408f30
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.00408f30
push 0x210
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a0]
cmovae eax, dword [ebp - 0x40]
push eax
push 0x80000002
call fcn.00445f10
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 3
call fcn.00445fd0
test al, al
je 0x500fab
cmp word [ebp - 0x298], 0
je 0x500f8d
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.0040c291
add esp, 8
test eax, eax
je 0x500d9a
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00420fc8
add esp, 0xc
test eax, eax
jne 0x500f8d
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x2b8], ax
lea ecx, [ebp - 0x2b8]
mov eax, dword [ebp - 0x30]
or esi, 2
inc eax
mov dword [ebp - 0x2a8], 0
push eax
mov dword [ebp - 0x2a4], 7
mov dword [ebp - 0x2bc], esi
call fcn.00410200
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2b8]
push eax
call fcn.0040ddb0
push 1
push 0x58f23c
lea ecx, [ebp - 0x2b8]
call fcn.0040ddb0
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500e10
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040ddb0
mov dword [ebp - 0x68], 0
xor ecx, ecx
mov dword [ebp - 0x64], 0
or esi, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
and esi, 0xfffffffd
mov eax, dword [ebp - 0x2a4]
mov byte [ebp - 4], 7
cmp eax, 8
jb 0x500e8c
inc eax
lea ecx, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2b8]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x2a8], 0
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x48]
mov word [ebp - 0x2b8], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x78]
mov dword [ebp - 0x2a4], 7
cmovae eax, dword [ebp - 0x78]
push 0x20019
push eax
push 0x80000002
mov byte [ebp - 4], 6
movlpd qword [ebp - 0x48], xmm0
call fcn.0040c860
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 - 0x48], ecx
je 0x500f3e
lea eax, [ebp - 0x28]
push eax
push str.InstallPath
lea ecx, [ebp - 0x48]
call fcn.0041f7a0
test eax, eax
jne 0x500f3b
cmp dword [ebp - 0x18], eax
je 0x500f3b
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 0x500f3b
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 0x5010c8
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp eax, 8
jb 0x500f54
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040c8e0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0x10
cmp eax, 8
jb 0x500f89
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040a2e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2a0]
call fcn.004466e0
lea ecx, [ebp - 0x2a0]
call fcn.00445fd0
test al, al
jne 0x500d41
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x586454
mov word [edi], ax
call fcn.00408f30
lea ecx, [ebp - 0x2a0]
call fcn.00447c30
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x501014
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x11
cmp edx, 0x1000
jb 0x50100a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5011e7
push edx
push ecx
call fcn.00409f25
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x501066
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0x12
cmp edx, 0x1000
jb 0x50105c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5011e7
push edx
push ecx
call fcn.00409f25
add esp, 8
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x5011c8
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 0x13
cmp edx, 0x1000
jb 0x5011be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5011e7
jmp 0x5011be
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004db430
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x5010ec
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040c8e0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0xb
cmp eax, 8
jb 0x501121
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.00447c30
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
cmp eax, 8
jb 0x501159
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xd
cmp eax, 8
jb 0x501186
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 4], 0xe
cmp eax, 8
jb 0x5011c8
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0040a2e0
jmp 0x5011c8
push edx
push ecx
call fcn.00409f25
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.00401682
mov esp, ebp
pop ebp
ret 4
call fcn.0054223b
int3