Function at 0x404e81
Capabilities:
Get common file path
Get geographical location
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
push ebx
push esi
push edi
mov bx, dx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x4205c8], eax
mov word [0x4205c4], ax
mov edi, 0x420540
lea eax, [ebp - 0x194]
push edi
push eax
call esi
lea eax, [ebp - 0x114]
push edi
push eax
call esi
cmp dword [ebp + 0x18], 0
je 0x405002
push dword [ebp + 0x18]
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
push str.Auto
push str.Language
push 0x41b798
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x10]
lea edx, [ebp - 0x194]
lea ecx, [ebp - 0x114]
push dword [ebp + 0x14]
push 0x420544
call fcn.00405138
mov dword [ebp - 4], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x39c]
push eax
call esi
lea eax, [ebp - 0x10]
push 3
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and byte [ebp - 0xe], 0
lea eax, [ebp - 0x10]
push 0x41b8d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404f56
lea eax, [ebp - 0x39c]
push 0x41b8cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0x18]
lea eax, [ebp - 0x298]
push ebx
push eax
lea eax, [ebp - 0x39c]
push edi
push eax
push 0x41b798
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x404fa5
push 0x5c
push dword [ebp + 0x18]
call fcn.00411110
pop ecx
test eax, eax
pop ecx
je 0x404f98
inc eax
jmp 0x404f9b
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x298]
push ecx
push eax
call esi
lea eax, [ebp - 0x114]
push str.English
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404ff2
push dword [ebp + 0x18]
lea eax, [ebp - 0x298]
push ebx
push eax
push edi
lea eax, [ebp - 0x114]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x298], 0
jne 0x404ff2
lea eax, [ebp - 0x114]
push str.English
push eax
call esi
jmp 0x404eef
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x114]
call fcn.00404e53
jmp 0x40505e
test bx, bx
je 0x405016
movzx eax, bx
mov word [0x4205c4], bx
mov dword [0x4205c8], eax
mov eax, dword [0x4205c4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and ax, 0x3ff
push 0x80
mov word [0x4206d0], ax
lea eax, [ebp - 0x194]
push eax
push 0x40000003
push dword [0x4205c8]
call edi
mov ebx, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
push 0x40001001
push dword [0x4205c8]
call edi
lea eax, [ebp - 0x194]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
add esp, 0xc
lea eax, [ebp - 0x4a0]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x298]
push str._shelp
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x4050f9
push 0x41b8c0
lea eax, [ebp - 0x5a4]
push dword [ebp + 0x14]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x5a4]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4050f9
and dword [ebp - 4], 0
lea eax, [ebp - 0x5a4]
push eax
mov word [0x4206d0], 9
push dword [ebp + 0x10]
call esi
lea eax, [ebp - 0x114]
push eax
push 0
call fcn.00411400
pop ecx
pop ecx
push dword [0x4205c8]
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x194]
push eax
push dword [ebp + 0xc]
call esi
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14