Function at 0x40f60d
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x457638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
push edi
mov dword [esp + 0x18], ebx
cmp dword [ebx + 0xa8], 4
jne 0x40f5ce
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov eax, dword [esp + 0x70]
xor edi, edi
cmp eax, edi
jne 0x40f5f1
mov eax, dword [ebx + 0x98]
pop edi
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov eax, dword [ebx + 0x10c]
push esi
lea esi, [ebx + 0x108]
cmp eax, edi
jne 0x40f607
mov eax, 0x45b980
push eax
push str.CProgramIssue::IsPresent__s__n
push 2
push 0x4788a8
call fcn.0041f763
mov dword [ebx + 0x98], edi
mov eax, dword [esi + 4]
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
je 0x40f64c
mov al, byte [eax - 1]
test al, al
je 0x40f64c
cmp al, 0xff
je 0x40f64c
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, esi
call fcn.00404210
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40f657
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0042e1b0
add esp, 0xc
test eax, eax
jne 0x40fc49
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push ebp
push eax
push 0x20019
push edi
push ecx
push edx
call dword [0x47861c]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 4]
cmp eax, edi
mov ebp, 0x45b980
je 0x40f6a3
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.RegOpenKey__s__returns_error__d_n
push 0x20
push 0x4788a8
call fcn.0041f763
mov eax, dword [ebx + 0xb0]
add esp, 0x14
cmp eax, 2
jne 0x40fc11
cmp dword [esp + 0x78], edi
jne 0x40fc11
mov ebp, dword [0x478618]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
push str.Version
push eax
mov dword [esp + 0x30], 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 8
call ebp
mov esi, dword [esp + 0x30]
push edi
mov ecx, esi
push 0x100
and ecx, 0xff000000
push edi
push ecx
mov dword [esp + 0x88], eax
call fcn.00437e90
mov ecx, esi
xor edi, edi
and ecx, 0xff0000
push edi
add eax, ecx
push 0x100
adc edx, edi
push edx
push eax
call fcn.00437e90
mov ecx, esi
push edi
and ecx, 0xff00
push 0x100
add eax, ecx
adc edx, edi
push edx
push eax
call fcn.00437e90
and esi, 0xff
xor ecx, ecx
add eax, esi
mov dword [ebx + 0x80], eax
mov eax, dword [esp + 0x78]
adc edx, ecx
test eax, eax
mov dword [ebx + 0x84], edx
jne 0x40fbfd
mov ecx, dword [ebx + 0x80]
mov eax, edx
cmp eax, dword [ebx + 0x8c]
jl 0x40fbfd
jg 0x40f7ac
cmp ecx, dword [ebx + 0x88]
jb 0x40fbfd
cmp eax, dword [ebx + 0x94]
jg 0x40fbfd
jl 0x40f7c6
cmp ecx, dword [ebx + 0x90]
ja 0x40fbfd
mov eax, dword [ebx + 0x10c]
xor esi, esi
cmp eax, esi
jne 0x40f7d7
mov eax, 0x45b980
push eax
push str.___s_is_installed_and_it_needs_to_be_uninstalled_n
push 1
push 0x4788a8
call fcn.0041f763
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push esi
push eax
push esi
push str.UninstallString
push ecx
mov dword [ebx + 0x98], 1
mov dword [esp + 0x28], esi
call ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], esi
cmp eax, esi
je 0x40fada
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push esi
push str.QuietUninstallString
push ecx
mov dword [esp + 0x34], esi
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x40f8ca
push ecx
call fcn.0044d4cd
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x10]
mov edi, eax
push edx
lea eax, [esp + 0x1c]
push edi
push eax
push esi
push str.QuietUninstallString
push ecx
mov dword [esp + 0x90], edi
call ebp
cmp eax, esi
jne 0x40f8e1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ebx + 0x128]
mov esi, ecx
push 1
push esi
mov ecx, ebp
mov dword [esp + 0x28], esi
call fcn.00404210
test al, al
je 0x40fad4
mov edi, dword [ebp + 4]
mov ecx, esi
mov esi, dword [esp + 0x78]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov ebp, dword [ebp + 4]
add ebp, eax
mov byte [ebp], 0
jmp 0x40fad4
cmp eax, esi
je 0x40fada
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d4cd
add esp, 4
jmp 0x40f913
cmp edi, esi
jne 0x40f8f4
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d4cd
add esp, 4
jmp 0x40f913
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x40f919
push edi
call fcn.0044d4f6
mov edx, dword [esp + 0x14]
push edx
call fcn.0044d4cd
add esp, 8
mov dword [esp + 0x78], eax
mov edi, eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
push esi
push str.UninstallString
push edx
call ebp
cmp eax, esi
jne 0x40fada
mov esi, dword [esp + 0x78]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add ebx, 0x128
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00404210
test al, al
je 0x40f97e
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov edi, str.msiexec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.msiexec
push 7
push eax
mov ecx, ebx
call fcn.00404100
test eax, eax
jne 0x40fad0
mov edi, 0x46e4f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [0x45b97c]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0x46e4f8
lea esi, [ecx + 0x108]
mov ecx, esi
call fcn.00404070
mov edx, eax
inc eax
test edx, edx
je 0x40fad0
mov ecx, dword [0x45b97c]
lea edx, [esp + 0x58]
push ecx
push eax
push edx
mov ecx, esi
call fcn.004038f0
push eax
lea eax, [esp + 0x4c]
xor esi, esi
push str.msiexec__x
push eax
mov dword [esp + 0x7c], esi
call fcn.004059a0
push str.__qn
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x88], 1
call fcn.00405c20
add esp, 0x18
mov edx, dword [0x45b97c]
mov ecx, ebx
push edx
push esi
push eax
mov byte [esp + 0x7c], 2
call fcn.00403e70
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x40fa5a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fa51
cmp al, 0xff
je 0x40fa51
dec al
mov byte [ecx], al
jmp 0x40fa5a
push ecx
call fcn.0044d4f6
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x40fa8b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fa82
cmp al, 0xff
je 0x40fa82
dec al
mov byte [ecx], al
jmp 0x40fa8b
push ecx
call fcn.0044d4f6
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], esi
cmp eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x70], 0xffffffff
je 0x40fac4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40fabb
cmp al, 0xff
je 0x40fabb
dec al
mov byte [ecx], al
jmp 0x40fac4
push ecx
call fcn.0044d4f6
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x20]
mov ebp, dword [0x478618]
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x40fbec
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push str.DisplayVersion
push edx
mov dword [ebx + 0x98], 1
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40fbec
cmp eax, 4
jbe 0x40fb38
mov eax, dword [esp + 0x78]
push eax
call fcn.0044d4f6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044d4cd
add esp, 8
mov dword [esp + 0x78], eax
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push edi
push eax
push 0
push str.DisplayVersion
push ecx
call ebp
test eax, eax
jne 0x40fbec
or ecx, 0xffffffff
lea ebp, [ebx + 0x138]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x28], esi
call fcn.00404210
test al, al
je 0x40fba2
mov edi, dword [ebp + 4]
mov ecx, esi
mov esi, dword [esp + 0x78]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov edi, 0x48840c
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebx + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x28], esi
call fcn.00404210
test al, al
je 0x40fbec
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x48840c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40fbfd
push eax
call fcn.0044d4f6
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x14]
pop ebp
cmp eax, edi
je 0x40fc77
push eax
call dword [0x47860c]
jmp 0x40fc77
cmp eax, 3
jne 0x40fbff
cmp dword [esp + 0x78], edi
je 0x40fbff
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x40fc28
mov eax, 0x45b980
push eax
push str.___s_should_be_installed_and_it_isnt._n
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x10
mov dword [ebx + 0x98], 1
jmp 0x40fbff
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x40fc55
mov esi, 0x45b980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.HrIdentifyRegistryRootKey__s__fails_with__d_n
push 0x40
push 0x4788a8
call fcn.0041f763
add esp, 0x14
mov dword [ebx + 0x98], edi
push str.CProgramIssue::IsPresent___n
push 4
push 0x4788a8
call fcn.0041f763
mov ecx, dword [esp + 0x70]
mov eax, dword [ebx + 0x98]
add esp, 0xc
mov dword fs:[0], ecx
pop esi
pop edi
pop ebx
add esp, 0x64
ret 4