Function at 0x501090
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x54c40e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov eax, ebp
mov dword [esp + 0x1c], ebp
call fcn.004a6e70
mov dword [esp + 0x38], 0
lea ecx, [ebp + 0x1c]
mov dword [ebp], vtable.CTranslationManager.0
call dword [0x55a6c4]
mov byte [esp + 0x38], 1
lea esi, [ebp + 0x20]
mov ecx, esi
call dword [0x55a6c4]
mov byte [esp + 0x38], 2
lea ebx, [ebp + 0x24]
mov ecx, ebx
call dword [0x55a6c4]
mov byte [esp + 0x38], 3
lea eax, [ebp + 0x28]
push eax
call fcn.004d3aa0
mov byte [esp + 0x38], 4
lea ecx, [ebp + 0x48]
push ecx
call fcn.004d3aa0
mov byte [esp + 0x38], 5
lea edx, [ebp + 0x68]
push edx
call fcn.004d3aa0
mov byte [esp + 0x38], 6
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x38], 7
push 0x400
push 0x400
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
inc eax
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov byte [esp + 0x38], 8
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x38], 7
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov edi, str.ComponentsI18N_
call fcn.0040f2b0
add esp, 8
mov byte [esp + 0x38], 9
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x38], 7
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 6
lea ecx, [esp + 0x24]
push ecx
push 0x59
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea esi, [esp + 0x20]
mov edi, ebp
call fcn.00503360
mov ecx, ebx
test eax, eax
je 0x50122c
mov edx, esi
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
cmp dword [esp + 0x44], 0
je 0x501304
mov eax, esi
push eax
jmp 0x501260
push 0x56e514
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
cmp dword [esp + 0x44], 0
je 0x501304
lea ecx, [esp + 0x20]
push ecx
push str.Language__s_is_not_available
push 1
mov ecx, str.I18N
call fcn.004151b0
add esp, 0xc
push 0x56e514
push str.Startup__default_LangID_is__s
push 5
mov ecx, str.I18N
call fcn.004151b0
mov ecx, dword [0x5c6d24]
add esp, 0xc
push 0
push ebp
push 0x5024c0
push str.I18N_DumpWndXml
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push 0
push ebp
push 0x502550
push str.I18N_GetText
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push 0
push ebp
push 0x502410
push str.I18N_TranslateWnd
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push 0
push ebp
push 0x5023d0
push str.I18N_GetCurrentLngEx
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push 0
push ebp
push 0x5023f0
push str.I18N_IsLngAvailable
call fcn.004b3950
mov ecx, dword [0x5c6d24]
push 0
push ebp
push 0x502600
push str.I18N_MessageBox
call fcn.004b3950
mov byte [esp + 0x38], 6
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x38], 0xffffffff
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00532776
add esp, 0x28
ret 8