Function at 0x10005efec
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x1d0
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor r13d, r13d
cmp byte [0x10019a4f7], r13b
je 0x10005f312
sub ecx, 0x1c
je 0x10005f0d3
sub ecx, 0x35
je 0x10005f05a
sub ecx, 0xbc
je 0x10005f04c
sub ecx, 2
jmp 0x10005f312
call fcn.10005efb0
mov byte [0x10019aa82], 1
jmp 0x10005f0cc
mov ebx, dword [0x10019aa88]
mov edi, 0x3ff
and ebx, edi
call fcn.10005eca0
mov r11, qword [0x10019aa88]
mov eax, r11d
and eax, edi
cmp ebx, eax
je 0x10005f08c
and r11w, di
cmp r11w, 0x12
sete byte [0x10019aa80]
call fcn.10005eed8
cmp qword [fcn.1000df40c], r13
je 0x10005f0cc
call fcn.10005691c
mov rcx, rax
call qword [fcn.1000df40c]
mov rbx, rax
cmp rax, r13
je 0x10005f0cc
xor edx, edx
mov rcx, rax
call qword [fcn.1000df40c]
call fcn.10005691c
mov rdx, rbx
mov rcx, rax
call qword [fcn.1000df40c]
mov al, 1
jmp 0x10005f314
cmp rdx, r13
je 0x10005f312
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov rcx, qword [0x1001a1e48]
mov ebp, eax
cmp rcx, r13
je 0x10005f101
call qword [sym.imp.msvcrt.dll_free]
mov qword [0x1001a1e48], r13
mov rcx, 0xffffffffffffffff
mov eax, 8
mov dword [0x1001a1e54], r13d
mov dword [0x1001a1e50], r13d
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.100179e38
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp rax, r13
je 0x10005f312
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov r12d, r13d
cmp ebp, r13d
jbe 0x10005f30a
mov rbx, rsi
mov esi, 4
mov edi, 0x3ff
lea r14d, [rsi - 1]
movzx eax, word [rbx]
and ax, di
cmp ax, si
je 0x10005f17a
cmp ax, 0x11
je 0x10005f17a
cmp ax, 0x12
jne 0x10005f18c
mov rcx, qword [rbx]
call qword [fcn.1000df40c]
cmp eax, r13d
je 0x10005f2f5
cmp dword [0x1001a1e50], r13d
mov ecx, r13d
jle 0x10005f1bb
movzx edx, word [rbx]
mov rax, qword [0x1001a1e48]
cmp word [rax], dx
je 0x10005f305
inc ecx
add rax, 0x90
cmp ecx, dword [0x1001a1e50]
jl 0x10005f1a2
mov rax, qword [rbx]
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0xc0], r13w
mov qword [rsp + 0x30], rax
call sub.msvcrt.dll_memset
movzx r11d, word [rbx]
mov edx, r11d
and edx, edi
sub edx, esi
je 0x10005f20a
sub edx, 0xd
je 0x10005f201
cmp edx, 1
jne 0x10005f21a
lea r8, [0x100199522]
jmp 0x10005f26e
lea r8, [0x100199528]
jmp 0x10005f26e
mov ecx, r11d
shr ecx, 0xa
sub ecx, 1
je 0x10005f267
cmp ecx, 1
je 0x10005f25e
lea r8, [rsp + 0xc0]
mov r9d, 0x80
mov edx, r14d
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx r11d, word [rsp + 0xc0]
movzx ecx, word [rsp + 0xc2]
mov word [rsp + 0x38], r11w
call qword [sym.imp.msvcrt.dll_towlower]
mov word [rsp + 0x3c], r13w
mov word [rsp + 0x3a], ax
jmp 0x10005f27b
lea r8, [0x100199516]
jmp 0x10005f26e
lea r8, [0x10019951c]
lea rcx, [rsp + 0x38]
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
movzx ecx, word [rbx]
mov r9d, 0x80
lea r8, [rsp + 0xc0]
lea edx, [r9 - 0x7e]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x3e]
mov edx, 0x40
call sub.msvcrt.dll_wcscpy_s
mov edx, dword [0x1001a1e50]
lea rcx, [0x1001a1e48]
inc edx
call fcn.10005fabc
cmp eax, r13d
jl 0x10005f2f5
movsxd rax, dword [0x1001a1e50]
lea rdx, [rsp + 0x30]
mov r8d, 0x90
lea rcx, [rax + rax*8]
mov rax, qword [0x1001a1e48]
shl rcx, 4
add rcx, rax
call sub.msvcrt.dll_memcpy
inc dword [0x1001a1e50]
inc r12d
add rbx, 8
cmp r12d, ebp
jb 0x10005f163
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_free
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.10017a260
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret