Function at 0x40544d
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 [0x4209e0], eax
mov word [0x4209e4], ax
mov edi, 0x419495
push edi
lea eax, [ebp - 0x194]
push eax
call esi
push edi
lea eax, [ebp - 0x114]
push eax
call esi
cmp dword [ebp + 0x18], 0
je 0x4055c9
push dword [ebp + 0x18]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.Auto
push str.Language
push 0x41f110
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x420b78
lea eax, [ebp - 0x194]
push eax
lea ebx, [ebp - 0x114]
call fcn.00404ce3
mov dword [ebp - 4], eax
mov eax, ebx
push eax
lea eax, [ebp - 0x39c]
push eax
call esi
push 3
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x419b64
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0xe], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405518
push 0x419b60
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0x18]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x298]
push eax
push edi
lea eax, [ebp - 0x39c]
push eax
push 0x41f110
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40556c
push 0x5c
push dword [ebp + 0x18]
call fcn.00410e90
test eax, eax
pop ecx
pop ecx
je 0x40555f
inc eax
jmp 0x405562
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x298]
push ecx
push eax
call esi
push str.English
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4055b9
push dword [ebp + 0x18]
lea eax, [ebp - 0x298]
push ebx
push eax
push edi
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x298], 0
jne 0x4055b9
push str.English
lea eax, [ebp - 0x114]
push eax
call esi
jmp 0x4054ba
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x114]
call fcn.0040541f
jmp 0x405629
test bx, bx
je 0x4055dd
movzx eax, bx
mov word [0x4209e4], bx
mov dword [0x4209e0], eax
mov eax, dword [0x4209e4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and ax, 0x3ff
push 0x80
mov word [0x420b74], ax
lea eax, [ebp - 0x194]
push eax
push 0x40000003
push dword [0x4209e0]
call edi
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0x40001001
push dword [0x4209e0]
call edi
mov ebx, 0x104
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x194]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
add esp, 0xc
push ebx
lea eax, [ebp - 0x4a0]
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 0x4056c4
push 0x419b54
push dword [ebp + 0x14]
lea eax, [ebp - 0x5a4]
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 0x4056c4
and dword [ebp - 4], 0
lea eax, [ebp - 0x5a4]
push eax
push dword [ebp + 0x10]
mov word [0x420b74], 9
call esi
lea eax, [ebp - 0x114]
push eax
push 0
call fcn.004117b0
pop ecx
pop ecx
push dword [0x4209e0]
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