Function at 0x14002ce60
Capabilities:
Get keyboard layout

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rcx, [0x1400a4310]
mov r8d, 0x400
mov edx, 0xffffffff
call fcn.140013700
movaps xmm0, xmmword [0x14008d580]
movaps xmmword [0x1400a43d0], xmm0
movaps xmm0, xmmword [0x14008d590]
movaps xmmword [0x1400a43e0], xmm0
movabs rax, 0x900000008
mov qword [0x1400a43f0], rax
movaps xmm0, xmmword [0x14008d5a0]
movups xmmword [0x1400a4414], xmm0
movaps xmm0, xmmword [0x14008d5b0]
movups xmmword [0x1400a4424], xmm0
movaps xmm0, xmmword [0x14008d5c0]
movups xmmword [0x1400a4434], xmm0
movaps xmm0, xmmword [0x14008d5d0]
movups xmmword [0x1400a4444], xmm0
movaps xmm0, xmmword [0x14008d5e0]
movups xmmword [0x1400a4454], xmm0
movaps xmm0, xmmword [0x14008d5f0]
movups xmmword [0x1400a4464], xmm0
movaps xmm0, xmmword [0x14008d600]
movaps xmmword [0x1400a4490], xmm0
movaps xmm0, xmmword [0x14008d610]
movaps xmmword [0x1400a44a0], xmm0
movaps xmm0, xmmword [0x14008d620]
movaps xmmword [0x1400a44b0], xmm0
mov dword [0x1400a4610], 0x38
movabs rax, 0x3b0000003a
mov qword [0x1400a4608], rax
movaps xmm0, xmmword [0x14008d630]
movups xmmword [0x1400a467c], xmm0
movaps xmm0, xmmword [0x14008d640]
movups xmmword [0x1400a45f8], xmm0
mov dword [0x1400a4344], 0x3f
movabs rax, 0x4200000041
mov qword [0x1400a4330], rax
mov dword [0x1400a4360], 0x43
mov dword [0x1400a4550], 0x44
mov dword [0x1400a437c], 0x45
mov dword [0x1400a4554], 0x46
movabs rax, 0x4800000047
mov qword [0x1400a43c4], rax
movaps xmm0, xmmword [0x14008d650]
movaps xmmword [0x1400a4390], xmm0
movaps xmm0, xmmword [0x14008d660]
movaps xmmword [0x1400a4350], xmm0
movaps xmm0, xmmword [0x14008d670]
movups xmmword [0x1400a4474], xmm0
mov dword [0x1400a4484], 0x56
mov dword [0x1400a43b0], 0x59
movaps xmm0, xmmword [0x14008d680]
movaps xmmword [0x1400a43a0], xmm0
movaps xmm0, xmmword [0x14008d690]
movups xmmword [0x1400a44c4], xmm0
movaps xmm0, xmmword [0x14008d6a0]
movups xmmword [0x1400a44d4], xmm0
movaps xmm0, xmmword [0x14008d6b0]
movups xmmword [0x1400a44e4], xmm0
movabs rax, 0x6500000064
mov qword [0x1400a44f4], rax
mov dword [0x1400a44fc], 0x66
movabs rax, 0x6b0000006a
mov qword [0x1400a4314], rax
movabs rax, 0x6d0000006c
mov qword [0x1400a4320], rax
mov dword [0x1400a4328], 0x6e
lea rsi, [0x1400a4710]
lea rdi, [0x14008db10]
mov r8d, 0x200
mov rcx, rsi
mov rdx, rdi
call fcn.14002d160
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rbx, rax
lea rcx, [0x1400948c4]
xor edx, edx
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
test rax, rax
je 0x14002d0d5
mov r14, rax
cmp rax, rbx
je 0x14002d0d5
mov r15d, 1
mov r12, qword [sym.imp.USER32.dll_MapVirtualKeyExW]
cmp r15, 0x80
jne 0x14002d0fc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
inc r15
cmp r15, 0x80
je 0x14002d0d5
mov r13d, dword [rdi + r15*4]
cmp r13d, 0xffffffff
je 0x14002d0f0
cmp r15, 0x29
je 0x14002d0f0
cmp r13d, 0x24
jae 0x14002d140
mov ecx, r15d
mov edx, 1
mov r8, r14
call r12
mov ecx, eax
xor edx, edx
mov r8, rbx
call r12
and eax, 0x7f
mov dword [rsi + rax*4], r13d
inc r15
cmp r15, 0x80
jne 0x14002d0fc
jmp 0x14002d0d5
lea eax, [r13 - 0x41]
cmp eax, 0xffffffe3
jb 0x14002d0f0
cmp r15, 0x1c
je 0x14002d0f0
cmp r15, 0x39
je 0x14002d0f0
jmp 0x14002d112