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

Disassembly:
push 0xce4
mov eax, 0x5d8c62
call fcn.00447fd9
mov esi, ecx
mov edi, 0x208
lea eax, [ebp - 0x420]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.004a2e40
push edi
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004a2e40
push edi
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.004a2e40
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004a2e40
push edi
lea eax, [ebp - 0xc40]
push ebx
push eax
call fcn.004a2e40
add esp, 0x3c
lea eax, [ebp - 0x420]
push ebx
push 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x64a880
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004b0beb
lea eax, [ebp - 0x420]
push str.WanNengWBInput
push eax
call fcn.004b0beb
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004b0beb
lea eax, [ebp - 0x420]
push 0x5e1980
push eax
call fcn.004b0beb
lea eax, [ebp - 0x420]
push str..ini
push eax
call fcn.004b0beb
add esp, 0x28
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x64a7dc
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a6b8d
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
test eax, eax
jle 0x429704
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], ebx
mov word [ebp - 0xc58], ax
cmp word [ebp - 0x218], ax
je 0x429631
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00401ea0
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc74], 7
mov dword [ebp - 0xc78], ebx
mov word [ebp - 0xc88], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
call edi
test eax, eax
je 0x4296e4
lea eax, [ebp - 0xc88]
mov ecx, esi
push eax
lea eax, [ebp - 0xc58]
push eax
call fcn.00428d1e
test al, al
je 0x4296e4
cmp word [ebp - 0x218], 0
jne 0x429698
mov eax, ebx
jmp 0x4296a5
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401ea0
lea ecx, [esi + 0x74]
lea eax, [ebp - 0xc88]
cmp ecx, eax
je 0x4296cb
push 0xffffffffffffffff
push ebx
push eax
call fcn.004020b0
lea ecx, [ebp - 0xc88]
push ebx
push 1
call fcn.00401de0
lea ecx, [ebp - 0xc58]
jmp 0x429b02
push ebx
push 1
lea ecx, [ebp - 0xc88]
call fcn.00401de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc58]
push ebx
push 1
call fcn.00401de0
push 0x208
lea eax, [ebp - 0xa38]
push ebx
push eax
call fcn.004a2e40
lea eax, [ebp - 0xa38]
push 0x5e27d4
push eax
call fcn.004a6b8d
lea eax, [ebp - 0xa38]
push str.WanNengWBInput
push eax
call fcn.004b0beb
add esp, 0x1c
lea eax, [ebp - 0xcec]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0xa38]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4298a6
lea eax, [ebp - 0xcf0]
mov dword [ebp - 0xcf0], 0x208
push eax
lea eax, [ebp - 0xc40]
push eax
push ebx
push ebx
push str.InstallPath
push dword [ebp - 0xcec]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4298a6
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a6b8d
xor eax, eax
mov dword [ebp - 0xc44], 7
pop ecx
pop ecx
mov dword [ebp - 0xc48], ebx
mov word [ebp - 0xc58], ax
cmp word [ebp - 0x218], ax
jne 0x4297d0
mov eax, ebx
jmp 0x4297dd
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00401ea0
xor eax, eax
mov dword [ebp - 4], 2
mov dword [ebp - 0xc8c], 7
mov dword [ebp - 0xc90], ebx
mov word [ebp - 0xca0], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
call edi
test eax, eax
je 0x429886
lea eax, [ebp - 0xca0]
mov ecx, esi
push eax
lea eax, [ebp - 0xc58]
push eax
call fcn.00428d1e
test al, al
je 0x429886
cmp word [ebp - 0x218], 0
jne 0x429848
mov eax, ebx
jmp 0x429855
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401ea0
lea ecx, [esi + 0x74]
lea eax, [ebp - 0xca0]
cmp ecx, eax
je 0x42987b
push 0xffffffffffffffff
push ebx
push eax
call fcn.004020b0
lea ecx, [ebp - 0xca0]
jmp 0x4296d1
push ebx
push 1
lea ecx, [ebp - 0xca0]
call fcn.00401de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc58]
push ebx
push 1
call fcn.00401de0
push dword [ebp - 0xcec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x26
lea eax, [ebp - 0x830]
push eax
push ebx
call fcn.0047f7db
lea eax, [ebp - 0x830]
push 0x64a880
push eax
call fcn.004b0beb
lea eax, [ebp - 0x830]
push str.WanNengWBInput
push eax
call fcn.004b0beb
lea eax, [ebp - 0x830]
push 0x64a880
push eax
call fcn.004b0beb
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a6b8d
xor eax, eax
mov dword [ebp - 0xcd4], 7
add esp, 0x30
mov dword [ebp - 0xcd8], ebx
mov word [ebp - 0xce8], ax
cmp word [ebp - 0x218], ax
jne 0x429931
mov eax, ebx
jmp 0x42993e
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xce8]
call fcn.00401ea0
xor eax, eax
mov dword [ebp - 4], 4
mov dword [ebp - 0xcbc], 7
mov dword [ebp - 0xcc0], ebx
mov word [ebp - 0xcd0], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 5
push eax
call edi
test eax, eax
je 0x4299e5
lea eax, [ebp - 0xcd0]
mov ecx, esi
push eax
lea eax, [ebp - 0xce8]
push eax
call fcn.00428d1e
test al, al
je 0x4299e5
cmp word [ebp - 0x218], 0
jne 0x4299a9
mov eax, ebx
jmp 0x4299b6
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401ea0
lea ecx, [esi + 0x74]
lea eax, [ebp - 0xcd0]
cmp ecx, eax
je 0x429aee
push 0xffffffffffffffff
push ebx
push eax
call fcn.004020b0
jmp 0x429aee
lea eax, [ebp - 0x628]
push eax
call fcn.004a6baf
pop ecx
test eax, eax
jle 0x429aee
xor eax, eax
mov dword [ebp - 0xc5c], 7
mov dword [ebp - 0xc60], ebx
mov word [ebp - 0xc70], ax
cmp word [ebp - 0x628], ax
jne 0x429a20
mov eax, ebx
jmp 0x429a2d
lea eax, [ebp - 0x628]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc70]
call fcn.00401ea0
xor eax, eax
mov dword [ebp - 0xca4], 7
mov dword [ebp - 0xca8], ebx
mov word [ebp - 0xcb8], ax
cmp dword [ebp - 0xc5c], 8
lea eax, [ebp - 0xc70]
mov byte [ebp - 4], 7
cmovae eax, dword [ebp - 0xc70]
push eax
call edi
test eax, eax
je 0x429ad2
lea eax, [ebp - 0xcb8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc70]
push eax
call fcn.00428d1e
test al, al
je 0x429ad2
cmp word [ebp - 0x218], 0
jne 0x429a9f
mov eax, ebx
jmp 0x429aac
lea eax, [ebp - 0x218]
push eax
call fcn.004a6baf
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x44]
call fcn.00401ea0
lea ecx, [esi + 0x74]
lea eax, [ebp - 0xcb8]
cmp ecx, eax
je 0x429ad2
push 0xffffffffffffffff
push ebx
push eax
call fcn.004020b0
push ebx
push 1
lea ecx, [ebp - 0xcb8]
call fcn.00401de0
push ebx
push 1
lea ecx, [ebp - 0xc70]
call fcn.00401de0
push ebx
push 1
lea ecx, [ebp - 0xcd0]
call fcn.00401de0
lea ecx, [ebp - 0xce8]
push ebx
push 1
call fcn.00401de0
call fcn.00447f83
ret