Function at 0x42c2c0
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
push 0xffffffffffffffff
push 0x62878f
mov eax, dword fs:[0]
push eax
mov eax, 0x1498
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x149c], ecx
xor eax, eax
mov word [ebp - 0x83c], ax
push 0x206
push 0
lea ecx, [ebp - 0x83a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x42c], dx
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x634], cx
push 0x206
push 0
lea edx, [ebp - 0x632]
push edx
call fcn.005b4de0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa4c], ax
push 0x206
push 0
lea ecx, [ebp - 0xa4a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xe5c], dx
push 0x206
push 0
lea eax, [ebp - 0xe5a]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.005b4de0
add esp, 0xc
push 0
push 0x2b
lea eax, [ebp - 0x83c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x641c8c
lea ecx, [ebp - 0x83c]
push ecx
call fcn.005b4d90
add esp, 8
push 0x641c90
lea edx, [ebp - 0x83c]
push edx
call fcn.005b4d90
add esp, 8
push 0x641c94
lea eax, [ebp - 0x83c]
push eax
call fcn.005b4d90
add esp, 8
push 3
lea ecx, [ebp - 0x1498]
push ecx
call fcn.00412530
mov ecx, eax
call fcn.0040c7b0
mov dword [ebp - 0x14a0], eax
mov edx, dword [ebp - 0x14a0]
mov dword [ebp - 0x14a4], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14a4]
call fcn.0040e5d0
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.005b4d90
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1498]
call fcn.0040e530
push 0x641c98
lea ecx, [ebp - 0x83c]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0x83c]
push edx
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0x641ca4
push 0x641ca8
push 0x641cc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0xe5c]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4dbe
add esp, 8
push 0x641cd0
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4d90
add esp, 8
push 0x641cd4
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c58d
xor edx, edx
mov word [ebp - 0x1064], dx
push 0x206
push 0
lea eax, [ebp - 0x1062]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x1064]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641cd8
lea eax, [ebp - 0x1064]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x1064]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c58d
lea edx, [ebp - 0xe5c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
jmp 0x42ca6c
xor ecx, ecx
mov word [ebp - 0xc54], cx
push 0x206
push 0
lea edx, [ebp - 0xc52]
push edx
call fcn.005b4de0
add esp, 0xc
push 0x641cdc
lea eax, [ebp - 0xc54]
push eax
call fcn.005b4dbe
add esp, 8
push 0x641cf0
lea ecx, [ebp - 0xc54]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0x220]
push edx
push 0x20019
push 0
lea eax, [ebp - 0xc54]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0
jne 0x42c758
mov dword [ebp - 0x1068], 0x104
lea ecx, [ebp - 0x1068]
push ecx
lea edx, [ebp - 0xa4c]
push edx
push 0
push 0
push str.InstallPath
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0
jne 0x42c758
lea ecx, [ebp - 0xa4c]
push ecx
lea edx, [ebp - 0xe5c]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4dbe
add esp, 8
push 0x641d0c
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4d90
add esp, 8
push 0x641d10
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c758
xor edx, edx
mov word [ebp - 0x1274], dx
push 0x206
push 0
lea eax, [ebp - 0x1272]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x1274]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641d14
lea eax, [ebp - 0x1274]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x1274]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c758
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xe5c]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
mov ecx, dword [ebp - 0x149c]
call fcn.0042d950
jmp 0x42ca6c
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0x634]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x641d18
lea ecx, [ebp - 0x634]
push ecx
call fcn.005b4d90
add esp, 8
push 0x641d1c
lea edx, [ebp - 0x634]
push edx
call fcn.005b4d90
add esp, 8
push 0x641d20
lea eax, [ebp - 0x634]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0xe5c]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4dbe
add esp, 8
push 0x641d24
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4d90
add esp, 8
push 0x641d28
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c8ac
xor edx, edx
mov word [ebp - 0x147c], dx
push 0x206
push 0
lea eax, [ebp - 0x147a]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x147c]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641d2c
lea eax, [ebp - 0x147c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x147c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c8ac
lea edx, [ebp - 0xe5c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
jmp 0x42ca6c
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c94a
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0xe5c]
push eax
call fcn.005b4dbe
add esp, 8
lea ecx, [ebp - 0xe5c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641d30
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
push 0x641d34
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0xe5c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
jmp 0x42ca6c
lea ecx, [ebp - 0xa4c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c9e8
lea edx, [ebp - 0xa4c]
push edx
lea eax, [ebp - 0xe5c]
push eax
call fcn.005b4dbe
add esp, 8
lea ecx, [ebp - 0xe5c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641d38
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
push 0x641d3c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4d90
add esp, 8
lea edx, [ebp - 0xe5c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
jmp 0x42ca6c
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0xe5c]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b4dbe
add esp, 8
push 0x641d40
lea edx, [ebp - 0x21c]
push edx
call fcn.005b4d90
add esp, 8
push 0x641d44
lea eax, [ebp - 0x21c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0xe5c]
push ecx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x94
call fcn.0040e570
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0xb0
call fcn.0040e570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret