Function at 0x140043460
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x140195088]
xor rax, rsp
mov qword [rbp + 7], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
test rdx, rdx
jne 0x1400434aa
mov rbx, qword [rcx + 0x30]
call fcn.140038c90
mov esi, eax
lea r13, [0x1400b8d60]
lea r15, [0x1400b8fc8]
test rbx, rbx
jne 0x1400434dc
mov r8d, eax
lea rdx, str.FONT___d___none_
mov rcx, qword [rdi + 0x48]
call fcn.140032800
jmp 0x1400435af
mov rax, qword [rbx + 0x10]
mov r12, qword [rax + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov r14, r15
test eax, eax
cmovne r14, r13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, rax
call fcn.14000eb90
mov r13d, eax
mov eax, dword [rbx + 0x5c]
mov dword [rbp - 0x79], eax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x28]
mov rcx, rbx
call fcn.140015820
movaps xmm6, xmm0
mov rcx, rbx
call fcn.140015810
movss xmm1, dword [0x14009bf30]
ucomiss xmm6, xmm1
jp 0x14004356a
jne 0x14004356a
ucomiss xmm0, xmm1
jp 0x14004356a
jne 0x14004356a
mov eax, dword [rbp - 0x79]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
mov r9, r12
mov r8d, esi
lea rdx, str.FONT___d___s___s___chars:__d__charsets:__d
mov rcx, qword [rdi + 0x48]
call fcn.140032800
jmp 0x1400435a8
cvtss2sd xmm0, xmm0
xorps xmm1, xmm1
cvtss2sd xmm1, xmm6
movsd qword [rsp + 0x40], xmm0
movsd qword [rsp + 0x38], xmm1
mov eax, dword [rbp - 0x79]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
mov r9, r12
mov r8d, esi
lea rdx, str.FONT___d___s___s___chars:__d__charsets:__d__charSize_0.2f__boxSize_0.2f
mov rcx, qword [rdi + 0x48]
call fcn.140032800
lea r13, [0x1400b8d60]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0xb0]
test rcx, rcx
jne 0x1400435d1
lea rdx, str.LAYOUT__none_
mov rcx, qword [rdi + 0x50]
call fcn.140032800
jmp 0x1400435eb
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r8, qword [rax + 8]
lea rdx, str.LAYOUT__s
mov rcx, qword [rdi + 0x50]
call fcn.140032800
mov rax, qword [rdi + 0x18]
mov rsi, qword [rax + 0xa0]
xor r12d, r12d
test rsi, rsi
jne 0x140043613
lea rdx, str.TARGET__none_
mov rcx, qword [rdi + 0x58]
call fcn.140032800
jmp 0x140043747
mov rbx, qword [rsi]
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov edx, 0x80
lea rcx, [rbp - 0x39]
call fcn.140033c10
nop
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140033e00
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov edx, 0x80
lea rcx, [rbp - 0x51]
call fcn.140033c10
nop
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.1400348f0
mov rcx, rsi
call fcn.1400257e0
mov r11d, eax
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
mov r9, r12
test rdx, rdx
je 0x140043687
mov r9, qword [rdx + 0x10]
mov rdx, r12
test rcx, rcx
je 0x140043693
mov rdx, qword [rcx + 0x10]
mov ecx, dword [rsi + 0x40]
lea r8, str.plain
cmp ecx, 1
jne 0x1400436ab
lea rax, str.styled
jmp 0x1400436c7
cmp ecx, 2
jne 0x1400436b9
lea rax, str.html
jmp 0x1400436c7
lea rax, str.latex
cmp ecx, 3
cmovne rax, r8
lea rcx, str.manual_font
lea r8, str.automatic_font
cmp dword [rsi + 0x48], 0
cmove r8, rcx
lea rcx, [0x1400b91b0]
test rdx, rdx
je 0x1400436ef
mov r10, qword [rdx + 8]
jmp 0x1400436f2
mov r10, rcx
test r9, r9
je 0x1400436fb
mov rcx, qword [r9 + 8]
test r11d, r11d
cmovne r15, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
mov r9, qword [rbp - 0x31]
mov r8, qword [rbp - 0x49]
lea rdx, str.TARGET__s__class__s___s__n__________s__s__font__s__insert:__s
mov rcx, qword [rdi + 0x58]
call fcn.140032800
nop
lea rcx, [rbp - 0x51]
call fcn.140033ca0
nop
lea rcx, [rbp - 0x39]
call fcn.140033ca0
mov rax, qword [rdi + 0x20]
mov rdx, qword [rax + 0xf0]
lea rax, [0x14009bc34]
cmp dword [0x1401a15e4], 0
je 0x14004376b
lea r8, [0x1400b9248]
jmp 0x140043780
lea rcx, [0x1400b9250]
mov r8, rax
cmp dword [0x1401a15e0], 0
cmovne r8, rcx
lea r9, str.shiftInsert
cmp dword [0x1401881e8], 0
cmovne r9, rax
lea r10, [0x1400b9278]
mov rcx, rax
cmp dword [0x1401a15e8], 0
cmovne rcx, r10
lea r10, [0x1400b9290]
cmp dword [0x1401a15ec], 0
cmovne rax, r10
test rdx, rdx
je 0x1400437f4
mov r10, qword [rdx + 8]
test r10, r10
je 0x1400437f4
cmp dword [rdx + 0x14], 1
jl 0x1400437f4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, r10
lea rdx, str.SEARCH__s__s_s_s_s
mov rcx, qword [rdi + 0x60]
call fcn.140032800
jmp 0x14004380e
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, str.SEARCH______s_s_s_s
mov rcx, qword [rdi + 0x60]
call fcn.140032800
mov rax, qword [rdi + 0x60]
mov rdx, qword [rax + 8]
mov rax, qword [rdi + 0x58]
mov rcx, qword [rax + 8]
mov rax, qword [rdi + 0x50]
mov r9, qword [rax + 8]
mov rax, qword [rdi + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov r8, qword [rax + 8]
lea rdx, str._s_n_s_n_s_n_s_n
mov rcx, qword [rdi + 0x40]
call fcn.140032800
mov rax, qword [rdi + 0x20]
mov rbx, qword [rax + 0x60]
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov edx, 0x100
lea rcx, [rbp - 0x69]
call fcn.140031390
nop
mov rax, qword [rdi + 0x18]
mov edx, 0x21
mov rcx, qword [rax + 0x18]
call fcn.1400578b0
mov esi, eax
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClientRect]
mov dword [0x1401a1120], eax
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdx + 0x140]
mov ebx, dword [rcx + 0x250]
mov rcx, qword [rdx + 0x150]
movzx r14d, word [rcx + 0x252]
call fcn.140024c40
mov r15, rax
lea rcx, [rbp - 0x11]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
jne 0x1400438d9
mov word [rbp - 0x11], r12w
movzx ecx, r14w
lea rax, str.MAGNIFY
lea r8, [0x140097ddc]
test esi, esi
cmovne r8, rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x501
mov r9d, 0x501
lea rdx, str.DEBUG__s___WIN32_WINNT0x_04x__WINVER0x_04x__clipboard_delay__dms__kbd__X__s___s_
lea rcx, [rbp - 0x69]
call fcn.140032800
mov rax, qword [rdi + 0x60]
mov rdx, qword [rax + 8]
mov rax, qword [rdi + 0x58]
mov rcx, qword [rax + 8]
mov rax, qword [rdi + 0x50]
mov r9, qword [rax + 8]
mov rax, qword [rdi + 0x48]
mov r8, qword [rax + 8]
mov rax, qword [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rdx, str._s_n_s_n_s_n_s_n_s_n
mov rcx, qword [rdi + 0x40]
call fcn.140032800
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400439ac
mov rax, qword [rdi + 0x40]
mov r9, qword [rax + 8]
xor r8d, r8d
lea edx, [r8 + 0xc]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov dword [0x1401a1120], eax
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x1401a1120], eax
lea rcx, [rbp - 0x69]
call fcn.140031450
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14005d680
mov rbx, qword [rsp + 0x140]
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret