Function at 0x100162c0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1474
call fcn.1005dec0
mov eax, dword [0x10098f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1474], ecx
mov word [ebp - 0x830], 0
push 0x206
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0x628], 0
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0xa40], 0
push 0x206
push 0
lea eax, [ebp - 0xa3e]
push eax
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0xe50], 0
push 0x206
push 0
lea ecx, [ebp - 0xe4e]
push ecx
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.1005bf00
add esp, 0xc
push 0
push 0x2b
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x10080d10
lea ecx, [ebp - 0x830]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080d14
lea edx, [ebp - 0x830]
push edx
call fcn.1005be54
add esp, 8
push 0x10080d24
lea eax, [ebp - 0x830]
push eax
call fcn.1005be54
add esp, 8
push 0x10080d28
lea ecx, [ebp - 0x830]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080d34
lea edx, [ebp - 0x830]
push edx
call fcn.1005be54
add esp, 8
push 0x10080d38
lea eax, [ebp - 0x830]
push eax
call fcn.1005be54
add esp, 8
push 0x10080d44
lea ecx, [ebp - 0x830]
push ecx
call fcn.1005be54
add esp, 8
lea edx, [ebp - 0x830]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x10080d50
push 0x10080d54
push 0x10080d6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xe50]
push edx
call fcn.1005be7e
add esp, 8
lea eax, [ebp - 0xe50]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be7e
add esp, 8
push 0x10080d7c
lea edx, [ebp - 0x210]
push edx
call fcn.1005be54
add esp, 8
push 0x10080d94
lea eax, [ebp - 0x210]
push eax
call fcn.1005be54
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001655e
mov word [ebp - 0x1058], 0
push 0x206
push 0
lea edx, [ebp - 0x1056]
push edx
call fcn.1005bf00
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1058]
push ecx
call fcn.1005be7e
add esp, 8
push 0x10080d98
lea edx, [ebp - 0x1058]
push edx
call fcn.1005be54
add esp, 8
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001655e
lea ecx, [ebp - 0xe50]
push ecx
mov edx, dword [ebp - 0x1474]
add edx, 0x634
push edx
call fcn.1005be7e
add esp, 8
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x1474]
add ecx, 0x83c
push ecx
call fcn.1005be7e
add esp, 8
jmp 0x10016a78
mov word [ebp - 0xc48], 0
push 0x206
push 0
lea edx, [ebp - 0xc46]
push edx
call fcn.1005bf00
add esp, 0xc
push 0x10080db0
lea eax, [ebp - 0xc48]
push eax
call fcn.1005be7e
add esp, 8
push 0x10080dc4
lea ecx, [ebp - 0xc48]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080dd4
lea edx, [ebp - 0xc48]
push edx
call fcn.1005be54
add esp, 8
push 0x10080dd8
lea eax, [ebp - 0xc48]
push eax
call fcn.1005be54
add esp, 8
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0xc48]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x10016759
mov dword [ebp - 0x105c], 0x104
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0xa40]
push ecx
push 0
push 0
push str.InstallPath
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
jne 0x10016759
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0xe50]
push ecx
call fcn.1005be7e
add esp, 8
lea edx, [ebp - 0xe50]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1005be7e
add esp, 8
push 0x10080dfc
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080e14
lea edx, [ebp - 0x210]
push edx
call fcn.1005be54
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016759
mov word [ebp - 0x1268], 0
push 0x206
push 0
lea ecx, [ebp - 0x1266]
push ecx
call fcn.1005bf00
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x1268]
push eax
call fcn.1005be7e
add esp, 8
push 0x10080e18
lea ecx, [ebp - 0x1268]
push ecx
call fcn.1005be54
add esp, 8
lea edx, [ebp - 0x1268]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016759
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xe50]
push ecx
mov edx, dword [ebp - 0x1474]
add edx, 0x634
push edx
call fcn.1005be7e
add esp, 8
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x1474]
add ecx, 0x83c
push ecx
call fcn.1005be7e
add esp, 8
mov ecx, dword [ebp - 0x1474]
call fcn.10016a90
jmp 0x10016a78
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x10080e30
lea ecx, [ebp - 0x628]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080e34
lea edx, [ebp - 0x628]
push edx
call fcn.1005be54
add esp, 8
push 0x10080e44
lea eax, [ebp - 0x628]
push eax
call fcn.1005be54
add esp, 8
push 0x10080e48
lea ecx, [ebp - 0x628]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080e54
lea edx, [ebp - 0x628]
push edx
call fcn.1005be54
add esp, 8
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xe50]
push ecx
call fcn.1005be7e
add esp, 8
lea edx, [ebp - 0xe50]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1005be7e
add esp, 8
push 0x10080e58
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080e70
lea edx, [ebp - 0x210]
push edx
call fcn.1005be54
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100168dc
mov word [ebp - 0x1470], 0
push 0x206
push 0
lea ecx, [ebp - 0x146e]
push ecx
call fcn.1005bf00
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x1470]
push eax
call fcn.1005be7e
add esp, 8
push 0x10080e74
lea ecx, [ebp - 0x1470]
push ecx
call fcn.1005be54
add esp, 8
lea edx, [ebp - 0x1470]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100168dc
lea eax, [ebp - 0xe50]
push eax
mov ecx, dword [ebp - 0x1474]
add ecx, 0x634
push ecx
call fcn.1005be7e
add esp, 8
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x1474]
add eax, 0x83c
push eax
call fcn.1005be7e
add esp, 8
jmp 0x10016a78
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016981
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0xe50]
push eax
call fcn.1005be7e
add esp, 8
lea ecx, [ebp - 0xe50]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.1005be7e
add esp, 8
push str.2.8.1.1120
lea eax, [ebp - 0x210]
push eax
call fcn.1005be54
add esp, 8
push 0x10080ea4
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be54
add esp, 8
lea edx, [ebp - 0xe50]
push edx
mov eax, dword [ebp - 0x1474]
add eax, 0x634
push eax
call fcn.1005be7e
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x1474]
add edx, 0x83c
push edx
call fcn.1005be7e
add esp, 8
jmp 0x10016a78
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016a24
lea ecx, [ebp - 0xa40]
push ecx
lea edx, [ebp - 0xe50]
push edx
call fcn.1005be7e
add esp, 8
lea eax, [ebp - 0xe50]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be7e
add esp, 8
push 0x10080ea8
lea edx, [ebp - 0x210]
push edx
call fcn.1005be54
add esp, 8
push 0x10080ec0
lea eax, [ebp - 0x210]
push eax
call fcn.1005be54
add esp, 8
lea ecx, [ebp - 0xe50]
push ecx
mov edx, dword [ebp - 0x1474]
add edx, 0x634
push edx
call fcn.1005be7e
add esp, 8
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x1474]
add ecx, 0x83c
push ecx
call fcn.1005be7e
add esp, 8
jmp 0x10016a78
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0xe50]
push eax
call fcn.1005be7e
add esp, 8
lea ecx, [ebp - 0xe50]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.1005be7e
add esp, 8
push 0x10080ec4
lea eax, [ebp - 0x210]
push eax
call fcn.1005be54
add esp, 8
push 0x10080edc
lea ecx, [ebp - 0x210]
push ecx
call fcn.1005be54
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b2a2
mov esp, ebp
pop ebp
ret