Function at 0x1400746a8
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 [0x1400ece98]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r13d, r13d
mov r15, r8
mov r12d, r13d
mov rdi, rcx
mov edx, dword [rdi + 0x18]
cmp edx, dword [rdi + 0x1c]
jge 0x1400749a4
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x14004e05b.0]
mov ebx, eax
test eax, eax
jne 0x14007479c
mov rdx, qword [rsp + 0x70]
lea r8, [rbp - 0x80]
xor r9d, r9d
mov rcx, rdi
call fcn.1400744a0
mov ebx, eax
test eax, eax
jne 0x14007479c
mov rdx, qword [rsp + 0x70]
lea r9d, [rax + 1]
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.1400744a0
mov ebx, eax
test eax, eax
jne 0x14007479c
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14004e05b.0]
mov ebx, eax
test eax, eax
jne 0x14007479c
mov rdx, qword [rsp + 0x78]
lea r9d, [rax + 2]
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.1400744a0
mov ebx, eax
test eax, eax
jne 0x14007479c
mov rdx, qword [rsp + 0x78]
lea r9d, [rax + 3]
lea r8, [rbp - 0x80]
mov rcx, rdi
call fcn.1400744a0
mov ebx, eax
test eax, eax
je 0x1400747a4
mov rcx, rdi
call fcn.140074168
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400747c0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400747d7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14004e05b.0]
inc dword [rdi + 0x18]
test ebx, ebx
jne 0x1400749a8
xor edx, edx
lea r8d, [rbx + 0x70]
lea rcx, [rbp - 0x2c]
call sub.msvcrt.dll_memset
lea r9, [rbp - 0x30]
mov dword [rbp - 0x30], 0x74
xor r8d, r8d
mov qword [rsp + 0x70], r13
mov edx, reloc.MFC42u.dll_CObList::AddTail
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
movzx ebx, word [rbp - 0x7e]
lea r8, [rbp - 0x78]
or dword [rbp - 0x2c], 0xa2000000
lea rcx, [rbp - 0x16]
shl bx, 0xa
mov edx, 0x20
or bx, word [rbp - 0x80]
movzx eax, bx
mov dword [rbp + 0x34], eax
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x24], eax
call fcn.140009cc8
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
nop dword [rax + rax]
test r12d, r12d
jne 0x14007497c
cmp ax, bx
je 0x140074883
cmp r13w, word [rbp - 0x7e]
jne 0x14007497c
xor ax, bx
mov ecx, COleDropTarget::XDropTarget::AddRef
test cx, ax
jne 0x14007497c
jmp 0x140074889
mov r12d, 1
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14007495c
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 0x14007494d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14007493e
lea r8, [rbp - 0x16]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetTextFaceW]
nop dword [rax + rax]
mov rdx, r14
mov rcx, rbx
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, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x70], r13
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 qword [rsp + 0x70], r13
mov edx, 0x444
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
jmp 0x1400746de
mov dword [rdi + 0x18], r13d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400842d0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret