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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e053
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0x1f4
push 0x1f4
call fcn.004555dc
add esp, 4
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x10], eax
mov ecx, 0x479910
call fcn.00402270
push eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x479684
push str.EnbArea
push 0x472158
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0045518e
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1fc], ecx
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00455605
add esp, 4
lea ecx, [ebp - 0xc4]
call fcn.00402230
test eax, eax
je 0x406b07
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00455120
mov eax, dword [ebp - 0x200]
jmp 0x406df8
lea ecx, [ebp - 0x20]
call fcn.00402210
mov byte [ebp - 4], 1
mov dword [ebp - 0xb4], 0x94
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x406bbb
lea ecx, [ebp - 0xc8]
push ecx
push 0x20019
push 0
push str.Control_PanelInternational
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406bb6
mov dword [ebp - 0xdc], 0xa
mov dword [ebp - 0xd8], 1
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0x472180
mov edx, dword [ebp - 0xc8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ba9
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x20]
call fcn.004552a9
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406c3f
push 0x104
lea edx, [ebp - 0x1ec]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x1f0]
call fcn.00402210
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1ec]
push eax
push str._swin.ini
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.0044fdfe
add esp, 0xc
lea ecx, [ebp - 0x1f0]
call fcn.00402270
push eax
push 0xa
lea edx, [ebp - 0xe8]
push edx
push 0x479688
push str.iCountry
push str.intl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004552a9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f0]
call fcn.00455120
lea ecx, [ebp - 0xb8]
call fcn.00402210
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.00402880
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x1c], 0
jmp 0x406c7b
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0xc0]
jge 0x406dbc
push 0x3b
lea ecx, [ebp - 0xc4]
call fcn.0044fa9b
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jge 0x406cdc
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00455259
lea ecx, [ebp - 0x20]
call fcn.00402270
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402280
test eax, eax
jne 0x406cd7
mov dword [ebp - 0x18], 1
jmp 0x406dbc
lea ecx, [ebp - 0xc4]
call fcn.00402880
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f4]
sub ecx, dword [ebp - 0xbc]
sub ecx, 1
push ecx
lea edx, [ebp - 0x204]
push edx
lea ecx, [ebp - 0xc4]
call fcn.0044f9a7
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00455259
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x204]
call fcn.00455120
lea ecx, [ebp - 0x20]
call fcn.00402270
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402280
test eax, eax
jne 0x406d67
mov dword [ebp - 0x18], 1
jmp 0x406dbc
mov edx, dword [ebp - 0xbc]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0044fa23
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x220]
push edx
lea ecx, [ebp - 0xc4]
call fcn.00455259
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x208]
call fcn.00455120
jmp 0x406c72
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00455120
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00455120
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00455120
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret