Function at 0x466070
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x420]
sub esp, 0x420
push 0xffffffffffffffff
push 0x493770
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], esi
mov ecx, str.STR_APP_PRINTER
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4660dd
test dx, dx
je 0x4660d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4660dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4660b7
xor eax, eax
jmp 0x4660e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x466177
call fcn.00465ff0
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x466387
mov edi, eax
imul edi, edi, 0x2c
mov eax, dword [edi + 0x4d2bdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x46617e
mov ecx, dword [edi + 0x4d2bd4]
push ecx
lea edx, [ebp]
push edx
call fcn.0048a530
add esp, 8
xor edi, edi
mov dword [ebp - 4], edi
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x466138
mov eax, dword [eax + 4]
jmp 0x46613b
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x18], esi
jb 0x46615f
mov eax, dword [ebp + 4]
push eax
call fcn.00471099
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], cx
test bl, bl
je 0x466387
mov al, 1
jmp 0x466389
mov ecx, str.STR_APP_CALENDAR
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4661ab
test dx, dx
je 0x4661a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4661ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x466185
xor eax, eax
jmp 0x4661b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x466282
mov ecx, str.STR_APP_CALENDAR_NO_RUN
mov eax, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4661e6
test dx, dx
je 0x4661e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4661e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4661c0
xor eax, eax
jmp 0x4661eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x466282
lea edx, [ebp + 0x1c]
push edx
push esi
mov esi, dword [edi + 0x4d2bdc]
call fcn.00466b70
test al, al
je 0x4662df
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466214
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x46624f
movzx eax, word [ebp + eax*2 + 0x1a]
cmp ax, 0x5c
je 0x46624f
cmp ax, 0x2f
je 0x46624f
push 0x49f804
lea edx, [ebp + 0x1c]
push 0x200
push edx
call fcn.00471185
add esp, 0xc
imul esi, esi, 0x2c
mov eax, dword [esi + 0x4d2bd4]
push eax
lea ecx, [ebp + 0x1c]
push 0x200
push ecx
call fcn.00471185
add esp, 0xc
lea edx, [ebp + 0x1c]
push edx
call fcn.00466c60
test al, al
je 0x466387
mov al, 1
jmp 0x466389
mov ebx, str.STR_APP_CALENDAR
call fcn.00465ff0
imul eax, eax, 0x2c
lea ecx, [ebp + 0x1c]
push ecx
push esi
mov esi, dword [eax + 0x4d2bdc]
call fcn.00466b70
test al, al
je 0x4662af
call fcn.00465ff0
mov esi, eax
jmp 0x46620e
call fcn.00465ff0
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x14]
mov esi, dword [eax + 0x4d2bdc]
lea edx, [ebp + 0x1c]
push edx
push ecx
call fcn.00466b70
test al, al
je 0x4662df
mov ebx, str.STR_APP_CALENDAR_NO_RUN
call fcn.00465ff0
mov esi, eax
jmp 0x46620e
mov eax, dword [edi + 0x4d2bd0]
push str.STR_BASIC_MUST_SOFT
push eax
call fcn.00471b5e
add esp, 8
test eax, eax
jne 0x466387
lea edi, [ebp]
call fcn.00401ad0
mov dword [ebp - 4], 3
mov ecx, edi
call fcn.0048cdd0
mov ebx, eax
test ebx, ebx
je 0x466344
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46632a
xor eax, eax
jmp 0x466344
lea edi, [eax + eax]
mov eax, edi
call fcn.00473860
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00410850
push 0
push eax
call fcn.004732e4
add esp, 8
test eax, eax
jne 0x466378
lea ecx, [ebp]
call fcn.0048cdb0
push eax
call fcn.00466c60
test al, al
je 0x466378
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048cfe0
mov al, 1
jmp 0x466389
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048cfe0
xor al, al
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.00470f4c
add ebp, 0x420
mov esp, ebp
pop ebp
ret