Function at 0x140010d90
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x430
xor r12d, r12d
xor sil, sil
mov rdi, r9
movzx r15d, r8b
mov rbp, rcx
lea r14, [r9 + 0x12]
movzx r13d, r12w
mov byte [rax + 0x18], sil
test r9, r9
jne 0x140010dce
lea r14, [rax + 8]
mov qword [rsp + 0x488], rbx
test r15b, r15b
jne 0x140010e56
mov rbx, rcx
test rcx, rcx
je 0x140010e56
movzx edx, word [rcx]
test dx, dx
je 0x140010e56
nop dword [rax + rax]
lea rcx, [0x1400e46d0]
mov eax, SafeArrayAllocDescriptor
nop dword [rax]
cmp dx, ax
je 0x140010e21
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140010e00
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x140010df0
jmp 0x140010e56
mov rcx, rbx
movzx eax, word [rcx]
cmp ax, 0x20
je 0x140010e33
cmp ax, 9
jne 0x140010e39
add rcx, 2
jmp 0x140010e24
lea rdx, [0x1400e1afc]
call fcn.1400c8fbc
test eax, eax
jne 0x140010e56
test rdi, rdi
je 0x140010e52
mov byte [rdi + 0x16], 1
mov word [rbx], r12w
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp word [rbp], r12w
jne 0x140010e6c
xor bl, bl
jmp 0x140011201
lea rdx, [rsp + 0x480]
mov r9, rax
mov r8b, 1
mov rcx, rbp
call fcn.14001a760
movzx ebx, al
test al, al
je 0x1400111f9
test r15b, r15b
je 0x140011194
lea eax, [rbx + 0x64]
cmp al, 3
ja 0x1400111b6
cmp byte [rsp + 0x490], r12b
je 0x140011151
mov rdi, qword [0x140117318]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140010ee1
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e46d8]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400afc20
xor eax, eax
jmp 0x1400115db
lea r13, [0x1400e46d8]
cmp qword [rdi + 8], r13
jne 0x140010ef7
mov rbp, qword [rdi + 0x10]
shr rbp, 1
jmp 0x140010efc
mov ebp, 1
lea rcx, [rbp + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x140010f1a
mov rdx, rbp
mov rcx, r13
call fcn.1400060a0
xor eax, eax
jmp 0x1400115db
mov r8, qword [0x140111460]
cmp rsi, r8
jbe 0x140010f38
cmp rsi, qword [rdi + 0x18]
jbe 0x140010f38
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
jmp 0x14001154a
cmp rcx, 2
jae 0x140010f54
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.1400b02d0
xor eax, eax
jmp 0x1400115db
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x140010f71
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140111460]
mov r9, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rsi, r9
jbe 0x1400110e6
movzx r10d, byte [rdi + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x140010faa
cmp al, 2
je 0x140010fe7
mov rbx, qword [rsp + 0x470]
mov rax, qword [rsp + 0x470]
jmp 0x1400110da
mov ebx, 0x80
cmp rsi, rbx
ja 0x140010fe7
cmp rsi, 8
ja 0x140010fc1
mov ebx, 8
jmp 0x140010fcd
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a8ed0
test rax, rax
je 0x14001155d
mov byte [rdi + 0x20], 1
jmp 0x1400110da
cmp rsi, 0x20
jae 0x140010ff7
mov ebx, SafeArrayAllocDescriptor
jmp 0x1400110a1
mov ebx, 0x208
cmp rsi, rbx
jb 0x1400110a1
cmp rsi, 0x50000
jae 0x14001105d
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140011024
addsd xmm0, qword [0x1400ffd68]
mulsd xmm0, qword [0x1400ffda0]
movsd xmm1, qword [0x1400ffd98]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x140011053
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140011053
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x1400110a1
cmp rsi, 0x320000
jae 0x14001106f
lea rbx, [rsi + 0x8000]
jmp 0x1400110a1
cmp rsi, 0xc80000
jae 0x14001109a
movabs rax, 0x47ae147ae147ae15
mov rbx, rsi
mul rsi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rsi
jmp 0x1400110a1
lea rbx, [rsi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x1400110c1
test r9, r9
je 0x1400110c1
mov rcx, qword [rdi + 8]
mov sil, 1
call fcn.1400c9ae0
jmp 0x1400110c4
xor sil, sil
test rbx, rbx
js 0x140011115
mov rcx, rbx
call fcn.1400c9044
test rax, rax
je 0x140011115
mov byte [rdi + 0x20], 2
and byte [rdi + 0x21], 0x7f
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 8]
cmp rcx, r13
je 0x1400110fc
lea r8, [rbp + rbp]
mov rdx, r13
call fcn.1400c9ca0
mov rax, qword [rdi + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r12w
mov qword [rdi + 0x10], rcx
xor eax, eax
jmp 0x1400115db
test sil, sil
je 0x140011139
lea rax, [0x140118198]
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 8], rax
lea rdx, str.Out_of_memory.
jmp 0x14001154a
mov rax, qword [rdi + 8]
lea rdx, str.Out_of_memory.
mov word [rax], r12w
mov qword [rdi + 0x10], r12
jmp 0x14001154a
lea r8, str.__s__is_not_allowed_as_a_prefix_key.
lea rcx, [rsp + 0x30]
mov r9, rbp
mov edx, 0x200
call fcn.1400abcc0
mov r8, qword [rsp + 0x478]
lea rdx, [rsp + 0x30]
lea rcx, [0x1401181e0]
call fcn.140040200
test rdi, rdi
jne 0x14001155d
lea eax, [rdi + 4]
jmp 0x1400115db
test rdi, rdi
je 0x1400111b6
lea rdx, [0x1400e472c]
mov r8d, 2
mov rcx, rbp
call fcn.1400c9214
test eax, eax
sete al
mov byte [rdi + 0x17], al
lea eax, [rbx - 1]
cmp al, 5
ja 0x1400111c2
cmp bl, 3
jne 0x1400111c9
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x1400111cd
mov cl, 1
jmp 0x1400111cf
xor cl, cl
movzx esi, byte [rsp + 0x480]
test sil, 0x30
je 0x1400111e8
lea eax, [rbx - 0x41]
cmp al, 0x19
ja 0x1400111e8
and sil, 0xcf
test cl, cl
je 0x140011581
mov byte [r14], 2
jmp 0x140011581
movzx esi, byte [rsp + 0x480]
xor edx, edx
mov rcx, rbp
call fcn.14001a640
movzx r13d, ax
test ax, ax
jne 0x140011581
lea rdx, [rsp + 0x480]
mov r8b, 1
mov rcx, rbp
call fcn.140078310
mov r13d, eax
test ax, ax
jne 0x140011561
cmp byte [rsp + 0x490], r12b
je 0x140011503
mov rdi, qword [0x140117318]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140011277
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e4734]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400afc20
xor eax, eax
jmp 0x1400115db
lea r13, [0x1400e4734]
cmp qword [rdi + 8], r13
jne 0x14001128d
mov rbp, qword [rdi + 0x10]
shr rbp, 1
jmp 0x140011292
mov ebp, 1
lea rcx, [rbp + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x1400112b0
mov rdx, rbp
mov rcx, r13
call fcn.1400060a0
xor eax, eax
jmp 0x1400115db
mov r8, qword [0x140111460]
cmp rsi, r8
jbe 0x1400112e3
cmp rsi, qword [rdi + 0x18]
jbe 0x1400112e3
lea r8, [0x1400e145c]
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x1401181e0]
call fcn.140040200
xor eax, eax
jmp 0x1400115db
cmp rcx, 2
jae 0x1400112ff
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.1400b02d0
xor eax, eax
jmp 0x1400115db
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x14001131c
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140111460]
mov r9, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rsi, r9
jbe 0x140011491
movzx r10d, byte [rdi + 0x20]
movzx eax, r10b
cmp r10b, 1
jbe 0x140011355
cmp al, 2
je 0x140011392
mov rbx, qword [rsp + 0x470]
mov rax, qword [rsp + 0x470]
jmp 0x140011485
mov ebx, 0x80
cmp rsi, rbx
ja 0x140011392
cmp rsi, 8
ja 0x14001136c
mov ebx, 8
jmp 0x140011378
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rbx, rax
mov rcx, rbx
call fcn.1400a8ed0
test rax, rax
je 0x1400114b9
mov byte [rdi + 0x20], 1
jmp 0x140011485
cmp rsi, 0x20
jae 0x1400113a2
mov ebx, SafeArrayAllocDescriptor
jmp 0x14001144c
mov ebx, 0x208
cmp rsi, rbx
jb 0x14001144c
cmp rsi, 0x50000
jae 0x140011408
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x1400113cf
addsd xmm0, qword [0x1400ffd68]
mulsd xmm0, qword [0x1400ffda0]
movsd xmm1, qword [0x1400ffd98]
xor ecx, ecx
comisd xmm0, xmm1
jbe 0x1400113fe
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400113fe
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rbx, xmm0
add rbx, rcx
jmp 0x14001144c
cmp rsi, 0x320000
jae 0x14001141a
lea rbx, [rsi + 0x8000]
jmp 0x14001144c
cmp rsi, 0xc80000
jae 0x140011445
movabs rax, 0x47ae147ae147ae15
mov rbx, rsi
mul rsi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rsi
jmp 0x14001144c
lea rbx, [rsi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r10b, 2
jne 0x14001146c
test r9, r9
je 0x14001146c
mov rcx, qword [rdi + 8]
mov sil, 1
call fcn.1400c9ae0
jmp 0x14001146f
xor sil, sil
test rbx, rbx
js 0x1400114c0
mov rcx, rbx
call fcn.1400c9044
test rax, rax
je 0x1400114c0
mov byte [rdi + 0x20], 2
and byte [rdi + 0x21], 0x7f
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 8]
cmp rcx, r13
je 0x1400114a7
lea r8, [rbp + rbp]
mov rdx, r13
call fcn.1400c9ca0
mov rax, qword [rdi + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r12w
mov qword [rdi + 0x10], rcx
xor eax, eax
jmp 0x1400115db
test sil, sil
je 0x1400114d6
lea rax, [0x140118198]
mov qword [rdi + 0x18], r12
mov qword [rdi + 8], rax
jmp 0x1400114de
mov rax, qword [rdi + 8]
mov word [rax], r12w
lea r8, [0x1400e145c]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401181e0]
mov qword [rdi + 0x10], r12
call fcn.140040200
xor eax, eax
jmp 0x1400115db
cmp word [rbp + 2], r12w
jne 0x140011527
cmp byte [0x140118d90], r12b
jne 0x140011527
mov eax, 3
test rdi, rdi
cmove r12d, eax
mov eax, r12d
jmp 0x1400115db
test rdi, rdi
je 0x14001155d
lea r8, [0x1400e4738]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov edx, 0x200
call fcn.1400abcc0
lea rdx, [rsp + 0x30]
lea r8, [0x1400e145c]
lea rcx, [0x1401181e0]
call fcn.140040200
xor eax, eax
jmp 0x1400115db
movsxd rbx, dword [rsp + 0x480]
inc dword [0x1401173b8]
lea rcx, [0x1401173a8]
mov byte [r14], 4
mov rax, rbx
mov byte [rbx + rcx], 1
test r15b, r15b
je 0x140011595
test rdi, rdi
je 0x1400115d6
mov byte [rdi + 0x11], bl
mov word [rdi + 0xa], r13w
jmp 0x1400115d6
test rdi, rdi
je 0x1400115d6
movzx eax, sil
mov byte [rdi + 0x10], bl
mov ebx, 8
and al, 0xd5
mov word [rdi + 8], r13w
test al, 0xc0
cmovne r12d, ebx
test al, 0xc
je 0x1400115bb
or r12d, 1
test al, 0x30
je 0x1400115c3
or r12d, 4
test al, 3
je 0x1400115cb
or r12d, 2
or dword [rdi], r12d
and sil, 0x2a
or byte [rdi + 0xe], sil
mov eax, 1
mov rbx, qword [rsp + 0x488]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret