Function at 0x40ead9
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, 0x104c
call fcn.00554f90
mov eax, dword [0x630f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x824], ax
xor esi, esi
lea eax, [ebp - 0x822]
push esi
push eax
mov edi, ecx
call fcn.005534a0
xor eax, eax
push ebx
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push esi
push eax
call fcn.005534a0
xor eax, eax
push ebx
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push esi
push eax
call fcn.005534a0
xor eax, eax
push ebx
mov word [ebp - 0xe3c], ax
lea eax, [ebp - 0xe3a]
push esi
push eax
call fcn.005534a0
xor eax, eax
push ebx
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.005534a0
xor eax, eax
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.005534a0
add esp, 0x48
lea eax, [ebp - 0x824]
push esi
push 0x2b
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x5bfc6c
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00554508
lea eax, [ebp - 0x824]
push str.DongFangInput
push eax
call fcn.00554508
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00554508
lea eax, [ebp - 0x824]
push str.DongFang
push eax
call fcn.00554508
lea eax, [ebp - 0x824]
push 0x5c08e0
push eax
call fcn.00554508
add esp, 0x28
lea eax, [ebp - 0x824]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x5bf400
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00554537
lea eax, [ebp - 0x20c]
push str.2.4.0.0618
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00554508
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x40ecc4
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push esi
push eax
call fcn.005534a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00554537
lea eax, [ebp - 0x61c]
push str.DFConfig.exe
push eax
call fcn.00554508
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x40efe3
xor eax, eax
push 0x206
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push esi
push eax
call fcn.005534a0
lea eax, [ebp - 0x1044]
push str.SOFTWARE_
push eax
call fcn.00554537
lea eax, [ebp - 0x1044]
push str.DongFangInput
push eax
call fcn.00554508
add esp, 0x1c
lea eax, [ebp - 0x1048]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1044]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ee79
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0xe3c]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x1048]
mov dword [ebp - 0x104c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ee79
lea eax, [ebp - 0xe3c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00554537
lea eax, [ebp - 0x20c]
push str.2.4.0.0618
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push 0x5bfc6c
push eax
call fcn.00554508
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x40ee79
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push esi
push eax
call fcn.005534a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00554537
lea eax, [ebp - 0x61c]
push str.DFConfig.exe
push eax
call fcn.00554508
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
je 0x40ee79
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x414], si
jne 0x40ee22
mov eax, esi
jmp 0x40ee2f
lea eax, [ebp - 0x414]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x84]
call fcn.00402120
cmp word [ebp - 0x20c], si
je 0x40ee5a
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x9c]
call fcn.00402120
mov ecx, edi
call fcn.0040fa22
jmp 0x40f03b
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x26
lea eax, [ebp - 0xa2c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xa2c]
push 0x5bfc6c
push eax
call fcn.00554508
lea eax, [ebp - 0xa2c]
push str.DongFangInput
push eax
call fcn.00554508
lea eax, [ebp - 0xa2c]
push 0x5bfc6c
push eax
call fcn.00554508
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00554537
lea eax, [ebp - 0x20c]
push str.2.4.0.0618
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push 0x5bfc6c
push eax
call fcn.00554508
add esp, 0x38
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x40ef70
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push esi
push eax
call fcn.005534a0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00554537
lea eax, [ebp - 0x61c]
push str.DFConfig.exe
push eax
call fcn.00554508
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call ebx
test eax, eax
jne 0x40efe3
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
je 0x40ef85
lea eax, [ebp - 0xc34]
jmp 0x40ef9e
lea eax, [ebp - 0xe3c]
push eax
call ebx
test eax, eax
lea eax, [ebp - 0xe3c]
jne 0x40ef9e
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00554537
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00554537
lea eax, [ebp - 0x20c]
push str.2.4.0.0618
push eax
call fcn.00554508
lea eax, [ebp - 0x20c]
push 0x5bfc6c
push eax
call fcn.00554508
add esp, 0x20
cmp word [ebp - 0x414], si
jne 0x40eff0
mov eax, esi
jmp 0x40effd
lea eax, [ebp - 0x414]
push eax
call fcn.00553cf3
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x84]
call fcn.00402120
cmp word [ebp - 0x20c], si
je 0x40f028
lea eax, [ebp - 0x20c]
push eax
call fcn.00553cf3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x9c]
call fcn.00402120
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553d0c
leave
ret