Function at 0x140035580
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov esi, 5
mov rbp, rcx
mov r8, rcx
mov r9d, esi
mov ecx, 0x400
lea edx, [rsi + 0x54]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x140035927
mov qword [rsp + 0x48], r14
call fcn.140014190
mov rcx, rax
mov qword [rsp + 0x20], rbp
lea r9, str.The_lang_code_is__s
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
lea edx, [rsi - 2]
call fcn.14009cf00
lea r14, [rbp + 0xa]
mov r9d, esi
mov r8, r14
lea edx, [rsi + 0x55]
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x1400358e7
mov qword [rsp + 0x40], rdi
call fcn.140014190
mov rcx, rax
mov qword [rsp + 0x20], r14
lea r9, str.The_country_code_is__s
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
lea edx, [rsi - 2]
call fcn.14009cf00
mov rdi, 0xffffffffffffffff
lea rbx, [rbp + 0x18]
mov r8, rdi
inc r8
cmp word [rbp + r8*2], 0
jne 0x140035631
mov rdx, rbp
mov rcx, rbx
call fcn.140013240
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140035683
lea rcx, [rdx + 1]
mov rax, rbx
mov qword [rbx + 0x10], rcx
cmp r8, 8
jb 0x140035670
mov rax, qword [rbx]
mov r8d, 0x5f
mov word [rax + rdx*2], r8w
xor edx, edx
mov word [rax + rcx*2], dx
jmp 0x1400356a2
xor r8d, r8d
mov qword [rsp + 0x20], 1
lea r9, [0x1400f4190]
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.140015940
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x1400356a2
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140023ab0
cmp qword [rbx + 0x18], 8
mov rdi, rbx
jb 0x1400356c8
mov rdi, qword [rbx]
call fcn.140014190
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9, str.CompleteLocale_is__s
mov edx, 3
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
call fcn.14009cf00
mov r11, qword [rbx + 0x18]
mov r8, rbx
mov rdi, qword [rsp + 0x40]
cmp r11, 8
jb 0x140035702
mov r8, qword [rbx]
mov r10, qword [rbx + 0x10]
cmp r10, rsi
jne 0x140035736
lea rcx, [0x1400f41c8]
mov rdx, rsi
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140035736
add rcx, 2
sub rdx, 1
jne 0x140035720
jmp 0x1400357a8
mov r8, rbx
cmp r11, 8
jb 0x140035742
mov r8, qword [rbx]
mov r9d, 7
cmp r10, r9
jne 0x140035776
lea rcx, str.zh_HANS
mov edx, r9d
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140035776
add rcx, 2
sub rdx, 1
jne 0x140035760
jmp 0x1400357a8
mov r8, rbx
cmp r11, 8
jb 0x140035782
mov r8, qword [rbx]
cmp r10, rsi
jne 0x1400357df
lea rcx, [0x1400f41e8]
mov rdx, rsi
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400357df
add rcx, 2
sub rdx, 1
jne 0x140035794
call fcn.140014190
lea r9, str.Language_is_Chinese_Simplified
mov rcx, rax
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
mov edx, 2
call fcn.14009cf00
mov r14, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov r8, rbx
cmp r11, 8
jb 0x1400357eb
mov r8, qword [rbx]
cmp r10, rsi
jne 0x140035822
lea rcx, [0x1400f4238]
mov rdx, rsi
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140035822
add rcx, 2
sub rdx, 1
jne 0x140035800
call fcn.140014190
lea r9, str.Language_is_Chinese_Traditional
jmp 0x1400357b4
mov rdx, rbx
mov r10, r11
cmp r11, 8
jb 0x140035831
mov rdx, qword [rbx]
mov r11, qword [rbx + 0x10]
cmp r11, r9
jne 0x140035868
lea rcx, str.zh_HANT
sub rdx, rcx
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x140035868
add rcx, 2
sub r9, 1
jne 0x140035844
call fcn.140014190
lea r9, str.Language_is_Chinese_Traditional
jmp 0x1400357b4
mov r8, rbx
cmp r10, 8
jb 0x140035874
mov r8, qword [rbx]
cmp r11, rsi
jne 0x1400358ab
lea rcx, [0x1400f4258]
mov rdx, rsi
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400358ab
add rcx, 2
sub rdx, 1
jne 0x140035886
call fcn.140014190
lea r9, str.Language_is_Chinese_Traditional
jmp 0x1400357b4
cmp r10, 8
jb 0x1400358b4
mov rbx, qword [rbx]
cmp r11, rsi
jne 0x140035910
lea rcx, [0x1400f4268]
sub rbx, rcx
movzx eax, word [rcx]
cmp word [rbx + rcx], ax
jne 0x140035910
add rcx, 2
sub rsi, 1
jne 0x1400358c3
call fcn.140014190
lea r9, str.Language_is_Chinese_Traditional
jmp 0x1400357b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.GetLocaleInfo:_UserDefaultCountryCode_failed_with_error_:__d
mov edx, esi
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
call fcn.14009cf00
mov r14, qword [rsp + 0x48]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.GetLocaleInfo:_UserDefaultLanguage_failed_with_error_:__d
mov edx, esi
lea r8, str.RpcServer::SysInfo::CHotKeyHandler::GetLocale
call fcn.14009cf00
mov rbx, qword [rsp + 0x50]
xor al, al
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret