Function at 0x405c30
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
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x630
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
xor esi, esi
push 0x45700c
lea ecx, [esp + 0x10]
mov dword [esp + 0x638], eax
mov dword [esp + 0x14], esi
call fcn.00403aa0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [esp + 0x18], si
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x220], si
mov ecx, 0x81
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
push 0x2b
lea eax, [esp + 0x228]
push eax
push esi
mov dword [esp + 0x654], esi
call ebx
lea ecx, [esp + 0x220]
push str._shiqiang_
push ecx
call fcn.00431651
lea edx, [esp + 0x228]
push str.wnime
push edx
call fcn.00431651
lea eax, [esp + 0x230]
push 0x457080
push eax
call fcn.00431651
lea ecx, [esp + 0x238]
push str.wnime
push ecx
call fcn.00431651
lea edx, [esp + 0x240]
push str..ini
push edx
call fcn.00431651
add esp, 0x28
lea eax, [esp + 0x220]
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x45700c
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405da8
lea eax, [esp + 0x18]
push eax
call fcn.004318b6
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403620
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00403490
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x644], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405f28
xor eax, eax
mov word [esp + 0x428], si
mov ecx, 0x81
lea edi, [esp + 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x428]
push str.SOFTWAREShiQiang_
push eax
call fcn.0043167b
lea ecx, [esp + 0x430]
push str.wnime
push ecx
call fcn.00431651
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
lea eax, [esp + 0x434]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x405e92
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push str.InstallPath
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x405e92
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e92
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.00403a60
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00403520
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x644], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405f28
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x26
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
lea edx, [esp + 0x18]
push str._shiqiang_
push edx
call fcn.00431651
lea eax, [esp + 0x20]
push str.wnime
push eax
call fcn.00431651
lea ecx, [esp + 0x28]
push 0x457080
push ecx
call fcn.00431651
lea edx, [esp + 0x30]
push edx
call fcn.004318b6
add esp, 0x1c
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.00403620
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00403490
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x644], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x63c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x634]
mov eax, esi
call fcn.00431018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4