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

Disassembly:
push ebp
lea ebp, [esp - 0x9b8]
sub esp, 0xa38
mov eax, dword [0x4f5a90]
xor eax, ebp
mov dword [ebp + 0x9b4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x5a6]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x78], ebx
mov word [ebp + 0x5a4], di
call fcn.00448590
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.00448590
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00448590
lea eax, [ebx + 0xb0]
add esp, 0x24
cmp dword [eax + 0x18], 8
jb 0x40a2f7
mov eax, dword [eax + 4]
jmp 0x40a2fa
add eax, 4
push str.WanNengWBInfo.ini
push eax
lea eax, [ebp + 0x39c]
push 0x4bae6c
push eax
call fcn.00448afe
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp + 0x7ac]
push eax
push 0x4badac
mov edi, str.CfgRootPath
push edi
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0x7ac]
push eax
call ebx
test eax, eax
je 0x40a36c
mov esi, dword [ebp - 0x78]
lea eax, [ebp + 0x7ac]
push eax
lea ecx, [esi + 0x40]
call fcn.0040228b
mov byte [esi + 0x20], 1
jmp 0x40a524
push 0
push 0x2b
lea eax, [ebp + 0x5a4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x5a4]
push 0x4bb09c
push eax
call fcn.00448ab8
lea eax, [ebp + 0x5a4]
push str.WanNengWBInput
push eax
call fcn.00448ab8
lea eax, [ebp + 0x5a4]
push 0x4bb09c
push eax
call fcn.00448ab8
lea eax, [ebp + 0x5a4]
push str.WanNengWB
push eax
call fcn.00448ab8
lea eax, [ebp + 0x5a4]
push 0x4bbb00
push eax
call fcn.00448ab8
add esp, 0x28
lea eax, [ebp + 0x5a4]
push eax
push esi
lea eax, [ebp + 0x7ac]
push eax
push 0x4badac
push edi
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x7ac]
push eax
call ebx
test eax, eax
jne 0x40a351
and word [ebp + 0x194], ax
push 0x206
push eax
lea eax, [ebp + 0x196]
push eax
call fcn.00448590
lea eax, [ebp + 0x194]
push str.SOFTWARE_
push eax
call fcn.00448ae2
lea eax, [ebp + 0x194]
push str.WanNengWBInput
push eax
call fcn.00448ab8
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0xf003f
push 0
lea eax, [ebp + 0x194]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a4a2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x7ac]
push eax
push 0
push 0
push edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a4a2
lea eax, [ebp + 0x7ac]
push eax
call ebx
test eax, eax
je 0x40a4a2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a351
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x20], 0
push esi
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.00448f5e
and word [eax + 2], 0
push str.WanNengWBInfo.ini
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x39c]
push 0x4bae6c
push eax
call fcn.00448afe
add esp, 0x18
lea eax, [ebp + 0x39c]
push eax
push esi
lea eax, [ebp + 0x7ac]
push eax
push 0x4badac
push edi
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x7ac]
push eax
call ebx
test eax, eax
jne 0x40a351
mov eax, dword [ebp - 0x78]
mov byte [eax + 0x20], 0
mov ecx, dword [ebp + 0x9b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004482ff
add ebp, 0x9b8
leave
ret