Function at 0x41e257
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0x1c
mov eax, 0x5ba4fa
call fcn.0058f985
xor eax, eax
push 0x206
mov word [ebp + 0x408], ax
xor ebx, ebx
lea eax, [ebp + 0x40a]
push ebx
push eax
mov esi, ecx
call fcn.0058fa90
xor eax, eax
mov word [ebp + 0x610], ax
lea edi, [ebp + 0x612]
push 0x1fe
stosd dword es:[edi], eax
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.0058fa90
add esp, 0x18
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x14], ebx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
mov dword [ebp - 4], ebx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x18]
call fcn.0040141e
mov byte [ebp - 4], 1
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x24]
call fcn.0040141e
mov byte [ebp - 4], 2
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x20]
call fcn.0040141e
mov byte [ebp - 4], 3
cmp dword [esi + 0x158], ebx
jne 0x41e36a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x61c
leave
ret
lea edi, [esi + 0x174]
mov ecx, edi
call fcn.004a2999
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e431
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x408]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e3e8
push str.ProgramFilesFolder
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x408]
push ecx
mov ecx, eax
call fcn.00401287
lea eax, [ebp + 0x408]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401287
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x408]
push eax
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e428
push str.CommonFilesFolder
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x408]
push ecx
mov ecx, eax
call fcn.00401287
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
mov word [ebp + 0x200], ax
lea eax, [ebp + 0x202]
push ebx
push eax
call fcn.0058fa90
add esp, 0xc
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41e47f
push str.AllUsersAppData
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x200]
push ecx
mov ecx, eax
call fcn.00401287
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41e4af
push str.UsersAppDataLocal
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x200]
push ecx
mov ecx, eax
call fcn.00401287
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
push 0x17
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41e4df
push str.AllUsersProgramsMenu
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x200]
push ecx
mov ecx, eax
call fcn.00401287
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
push 0x19
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x41e50f
push str.AllUsersDesktop
mov ecx, edi
call fcn.004a2b74
lea ecx, [ebp + 0x200]
push ecx
mov ecx, eax
call fcn.00401287
call fcn.00446344
test eax, eax
je 0x41e574
lea eax, [ebp - 0x14]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e574
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x408]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e56b
lea eax, [ebp + 0x408]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401287
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], ebx
jne 0x41e588
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040227d
push str.ProgramFilesFolder64
mov ecx, edi
call fcn.004a2b74
push dword [ebp - 0x20]
mov ecx, eax
call fcn.00401287
push 0x104
lea eax, [ebp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41e5cb
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
push eax
push 6
call fcn.00443de8
add esp, 0xc
lea eax, [ebp + 0x408]
push eax
call fcn.0058f15d
cmp word [ebp + eax*2 + 0x406], 0x5c
pop ecx
je 0x41e5f5
push 0x5d4dc0
lea eax, [ebp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x408]
push eax
lea eax, [ebp - 0x10]
push str._sMSIEXEC.EXE
push eax
call fcn.00401518
mov eax, dword [ebp - 0x10]
add esp, 0xc
push str.msiexec
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.004a2b74
push dword [ebp - 0x28]
mov ecx, eax
call fcn.00401287
lea ecx, [ebp - 0x10]
call fcn.0040116b
mov ecx, dword [esi + 0xdc]
cmp dword [esi + 0x110], ebx
je 0x41e678
call fcn.00561a95
cmp eax, 8
je 0x41e669
mov ecx, dword [esi + 0xdc]
call fcn.00401b44
cmp eax, 2
je 0x41e681
mov ecx, dword [esi + 0xdc]
call fcn.00401b44
cmp eax, 3
je 0x41e681
push str.__qn
lea ecx, [ebp - 0x10]
call fcn.004022ca
jmp 0x41e681
lea eax, [ebp - 0x10]
push eax
call fcn.00402453
mov ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x10]
push eax
call fcn.00402535
mov ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x10]
push eax
call fcn.00402472
mov ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x10]
push eax
call fcn.0040255d
push str._REBOOTReallySuppress
lea ecx, [ebp - 0x10]
call fcn.004022ca
mov eax, dword [ebp - 0x10]
push str.setupparams
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.004a2b74
push dword [ebp - 0x28]
mov ecx, eax
call fcn.00401287
mov ecx, dword [esi + 0xdc]
call fcn.00401b8e
push eax
lea ecx, [ebp - 0x18]
call fcn.00401287
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00415dfa
push str.SetupDir
mov ecx, edi
call fcn.004a2b74
push dword [ebp - 0x18]
mov ecx, eax
call fcn.00401287
push str.SkippedProducts
mov ecx, edi
call fcn.004a2b74
push 0x5d45c0
mov ecx, eax
call fcn.00401287
push ebx
push ebx
push ebx
push ebx
push 0x100
lea eax, [ebp]
push eax
push 3
lea eax, [ebp + 0x610]
push eax
push dword [esi + 0xe0]
call fcn.00590065
push ebx
push ebx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x610]
push eax
lea eax, [ebp + 0x408]
push 0x104
push eax
call fcn.00592568
lea eax, [ebp + 0x408]
push eax
lea eax, [ebp - 0x18]
push 0x5d47b8
push eax
call fcn.00401518
add esp, 0x48
push str.InstallerDir
mov ecx, edi
call fcn.004a2b74
push dword [ebp - 0x18]
mov ecx, eax
call fcn.00401287
push 0x5dedb4
mov ecx, edi
call fcn.004a2b74
push 0x5d7c38
mov ecx, eax
call fcn.00401287
xor ebx, ebx
inc ebx
jmp 0x41e319