Function at 0x14009c498
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x1400ddef0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r12, r8
mov rbp, rdx
mov rsi, rcx
call fcn.1400812e8
test rsi, rsi
lea rbx, [rax + 0x140]
jne 0x14009c4d8
or dword [rbx + 0x10], 0x104
jmp 0x14009c5c3
lea rax, [rsi + 0x40]
mov qword [rbx], rsi
test rax, rax
mov qword [rbx + 8], rax
je 0x14009c502
cmp byte [rax], 0
je 0x14009c502
lea r8, [rbx + 8]
lea rcx, str.america
mov edx, 0x16
call fcn.14009bbd0
mov rax, qword [rbx]
and dword [rbx + 0x10], 0
test rax, rax
je 0x14009c577
cmp byte [rax], 0
je 0x14009c577
mov rax, qword [rbx + 8]
test rax, rax
je 0x14009c52b
cmp byte [rax], 0
je 0x14009c52b
mov rcx, rbx
call fcn.14009c370
jmp 0x14009c533
mov rcx, rbx
call fcn.14009c41c
cmp dword [rbx + 0x10], 0
jne 0x14009c5d9
lea rcx, str.american
mov r8, rbx
mov edx, 0x41
call fcn.14009bbd0
test eax, eax
je 0x14009c5cf
mov rax, qword [rbx + 8]
test rax, rax
je 0x14009c56d
cmp byte [rax], 0
je 0x14009c56d
mov rcx, rbx
call fcn.14009c370
jmp 0x14009c5cf
mov rcx, rbx
call fcn.14009c41c
jmp 0x14009c5cf
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14009c5bc
cmp byte [rdi], 0
je 0x14009c5bc
or rcx, 0xffffffffffffffff
xor eax, eax
mov edx, 1
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 3
lea rcx, [0x14009bda8]
sete al
mov dword [rbx + 0x1c], eax
call qword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [rbx + 0x10], 4
jne 0x14009c5cf
and dword [rbx + 0x10], 0
jmp 0x14009c5cf
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 0x14009c743
lea rax, [rsi + 0x80]
neg rsi
sbb rdx, rdx
and rdx, rax
je 0x14009c61d
cmp byte [rdx], 0
je 0x14009c61d
lea rdi, [0x1400c8c78]
mov rsi, rdx
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
je 0x14009c61d
lea rdi, [0x1400c8c74]
mov rsi, rdx
mov ecx, 4
repe cmpsb byte [rsi], byte [rdi]
jne 0x14009c643
mov edx, 0xb
jmp 0x14009c622
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 0x14009c743
lea rdx, [rsp + 0x30]
mov rcx, rdx
call fcn.14007e204
test eax, eax
mov edi, eax
je 0x14009c743
cmp eax, 0xfde8
je 0x14009c743
cmp eax, 0xfde9
je 0x14009c743
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x14009c743
mov ecx, dword [rbx + 0x20]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x14009c743
test rbp, rbp
je 0x14009c6ab
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 0x14009c73c
cmp word [rbp], 0x814
jne 0x14009c6eb
lea r8, str.Norwegian_Nynorsk
mov edx, 0x40
mov rcx, r12
call fcn.14008c6fc
test eax, eax
je 0x14009c706
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140084308
jmp 0x14009c706
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 0x14009c743
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 0x14009c743
mov r9d, 0xa
lea rdx, [r12 + 0x80]
mov ecx, edi
lea r8d, [r9 + 6]
call fcn.14009f3ec
mov eax, 1
jmp 0x14009c745
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140086270
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret