Function at 0x140005220
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140011030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rcx
mov dword [rsp + 0x20], 0
mov eax, dword [0x140011e40]
test al, 1
jne 0x14000540a
or eax, 1
mov dword [0x140011e40], eax
lea rax, str.System_DefaultAnsiCodepage
mov qword [0x140011d80], rax
mov dword [0x140011d88], 0x800
mov dword [0x140011d8c], 0x1004
lea rax, str.System_DefaultCodepage
mov qword [0x140011d90], rax
mov dword [0x140011d98], 0x800
mov dword [0x140011d9c], 0xb
lea rax, str.System_DefaultLanguage
mov qword [0x140011da0], rax
mov dword [0x140011da8], 0x800
mov dword [0x140011dac], 9
lea rax, str.System_DefaultCountry
mov qword [0x140011db0], rax
mov dword [0x140011db8], 0x800
mov dword [0x140011dbc], 0xa
lea rax, str.System_Language
mov qword [0x140011dc0], rax
mov dword [0x140011dc8], 0x800
mov dword [0x140011dcc], 1
lea rax, str.System_Country
mov qword [0x140011dd0], rax
mov dword [0x140011dd8], 0x800
mov dword [0x140011ddc], 5
lea rax, str.User_DefaultAnsiCodepage
mov qword [0x140011de0], rax
mov dword [0x140011de8], 0x400
mov dword [0x140011dec], 0x1004
lea rax, str.User_DefaultCodepage
mov qword [0x140011df0], rax
mov dword [0x140011df8], 0x400
mov dword [0x140011dfc], 0xb
lea rax, str.User_DefaultLanguage
mov qword [0x140011e00], rax
mov dword [0x140011e08], 0x400
mov dword [0x140011e0c], 9
lea rax, str.User_DefaultCountry
mov qword [0x140011e10], rax
mov dword [0x140011e18], 0x400
mov dword [0x140011e1c], 0xa
lea rax, str.User_Language
mov qword [0x140011e20], rax
mov dword [0x140011e28], 0x400
mov dword [0x140011e2c], 1
lea rax, str.User_Country
mov qword [0x140011e30], rax
mov dword [0x140011e38], 0x400
mov dword [0x140011e3c], 5
lea rcx, [rsp + 0x20]
call qword [0x14000a448]
nop
lea rcx, [rsp + 0x28]
call qword [0x14000a448]
nop
lea rdi, [0x140011d88]
or r13, 0xffffffffffffffff
lea r12, [0x140011e48]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CMFCTabCtrl::Draw3DTab]
mov r9d, 0xa
lea r8, [rsp + 0x40]
mov edx, dword [rdi + 4]
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
lea eax, [rbx - 1]
cmp eax, 9
ja 0x140005485
lea r9, [rsp + 0x40]
mov r8, qword [rdi - 8]
lea rdx, str._os_item_name___s__value___s___
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CMFCRibbonRecentFilesList::FillList]
jmp 0x1400054f7
cmp r11d, 0x7a
jne 0x1400054f7
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rdi + 4]
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsxd rsi, eax
test eax, eax
jle 0x1400054f7
mov eax, 2
mul rsi
cmovo rax, r13
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov rbx, rax
test rax, rax
je 0x1400054f7
mov r9d, esi
mov r8, rax
mov edx, dword [rdi + 4]
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x1400054ee
mov r9, rbx
mov r8, qword [rdi - 8]
lea rdx, str._os_item_name___s__value___s___
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CMFCRibbonRecentFilesList::FillList]
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_delete__]
mov rax, qword [rsp + 0x20]
cmp dword [rax - 0x10], 0
je 0x140005512
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_]
add rdi, 0x10
cmp rdi, r12
jl 0x140005434
mov rax, qword [rsp + 0x28]
cmp dword [rax - 0x10], 0
je 0x140005588
lea rdx, str._locale_attrs_
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100u.dll_]
lea rdx, str.__locale_attrs_
lea rcx, [rsp + 0x30]
call qword [0x14000a658]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [0x14000a3d0]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
jmp 0x1400055a5
lea rdx, [0x14000b4d8]
mov rcx, rbp
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007d60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret