Function at 0x4061a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b86
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea edx, [ebp + 8]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00401840
mov ebx, eax
lea eax, [ebp + 8]
cmp eax, ebx
je 0x40621d
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x406200
mov ecx, dword [ebp + 0xc]
inc edx
push 2
call fcn.004010f0
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
call fcn.004031d0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00402640
cmp dword [ebp + 0x1c], 0
jne 0x406239
mov edi, 2
jmp 0x406579
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], vtable.CRegistry.0
mov dword [ebp - 0x14], esi
push 0x43f704
mov byte [ebp - 4], 3
push str.kernel32
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x443ba0], eax
test eax, eax
je 0x406287
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x443ba0]
cmp dword [ebp + 0x3c], 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jb 0x4062a0
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x406570
jmp 0x4062a3
lea ecx, [ebp + 0x28]
cmp dword [ebp - 0x1c], 0
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
lea edx, [ebp - 0x3c]
push edx
or eax, 0xf003f
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406570
mov eax, dword [ebp - 0x3c]
push 0x43f704
push str.kernel32
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x443ba0], eax
test eax, eax
je 0x40630e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x443ba0]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], 0
setne al
movzx eax, al
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406900
test eax, eax
je 0x406564
lea ecx, [ebp - 0x38]
call fcn.00402c80
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
push str.DisplayIcon
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x40637f
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0x1c]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [ebp - 0x38]
push eax
push str.DisplayName
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x4063bd
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0x38]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [ebp - 0x38]
push eax
push str.DisplayVersion
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x4063fb
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0x54]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [ebp - 0x38]
push eax
push str.InstallLocation
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x406439
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0x70]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [ebp - 0x38]
push eax
push str.Publisher
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x40647a
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0x9c]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [ebp - 0x38]
push eax
push str.UninstallString
lea ecx, [ebp - 0x18]
call fcn.00406ac0
test eax, eax
je 0x4064bb
sub esp, 0x1c
lea edx, [ebp - 0x38]
mov ecx, esp
call fcn.00401600
lea ecx, [ebp - 0x58]
call fcn.00406100
add esp, 0x1c
lea ecx, [edi + 0xb8]
push eax
call fcn.00402720
lea ecx, [ebp - 0x58]
call fcn.00402640
lea eax, [edi + 0x8c]
push eax
push str.Language
lea ecx, [ebp - 0x18]
call fcn.00406a50
lea eax, [edi + 0x90]
push eax
push str.NoModify
lea ecx, [ebp - 0x18]
call fcn.00406a50
lea eax, [edi + 0x94]
push eax
push str.NoRepair
lea ecx, [ebp - 0x18]
call fcn.00406a50
lea eax, [edi + 0x98]
push eax
push str.EstimatedSize
lea ecx, [ebp - 0x18]
call fcn.00406a50
lea eax, [edi + 0xd4]
push eax
push str.VersionMajor
lea ecx, [ebp - 0x18]
call fcn.00406a50
lea eax, [edi + 0xd8]
push eax
push str.VersionMinor
lea ecx, [ebp - 0x18]
call fcn.00406a50
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40653f
push esi
call ebx
xor esi, esi
cmp dword [edi + 0x34], 8
jb 0x40654a
mov edi, dword [edi + 0x20]
jmp 0x40654d
add edi, 0x20
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
lea ecx, [ebp - 0x38]
sbb edi, edi
neg edi
call fcn.00402a50
jmp 0x406572
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x406570
push esi
call ebx
xor esi, esi
xor edi, edi
test esi, esi
je 0x406579
push esi
call ebx
lea ecx, [ebp + 8]
call fcn.00402640
lea ecx, [ebp + 0x24]
call fcn.00402640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret