Function at 0x1400ce720
Capabilities:
Get keyboard layout

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r12d, r9d
mov r13d, r8d
mov r14d, edx
mov r15, rcx
xor bl, bl
mov byte [rbp - 0x39], bl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r8, rax
mov edx, 2
mov ecx, r14d
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140075470
nop
mov r8, qword [rbp - 0x19]
cmp r8, r15
jne case.0x1400ce7ae.14
lea ecx, [r14 - 0xd]
cmp ecx, 0x1b
ja case.0x1400ce7ae.14
lea rdx, [0x140000000]
movzx eax, byte [rdx + rcx + 0xced5c]
mov ecx, dword [rdx + rax*4 + 0xced54]
add rcx, rdx
jmp rcx
mov rcx, qword [r15 + 0x298]
mov edx, r14d
mov rcx, qword [rcx + 0x38]
call fcn.1400a17f0
mov bl, 1
mov byte [rbp - 0x39], bl
mov r8, qword [rbp - 0x19]
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x1400ce808
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1400ce7f8
mov rcx, rax
call fcn.1400302c0
mov r9, rax
jmp 0x1400ce7fb
xor r9d, r9d
mov qword [0x1401f7b90], r9
mov r8, qword [rbp - 0x19]
jmp 0x1400ce80f
mov r9, qword [0x1401f7b90]
mov eax, 0x100
cmp si, ax
jae 0x1400ce829
movzx eax, si
mov eax, dword [r9 + rax*4 + 0x2bc]
and eax, 0x40
jmp 0x1400ce841
mov edx, 0x357
movzx ecx, si
call fcn.140146734
mov r8, qword [rbp - 0x19]
mov r9, qword [0x1401f7b90]
test eax, eax
je 0x1400cecd9
cmp si, 0x20
je 0x1400cecd9
test bl, bl
jne 0x1400cecf7
xor r10b, r10b
xor r14d, r14d
mov edx, r14d
mov r11, qword [r15 + 0x298]
mov ebx, dword [r11 + 0x10]
test ebx, ebx
jle 0x1400ce8bd
mov r8d, r14d
test r10b, r10b
jne 0x1400ce8bd
mov rax, qword [r11 + 0x20]
mov rcx, qword [r8 + rax]
mov rax, qword [r11 + 0x38]
test dword [rcx + 0xc], 0x490801
jne 0x1400ce8b3
mov rax, qword [rax + 0xb0]
test rax, rax
je 0x1400ce8b3
nop dword [rax]
cmp rcx, rax
je 0x1400ce8b0
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400ce8a0
jmp 0x1400ce8b3
mov r10b, 1
inc edx
add r8, 8
cmp edx, ebx
jl 0x1400ce876
mov r12d, r14d
test r10b, r10b
cmovne r12d, edx
xor r13b, r13b
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x1400ce900
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rbp - 0x29], rax
test rax, rax
je 0x1400ce8f6
mov rcx, rax
call fcn.1400302c0
mov r9, rax
jmp 0x1400ce8f9
mov r9, r14
mov qword [0x1401f7b90], r9
mov rax, qword [r9]
mov rcx, r9
call qword [rax + 0x30]
mov qword [rbp - 0x31], rax
mov rcx, qword [r15 + 0x298]
mov rdx, qword [rcx + 0x38]
cmp byte [rdx + 0x95c], 0
je 0x1400cea03
movsxd rbx, dword [rax - 0x10]
lea edi, [rbx + 1]
mov r9b, 1
xor r8d, r8d
mov edx, edi
lea rcx, [rbp - 0x31]
call fcn.140030f50
mov word [rax + rbx*2], 0x26
mov rax, qword [rbp - 0x31]
cmp edi, 0xffffffff
jne 0x1400ce976
test rax, rax
jne 0x1400ce956
mov edx, r14d
jmp 0x1400ce97e
mov rdx, rax
nop dword [rax]
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x1400ce960
sub rdx, rax
sar rdx, 1
dec edx
jmp 0x1400ce97e
mov word [rax + rbx*2 + 2], r14w
mov edx, edi
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x1400ce991
mov ecx, 1
xchg dword [rax - 8], ecx
mov rax, qword [rbp - 0x31]
movsxd rbx, dword [rax - 0x10]
lea edi, [rbx + 1]
mov r9b, 1
xor r8d, r8d
mov edx, edi
lea rcx, [rbp - 0x31]
call fcn.140030f50
mov word [rax + rbx*2], si
mov rax, qword [rbp - 0x31]
cmp edi, 0xffffffff
jne 0x1400ce9e6
test rax, rax
jne 0x1400ce9c4
mov edx, r14d
jmp 0x1400ce9ee
mov rdx, rax
nop word [rax + rax]
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x1400ce9d0
sub rdx, rax
sar rdx, 1
dec edx
jmp 0x1400ce9ee
mov word [rax + rbx*2 + 2], r14w
mov edx, edi
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x1400cea51
mov ecx, 1
xchg dword [rax - 8], ecx
jmp 0x1400cea51
call fcn.14003c2d0
sub rax, qword [r15 + 0x2c8]
cmp rax, 0x7d0
jle 0x1400cea23
lea rcx, [r15 + 0x2d0]
call fcn.1400310b0
movzx edx, si
lea rcx, [r15 + 0x2d0]
call fcn.140039520
call fcn.14003c2d0
mov qword [r15 + 0x2c8], rax
lea rdx, [r15 + 0x2d0]
lea rcx, [rbp - 0x31]
call fcn.140030d70
mov r13b, 1
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
mov r8d, r14d
mov qword [rbp - 1], r14
mov r14d, 0xffffffff
mov dword [rbp + 7], r14d
xor esi, esi
mov ebx, esi
mov qword [rbp + 0xf], rbx
lea rax, vtable.JRNumberArray_unsigned_int_.0
mov qword [rbp - 9], rax
mov rdx, qword [r15 + 0x298]
cmp dword [rdx + 0x10], esi
jle 0x1400cebee
mov r15d, r12d
mov edi, r15d
mov eax, dword [rdx + 0x10]
cmp r15d, eax
jl 0x1400ceaa6
nop
sub edi, eax
cmp edi, eax
jge 0x1400ceaa0
movsxd rcx, edi
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + rcx*8]
add rdx, 0x60
lea rcx, [rbp - 0x29]
call fcn.140006c10
nop
test r13b, r13b
je 0x1400ceb2a
lea rdx, [rbp - 0x29]
call fcn.1400cbd70
mov rax, qword [rbp - 0x31]
lea rsi, [0x14018ac20]
test rax, rax
cmovne rsi, rax
mov rbx, qword [rbp - 0x29]
cmp dword [rbx - 0x10], 0
jle 0x1400ceb20
mov rcx, qword [0x1401f8178]
test rcx, rcx
je 0x1400ceb20
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x28]
test rax, rax
je 0x1400ceb20
mov r10, qword [rax]
mov r9d, 3
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0xc0]
cmp eax, 0xffffffff
jne 0x1400ceb23
mov eax, r14d
test eax, eax
sete al
jmp 0x1400ceb86
mov rax, qword [rbp - 0x31]
lea rsi, [0x14018ac20]
test rax, rax
cmovne rsi, rax
mov rbx, qword [rbp - 0x29]
cmp dword [rbx - 0x10], 0
jle 0x1400ceb7d
mov rcx, qword [0x1401f8178]
test rcx, rcx
je 0x1400ceb7d
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x28]
test rax, rax
je 0x1400ceb7d
mov r10, qword [rax]
mov r9d, 3
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0xc0]
cmp eax, 0xffffffff
jne 0x1400ceb83
mov eax, r14d
cmp eax, 0xffffffff
setne al
test al, al
je 0x1400ceb96
mov edx, edi
lea rcx, [rbp - 9]
call fcn.14001c030
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400cebc3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400cebb9
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400cebc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
inc r15d
mov rax, qword [rbp + 0x67]
mov rdx, qword [rax + 0x298]
mov eax, r15d
sub eax, r12d
cmp eax, dword [rdx + 0x10]
jl 0x1400cea93
mov rbx, qword [rbp + 0xf]
mov r8d, dword [rbp - 1]
mov r15, qword [rbp + 0x67]
xor esi, esi
test r8d, r8d
jle 0x1400cec71
movsxd rcx, dword [rbx]
mov rax, qword [rdx + 0x20]
mov rdi, qword [rax + rcx*8]
mov r10, qword [rdx + 0x38]
cmp qword [rdi + 0x38], 0
je 0x1400cec3c
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rdi
mov rcx, r10
call fcn.1400a0a40
mov rax, qword [r15 + 0x298]
mov r10, qword [rax + 0x38]
mov rax, qword [rdi + 0x38]
mov rcx, qword [rax + 0x20]
mov rdi, qword [rcx]
mov r8d, esi
mov eax, esi
jmp 0x1400cec5a
cmp byte [r10 + 0x95c], 0
je 0x1400cec52
cmp r8d, 1
mov r8d, 2
je 0x1400cec55
mov r8d, esi
mov eax, 4
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rdx, rdi
mov rcx, r10
call fcn.1400a0a40
mov dil, 1
jmp 0x1400cec75
movzx edi, byte [rbp - 0x39]
test rbx, rbx
je 0x1400cec89
mov rcx, rbx
call fcn.1400025e0
mov rbx, rsi
mov qword [rbp + 0xf], rbx
test rbx, rbx
je 0x1400cec97
mov rcx, rbx
call fcn.1400025e0
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400cecc7
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400cecbd
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400cecc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r8, qword [rbp - 0x19]
mov r14d, dword [rbp + 0x6f]
mov r12d, dword [rbp + 0x7f]
mov r13d, dword [rbp + 0x77]
jmp 0x1400cecdd
movzx edi, byte [rbp - 0x39]
test dil, dil
jne 0x1400cecf7
mov r9d, r12d
mov r8d, r13d
mov edx, r14d
mov rcx, r15
call fcn.1400688d0
mov r8, qword [rbp - 0x19]
lea rax, vtable.JRWndPtr.0
mov qword [rbp - 0x21], rax
test r8, r8
je 0x1400ced21
cmp dword [rbp - 0x11], 1
jne 0x1400ced21
mov rax, qword [r8]
lea rdx, [rbp - 0x21]
mov rcx, r8
call qword [rax + 0x608]
mov r8, qword [rbp - 0x19]
cmp dword [rbp - 0x11], 2
jne 0x1400ced3e
test r8, r8
je 0x1400ced3e
mov rax, qword [r8]
mov edx, 1
mov rcx, r8
call qword [rax + 0x2e8]
nop
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret