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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0044e6b0
mov eax, dword [0x55b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x824]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.0042ce60
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.0042ce60
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.0042ce60
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ce60
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042ce60
push ebx
lea eax, [ebp - 0x1044]
push esi
push eax
call fcn.0042ce60
add esp, 0x48
lea eax, [ebp - 0x824]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x824]
push 0x50a514
push eax
call fcn.00432c14
mov ebx, 0x50a4c8
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00432c14
lea eax, [ebp - 0x824]
push 0x50a514
push eax
call fcn.00432c14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00432c14
lea eax, [ebp - 0x824]
push 0x50a518
push eax
call fcn.00432c14
add esp, 0x28
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x5561a8
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
test eax, eax
jle 0x420b63
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0042f955
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x420b63
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0042ce60
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x61c]
push str.WnZip.exe
push eax
call fcn.00432c14
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x420d9b
push 0x208
lea eax, [ebp - 0xe3c]
push esi
push eax
call fcn.0042ce60
lea eax, [ebp - 0xe3c]
push str.SOFTWARE_
push eax
call fcn.0042f955
lea eax, [ebp - 0xe3c]
push 0x50a4c8
push eax
call fcn.00432c14
add esp, 0x1c
lea eax, [ebp - 0x1048]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xe3c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420c81
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0x208
push eax
lea eax, [ebp - 0x1044]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420c81
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0042f955
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x420c81
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0042ce60
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x61c]
push str.WnZip.exe
push eax
call fcn.00432c14
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x420c81
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x420d9b
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x26
lea eax, [ebp - 0xa2c]
mov ecx, edi
push eax
push esi
call fcn.00421009
lea eax, [ebp - 0xa2c]
push 0x50a514
push eax
call fcn.00432c14
lea eax, [ebp - 0xa2c]
push 0x50a4c8
push eax
call fcn.00432c14
lea eax, [ebp - 0xa2c]
push 0x50a514
push eax
call fcn.00432c14
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0042f955
add esp, 0x28
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x420d4e
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0042ce60
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x61c]
push str.WnZip.exe
push eax
call fcn.00432c14
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x420d9b
lea eax, [ebp - 0xc34]
push eax
call fcn.00432c45
pop ecx
test eax, eax
jle 0x420d72
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0xc34]
jne 0x420d78
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f955
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0042f955
add esp, 0x10
cmp word [ebp - 0x20c], si
jne 0x420da8
mov eax, esi
jmp 0x420db5
lea eax, [ebp - 0x20c]
push eax
call fcn.00432c45
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00418960
cmp word [ebp - 0x414], si
je 0x420ddd
lea eax, [ebp - 0x414]
push eax
call fcn.00432c45
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x6c]
call fcn.00418960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e191
mov esp, ebp
pop ebp
ret