Function at 0x4727c4
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.0046cf20
mov eax, dword [0x676314]
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.004830b0
push ebx
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.004830b0
push ebx
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004830b0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004830b0
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004830b0
push ebx
lea eax, [ebp - 0x1044]
push esi
push eax
call fcn.004830b0
add esp, 0x48
lea eax, [ebp - 0xe3c]
push ebx
push esi
push eax
call fcn.004830b0
lea eax, [ebp - 0xe3c]
push 0x5f0acc
push eax
call fcn.004917a3
lea eax, [ebp - 0xe3c]
push 0x5e8b28
push eax
call fcn.00491772
add esp, 0x1c
lea eax, [ebp - 0x1048]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xe3c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4729db
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 0x4729db
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004917a3
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x4729db
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004830b0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x61c]
push str.Config.exe
push eax
call fcn.00491772
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x4729db
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x20c], si
jne 0x47296e
mov eax, esi
jmp 0x47297b
lea eax, [ebp - 0x20c]
push eax
call fcn.00491757
pop ecx
push eax
lea eax, [ebp - 0x20c]
lea ebx, [edi + 0x44]
push eax
mov ecx, ebx
call fcn.00402650
cmp word [ebp - 0x414], si
je 0x4729a5
lea eax, [ebp - 0x414]
push eax
call fcn.00491757
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x414]
add edi, 0x74
push eax
mov ecx, edi
call fcn.00402650
cmp dword [edi + 0x14], 8
jb 0x4729bf
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4729c7
mov ebx, dword [ebx]
push edi
push ebx
push 0x5f15d0
call fcn.00474d64
add esp, 0xc
jmp 0x472c68
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x2b
lea eax, [ebp - 0x824]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x824]
push 0x5e8aa0
push eax
call fcn.00491772
lea eax, [ebp - 0x824]
push 0x5e8b28
push eax
call fcn.00491772
lea eax, [ebp - 0x824]
push 0x5e8aa0
push eax
call fcn.00491772
lea eax, [ebp - 0x824]
push 0x5e8b28
push eax
call fcn.00491772
lea eax, [ebp - 0x824]
push 0x5ecb30
push eax
call fcn.00491772
add esp, 0x28
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x5e87f0
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.004917a3
lea eax, [ebp - 0x20c]
push eax
call fcn.00491757
add esp, 0xc
test eax, eax
jle 0x472b0a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004917a3
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x472b0a
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004830b0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x61c]
push str.Config.exe
push eax
call fcn.00491772
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x472c16
push esi
push 0x26
lea eax, [ebp - 0xa2c]
push eax
push esi
call fcn.00459f6d
lea eax, [ebp - 0xa2c]
push 0x5e8aa0
push eax
call fcn.00491772
lea eax, [ebp - 0xa2c]
push str.ZhiNengPYInput
push eax
call fcn.00491772
lea eax, [ebp - 0xa2c]
push 0x5e8aa0
push eax
call fcn.00491772
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004917a3
add esp, 0x38
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x472bc9
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004830b0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x61c]
push str.Config.exe
push eax
call fcn.00491772
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x472c16
lea eax, [ebp - 0xc34]
push eax
call fcn.00491757
pop ecx
test eax, eax
jle 0x472bed
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0xc34]
jne 0x472bf3
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004917a3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004917a3
add esp, 0x10
cmp word [ebp - 0x20c], si
jne 0x472c23
mov eax, esi
jmp 0x472c30
lea eax, [ebp - 0x20c]
push eax
call fcn.00491757
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x44]
call fcn.00402650
cmp word [ebp - 0x414], si
je 0x472c58
lea eax, [ebp - 0x414]
push eax
call fcn.00491757
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x74]
call fcn.00402650
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ce06
mov esp, ebp
pop ebp
ret