Function at 0x4013c0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41948b
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x423808]
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, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00410510
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40159a
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x668]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x65c]
mov dword [ebp - 0x660], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x640]
call fcn.00401130
push 1
push dword [ebp - 0x630]
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0
mov dword [ebp - 0x664], 0x5c
call fcn.00402940
inc eax
push eax
push 0
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x640]
call fcn.00402a00
mov esi, eax
lea eax, [ebp - 0x640]
cmp eax, esi
je 0x401508
cmp dword [ebp - 0x62c], 8
jb 0x4014df
push dword [ebp - 0x640]
call fcn.0040f137
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
call fcn.00401810
cmp dword [ebp - 0x644], 8
jb 0x40151f
push dword [ebp - 0x658]
call fcn.0040f137
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410510
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x218]
push 0x41a4bc
push eax
call fcn.00401100
lea eax, [ebp - 0x218]
push eax
push 0x41a4bc
push 0x104
push edi
call fcn.0040f8c4
add esp, 0x28
cmp dword [ebp - 0x62c], 8
mov bl, 1
mov dword [ebp - 4], 0xffffffff
jb 0x40159a
push dword [ebp - 0x640]
call fcn.0040f137
add esp, 4
mov eax, dword [ebp - 0x65c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4015b7
push eax
call esi
mov dword [ebp - 0x65c], 0
test bl, bl
jne 0x401708
lea eax, [ebp - 0x65c]
push eax
push 0x20019
push 0
push str.SOFTWAREiSafe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40169d
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x668]
push eax
push 0
push str.Path
push dword [ebp - 0x65c]
mov dword [ebp - 0x660], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x658]
call fcn.00401130
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410510
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push 0x41a4bc
push eax
call fcn.00401100
lea eax, [ebp - 0x218]
push eax
push 0x41a4bc
push 0x104
push edi
call fcn.0040f8c4
add esp, 0x28
cmp dword [ebp - 0x644], 8
mov bl, 1
jb 0x40169d
push dword [ebp - 0x658]
call fcn.0040f137
add esp, 4
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x4016b4
push eax
call esi
mov dword [ebp - 0x65c], 0
test bl, bl
jne 0x401708
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00410510
add esp, 0xc
lea eax, [ebp - 0x628]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.iSafe_
lea eax, [ebp - 0x628]
push eax
push str._s_s
push 0x104
push edi
call fcn.0040f8c4
add esp, 0x14
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.0040fa6b
mov esp, ebp
pop ebp
ret