Function at 0x404320
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x21c]
push esi
push edi
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x224], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4043e7
push dword [ebp - 0x21c]
call edi
lea eax, [ebp - 0x21c]
mov dword [esi + 0x28], 0
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
mov dword [ebp - 0x220], 4
call ebx
test eax, eax
jne 0x4043d3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.Normal_Online
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call edi
xor eax, eax
cmp dword [ebp - 0x224], 1
sete al
mov dword [esi + 0x2c], eax
jmp 0x404502
push 0
push 0x23
lea edi, [esi + 0xa4]
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x415910
push 0x104
push edi
call fcn.00405b86
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x40442d
push str.wenguanjia
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi + 0xc]
push 0x104
push edi
call fcn.00405b86
push str._Data_
push 0x104
push edi
call fcn.00405b86
push str.filecache.ini
push 0x104
push edi
call fcn.00405b86
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00408ec0
add esp, 0x30
mov dword [ebp - 0x10], 0x6b0069
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc], 0x69006c
mov dword [ebp - 8], 0x74
push edi
push 0x104
push eax
push 0x4156d4
push str.InstallName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
je 0x4044d8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4044d8
mov dword [esi + 0x28], 1
jmp 0x4044fc
push edi
push 0
push str.Normal_Online
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [ebp - 0x224], eax
cmp eax, 1
sete cl
mov dword [esi + 0x2c], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x220]
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
call ebx
test eax, eax
jne 0x40458e
push dword [ebp - 0x220]
call edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 4
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
call ebx
test eax, eax
jne 0x4045aa
lea eax, [ebp - 0x220]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.InstallID
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004057df
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xa4]
push eax
push 0
push str.InstallID
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x40], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004057df
mov esp, ebp
pop ebp
ret