Function at 0x14001594c
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x140027550]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r12, r8
mov rbp, rdx
mov rsi, rcx
call fcn.14000e2c4
lea rbx, [rax + 0x140]
test rsi, rsi
jne 0x14001598c
or dword [rbx + 0x10], 0x104
jmp 0x140015a76
lea rax, [rsi + 0x40]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
test rax, rax
je 0x1400159b6
cmp byte [rax], 0
je 0x1400159b6
lea r8, [rbx + 8]
lea rcx, str.america
mov edx, 0x16
call fcn.1400151ec
mov rax, qword [rbx]
and dword [rbx + 0x10], 0
test rax, rax
je 0x140015a2b
cmp byte [rax], 0
je 0x140015a2b
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400159df
cmp byte [rax], 0
je 0x1400159df
mov rcx, rbx
call fcn.14001582c
jmp 0x1400159e7
mov rcx, rbx
call fcn.1400158d4
cmp dword [rbx + 0x10], 0
jne 0x140015a8c
lea rcx, str.american
mov r8, rbx
mov edx, 0x41
call fcn.1400151ec
test eax, eax
je 0x140015a82
mov rax, qword [rbx + 8]
test rax, rax
je 0x140015a21
cmp byte [rax], 0
je 0x140015a21
mov rcx, rbx
call fcn.14001582c
jmp 0x140015a82
mov rcx, rbx
call fcn.1400158d4
jmp 0x140015a82
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x140015a6f
cmp byte [rdi], 0
je 0x140015a6f
or rcx, 0xffffffffffffffff
xor eax, eax
mov edx, 1
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 3
lea rcx, [0x1400152c0]
sete al
mov dword [rbx + 0x1c], eax
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [rbx + 0x10], 4
jne 0x140015a82
and dword [rbx + 0x10], 0
jmp 0x140015a82
mov dword [rbx + 0x10], 0x104
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], eax
cmp dword [rbx + 0x10], 0
je 0x140015bf9
lea rax, [rsi + 0x80]
neg rsi
sbb rdx, rdx
and rdx, rax
je 0x140015ad0
cmp byte [rdx], 0
je 0x140015ad0
lea rdi, [0x140021ef8]
mov rsi, rdx
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
je 0x140015ad0
lea rdi, [0x140021ef4]
mov rsi, rdx
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x140015af6
mov edx, 0xb
jmp 0x140015ad5
mov edx, 0x1004
mov ecx, dword [rbx + 0x24]
lea r8, [rsp + 0x30]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140015bf9
lea rdx, [rsp + 0x30]
mov rcx, rdx
call fcn.140019898
mov edi, eax
test eax, eax
je 0x140015bf9
cmp eax, 0xfde8
je 0x140015bf9
cmp eax, 0xfde9
je 0x140015bf9
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x140015bf9
mov ecx, dword [rbx + 0x20]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x140015bf9
test rbp, rbp
je 0x140015b5e
movzx eax, word [rbx + 0x20]
mov word [rbp], ax
movzx eax, word [rbx + 0x24]
mov word [rbp + 4], di
mov word [rbp + 2], ax
test r12, r12
je 0x140015bf2
mov eax, 0x814
cmp word [rbp], ax
jne 0x140015ba1
lea r8, str.Norwegian_Nynorsk
mov edx, 0x40
mov rcx, r12
call fcn.14000d130
test eax, eax
je 0x140015bbc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400089e4
jmp 0x140015bbc
mov ecx, dword [rbx + 0x20]
mov r9d, 0x40
mov r8, r12
mov edx, 0x1001
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140015bf9
mov ecx, dword [rbx + 0x24]
lea r8, [r12 + 0x40]
mov edx, 0x1002
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x140015bf9
mov r9d, 0xa
lea rdx, [r12 + 0x80]
mov ecx, edi
lea r8d, [r9 + 6]
call fcn.140019b7c
mov eax, 1
jmp 0x140015bfb
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140007e20
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret