Function at 0x1400aeb70
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x14026f088]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov rdi, qword [0x1402799c0]
mov qword [rsp + 0x30], rdi
mov eax, 0xefffffff
xor r12d, r12d
cmp rdi, rax
jne 0x1400aebd3
mov qword [rdx], r12
mov r8, qword [0x140279980]
mov rdx, qword [0x140279988]
cmp r8, rdx
sete al
test al, al
jne 0x1400aec1e
mov rcx, r12
sub rdx, r8
sar rdx, 3
test rdx, rdx
je 0x1400aec1e
nop word [rax + rax]
mov rax, qword [r8 + rcx*8]
cmp qword [rax + 8], 0x100c
je 0x1400aec18
inc rcx
cmp rcx, rdx
jne 0x1400aec00
jmp 0x1400aec1e
lea r8, [rax + 0x30]
jmp 0x1400aec25
lea r8, [0x14027b328]
lea rdx, [0x140201200]
lea rcx, [rbp - 0x18]
call fcn.140008450
nop
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.140140da0
nop
mov r8, qword [rbp]
cmp r8, 8
jb 0x1400aec5e
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.140003900
mov r15, r12
mov r8, qword [0x140279c40]
mov rcx, r8
mov r14, qword [0x140279c38]
sub rcx, r14
movabs r9, 0xf83e0f83e0f83e1
mov rax, r9
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
je 0x1400af1f5
or rcx, 0xffffffffffffffff
test r15d, r15d
js 0x1400aecd1
sub r8, r14
mov rax, r9
imul r8
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r15d, edx
jge 0x1400aecd1
cmp rdx, r15
jbe 0x1400af1e8
mov r14, qword [r12 + r14 + 8]
jmp 0x1400aecd4
mov r14, rcx
cmp rdi, r14
jne 0x1400aece0
lea rax, [r15 + 1]
mov qword [rbx], rax
mov qword [rbp - 0x20], 7
xor ebx, ebx
mov qword [rbp - 0x28], rbx
mov word [rbp - 0x38], bx
cmp r14, 0x2b29
jne 0x1400aed14
lea r8d, [rbx + 2]
lea rdx, [0x1402116b0]
lea rcx, [rbp - 0x38]
call fcn.140003290
jmp 0x1400aedf8
cmp r14, 0x2b2f
jne 0x1400aed38
mov r8d, 2
lea rdx, [0x1402116c4]
lea rcx, [rbp - 0x38]
call fcn.140003290
jmp 0x1400aedf8
movzx edi, r14w
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x59]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsxd rbx, eax
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140185afc
mov rsi, rax
mov r9d, ebx
mov r8, rax
mov edx, 0x59
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [rsi], 0
jne 0x1400aed8d
xor r8d, r8d
jmp 0x1400aed9c
or r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400aed91
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140003290
mov rcx, rsi
call fcn.140185a84
lea rbx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rbx, qword [rbp - 0x38]
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x28]
lea rax, [rcx + rax*2]
cmp rbx, rax
je 0x1400aedec
movzx ecx, word [rbx]
call fcn.14019b01c
mov word [rbx], ax
add rbx, 2
jmp 0x1400aedc0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor ebx, ebx
mov qword [rbp], 7
mov qword [rbp - 8], rbx
mov word [rbp - 0x18], bx
test r14, r14
je 0x1400af173
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.140128850
cmp qword [rbp - 0x48], 0
sete al
test al, al
jne 0x1400af158
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov r8d, 0x32
lea rdx, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea rcx, [rsp + 0x60]
call fcn.140003290
nop
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.140004ee0
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
lea r8d, [r14 + 0xc]
lea rdx, str.Layout_Text
lea rcx, [rbp - 0x80]
call fcn.140003290
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 2]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400af0fe
mov dword [rsp + 0x50], ebx
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400af0fe
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400af0fe
mov dword [rbp - 0x60], 1
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140185afc
mov rbx, rax
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400af0fc
cmp dword [rbp - 0x60], 1
jne 0x1400af0fc
cmp word [rbx], ax
jne 0x1400aef91
xor r8d, r8d
jmp 0x1400aef9f
mov r8, r14
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400aef94
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.140003290
mov rcx, rbx
call fcn.140185a84
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400aefd9
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140003900
mov qword [rbp - 0x68], 7
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1400af008
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140003900
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400af035
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140003900
cmp qword [rbp - 8], 0
je 0x1400af173
lea r8, [rbp - 0x38]
lea rdx, [0x140201200]
lea rcx, [rbp - 0x80]
call fcn.140008450
nop
lea r8, [0x140201200]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000ae30
nop
lea r8, [rbp - 0x18]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000aea0
nop
mov r8, rax
mov rdx, r15
mov rcx, rsi
call fcn.140140da0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400af0a4
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140003900
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rbx
mov word [rbp - 0x58], bx
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1400af0d1
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140003900
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400af173
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
jmp 0x1400af16a
xor ebx, ebx
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400af118
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140003900
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rbx
mov word [rbp - 0x80], bx
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1400af145
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140003900
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1400af173
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
inc r8
call fcn.140003900
nop
mov r8, qword [rbp]
cmp r8, 8
jb 0x1400af18d
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.140003900
mov qword [rbp], 7
mov qword [rbp - 8], rbx
mov word [rbp - 0x18], bx
mov r8, qword [rbp - 0x20]
cmp r8, 8
jb 0x1400af1b7
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.140003900
inc r15
add r12, 0x108
cmp r15, r13
je 0x1400af1f5
mov r8, qword [0x140279c40]
mov r14, qword [0x140279c38]
mov rbx, qword [rsp + 0x40]
movabs r9, 0xf83e0f83e0f83e1
jmp 0x1400aec9c
lea rcx, str.invalid_vector_T__subscript
call fcn.140161f38
int3
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140185a60
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret