Function at 0x14008bd18
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r13d, r13d
mov r15, r8
mov r12d, r13d
mov rbx, rcx
mov edx, dword [rbx + 0x18]
mov edi, 1
cmp edx, dword [rbx + 0x1c]
jge 0x14008c05c
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r13
mov rax, qword [rcx]
movabs r10, 0xa5a0bf183857e170
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x78]
call qword [case.0x140063541.0]
test eax, eax
jne 0x14008be18
mov rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x80]
xor r9d, r9d
mov rcx, rbx
call fcn.14008bafc
test eax, eax
jne 0x14008be18
mov rdx, qword [rsp + 0x78]
lea r8, [rbp - 0x80]
mov r9d, edi
mov rcx, rbx
call fcn.14008bafc
test eax, eax
jne 0x14008be18
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
movabs r10, 0xe5b5b6e756d95370
mov rax, qword [rax + 0x68]
lea rdx, [rsp + 0x70]
call qword [case.0x140063541.0]
test eax, eax
jne 0x14008be18
mov rdx, qword [rsp + 0x70]
lea r9d, [rdi + 1]
lea r8, [rbp - 0x80]
mov rcx, rbx
call fcn.14008bafc
test eax, eax
jne 0x14008be18
mov rdx, qword [rsp + 0x70]
lea r9d, [rdi + 2]
lea r8, [rbp - 0x80]
mov rcx, rbx
call fcn.14008bafc
test eax, eax
je 0x14008be23
mov rcx, rbx
mov edi, r13d
call fcn.14008b72c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008be49
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
mov qword [rsp + 0x70], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008be6a
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
inc dword [rbx + 0x18]
test edi, edi
je 0x14008c060
xor edx, edx
lea rcx, [rbp - 0x2c]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
lea r9, [rbp - 0x30]
mov dword [rbp - 0x30], 0x74
xor r8d, r8d
mov edx, reloc.MFC42u.dll_CObList::AddTail
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
movzx edi, word [rbp - 0x7e]
lea r8, [rbp - 0x78]
or dword [rbp - 0x2c], 0xa2000000
lea rcx, [rbp - 0x16]
shl di, 0xa
mov edx, 0x20
or di, word [rbp - 0x80]
movzx eax, di
mov dword [rbp + 0x34], eax
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x24], eax
lea rax, [rbp - 0x16]
sub r8, rax
lea rax, [rdx + 0x7fffffde]
test rax, rax
je 0x14008befc
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14008befc
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14008bed9
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], r13w
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
nop dword [rax + rax]
test r12d, r12d
jne 0x14008c039
cmp ax, di
je 0x14008bf45
cmp r13w, word [rbp - 0x7e]
jne 0x14008c039
xor ax, di
mov ecx, COleDropTarget::XDropTarget::AddRef
test cx, ax
jne 0x14008c039
jmp 0x14008bf4b
mov r12d, 1
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14008c01e
movzx ecx, byte [rbp - 0x18]
lea rax, [rbp - 0x16]
mov qword [rsp + 0x68], rax
xor r9d, r9d
mov dword [rsp + 0x60], r13d
xor r8d, r8d
mov dword [rsp + 0x58], r13d
xor edx, edx
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], ecx
xor ecx, ecx
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_CreateFontW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14008c00f
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14008c000
lea r8, [rbp - 0x16]
mov edx, 0x20
mov rcx, rdi
call qword [sym.imp.GDI32.dll_GetTextFaceW]
nop dword [rax + rax]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x444
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
mov edx, 0x444
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
jmp 0x14008bd4e
mov dword [rbx + 0x18], r13d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret