Function at 0x140036b60
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8568
call fcn.1400ae8c0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov rax, qword [0x1400f5760]
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x140036bb6
cmp dword [0x1400f5970], 1
sete al
xor r15d, r15d
test al, al
mov dword [0x1400f5970], r15d
sete dl
call fcn.140030e80
jmp 0x1400374b9
mov rdi, qword [0x1400f5818]
xor r15d, r15d
mov rsi, qword [0x1400f5820]
mov eax, r15d
mov r13, qword [0x1400f5828]
xor bl, bl
mov dword [rbp], eax
mov dword [0x1400f5970], r15d
mov dword [0x1400f59b4], 1
mov word [0x1400f59b8], r15w
mov dword [0x1400f59cc], 0x3fff
movzx eax, word [rdi]
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], r13
mov byte [rbp + 0x8578], bl
test ax, ax
je 0x140036c80
lea r14, [rdi + 2]
lea r12, [0x140000000]
nop word [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140036c3e
mov edx, 2
mov ecx, ebx
call fcn.14009c1d4
test eax, eax
je 0x140036c3e
and ebx, 0xffffffdf
movzx eax, bx
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x140036c5f.51
cdqe
movzx eax, byte [r12 + rax + 0x374f8]
mov ecx, dword [r12 + rax*4 + 0x374d0]
add rcx, r12
jmp rcx
mov byte [0x1400f59b4], r15b
movzx ebx, byte [rbp + 0x8578]
movzx eax, word [rdi + 2]
add rdi, 2
add r14, 2
test ax, ax
jne 0x140036c20
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x100
call fcn.140098640
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x200
call fcn.140098640
mov r12, r15
mov word [rbp + 0x858a], r15w
mov rdi, rsi
cmp word [rsi], r12w
je 0x140036eda
xor r13d, r13d
lea esi, [r13 + 0x7d]
nop word [rax + rax]
mov word [rbp + 0x8588], r13w
movzx eax, word [rdi]
cmp eax, 0x7b
je 0x140036dce
cmp eax, esi
je 0x140036eba
test bl, bl
je 0x140036d90
inc r12
jmp 0x140036eba
mov byte [0x1400f59b5], 1
jmp case.0x140036c5f.51
mov byte [0x1400f59b6], 1
jmp case.0x140036c5f.51
mov byte [0x1400f59b7], 1
jmp case.0x140036c5f.51
mov rcx, r14
call fcn.14009d1f8
movzx ebx, byte [rbp + 0x8578]
mov dword [0x1400f59cc], eax
cmp eax, 0x3fff
jle 0x140036c6f
mov dword [0x1400f59cc], 0x3fff
jmp 0x140036c6f
mov rcx, r14
call fcn.1400142a0
mulsd xmm0, qword [0x1400dbec0]
cvttsd2si eax, xmm0
mov dword [rbp], eax
jmp case.0x140036c5f.51
mov byte [0x1400f59b8], 1
jmp case.0x140036c5f.51
mov byte [0x1400f59b9], 1
jmp case.0x140036c5f.51
mov bl, 1
mov byte [rbp + 0x8578], bl
jmp 0x140036c6f
xor ecx, ecx
mov word [rbp + 0x8588], ax
mov byte [rbp + 0x8580], r13b
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r9b, 1
lea rdx, [rbp + 0x8580]
lea rcx, [rbp + 0x8588]
mov qword [rsp + 0x20], rax
movzx r8d, r9b
call fcn.140013280
movzx r15d, al
jmp 0x140036e78
mov edx, esi
lea rcx, [rdi + 2]
call fcn.1400977e8
mov rbx, rax
test rax, rax
je 0x140036eba
sub rax, rdi
sar rax, 1
sub rax, 1
jne 0x140036e00
add rbx, 2
cmp word [rbx], si
jne 0x140036eba
jmp 0x140036e06
cmp rax, 1
jne 0x140036e22
cmp byte [rbp + 0x8578], r13b
je 0x140036e17
inc r12
jmp 0x140036eba
movzx eax, word [rdi + 2]
mov word [rbp + 0x8588], ax
xor ecx, ecx
mov word [rbx], r13w
mov byte [rbp + 0x8580], r13b
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov r9b, 1
lea rdx, [rbp + 0x8580]
lea rcx, [rdi + 2]
mov qword [rsp + 0x20], rax
movzx r8d, r9b
call fcn.140013280
movzx r15d, al
test al, al
jne 0x140036e72
lea rcx, [rdi + 2]
call fcn.140013190
test ax, ax
je 0x140036e72
movzx eax, ax
mov byte [rbp + rax + 0x320], 1
mov word [rbx], si
mov rdi, rbx
test r15b, r15b
je 0x140036eba
movzx ecx, word [rbp + 0x8588]
movzx ebx, r15b
or byte [rbp + rbx + 0x120], 1
test cx, cx
je 0x140036eba
call qword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x140036eba
test byte [rbp + 0x8580], 0x30
je 0x140036eb2
or byte [rbp + rbx + 0x120], 2
jmp 0x140036eba
or byte [rbp + rbx + 0x120], 4
movzx ebx, byte [rbp + 0x8578]
add rdi, 2
cmp word [rdi], r13w
jne 0x140036cd0
mov rsi, qword [rbp + 8]
xor r15d, r15d
mov r13, qword [rbp + 0x10]
lea r14, [0x1400bdf7c]
mov qword [0x1400f5988], r14
test r12, r12
je 0x140036f9d
lea rax, [r12*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140036f0c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ae8c0
sub rsp, rcx
lea rbx, [rsp + 0x40]
mov qword [0x1400f5988], rbx
cmp word [rsi], 0
je 0x140036f99
mov r14d, 0x7d
movzx eax, word [rsi]
cmp eax, 0x7b
je 0x140036f49
cmp eax, r14d
je 0x140036f88
mov word [rbx], ax
add rbx, 2
jmp 0x140036f88
lea rdi, [rsi + 2]
mov edx, r14d
mov rcx, rdi
call fcn.1400977e8
mov rdx, rax
test rax, rax
je 0x140036f88
cmp rax, rdi
jne 0x140036f72
cmp word [rax + 2], r14w
lea rcx, [rax + 2]
cmove rdx, rcx
lea rax, [rsi + 4]
cmp rdx, rax
jne 0x140036f85
movzx eax, word [rdi]
mov word [rbx], ax
add rbx, 2
mov rsi, rdx
add rsi, 2
cmp word [rsi], 0
jne 0x140036f33
lea r14, [0x1400bdf7c]
mov word [rbx], r15w
mov dword [0x1400f59a0], r15d
cmp word [r13], 0
je 0x140037189
cmp qword [0x1400f5998], 0
jne 0x140036ff8
mov ecx, 0x2000
call fcn.1400997a8
mov qword [0x1400f5998], rax
test rax, rax
jne 0x140036fee
mov rcx, qword [rbp + 0x8570]
lea rdx, [0x1400d1750]
mov r9, r14
xor r8d, r8d
call fcn.1400310e0
jmp 0x1400374b9
mov dword [0x1400f59a4], 0x400
mov rdi, qword [rbp + 0x8570]
mov edx, 3
mov rcx, rdi
call fcn.1400222c0
mov ecx, dword [0x1400f59b0]
inc rax
cmp rax, rcx
jbe 0x14003707a
mov rcx, qword [0x1400f59a8]
mov edx, 0x1000
cmp rax, rdx
cmova edx, eax
mov dword [0x1400f59b0], edx
test rcx, rcx
je 0x140037042
call fcn.14009d6d0
mov edx, dword [0x1400f59b0]
lea ecx, [rdx + rdx]
call fcn.1400997a8
mov qword [0x1400f59a8], rax
mov rdx, rax
test rax, rax
jne 0x140037081
mov dword [0x1400f59b0], r15d
mov r9, r14
lea rdx, [0x1400d1750]
xor r8d, r8d
mov rcx, rdi
call fcn.1400310e0
jmp 0x1400374b9
mov rdx, qword [0x1400f59a8]
mov ecx, dword [0x1400f59a0]
mov rax, qword [0x1400f5998]
mov qword [rax + rcx*8], rdx
cmp word [r13], 0
mov rbx, qword [0x1400f59a8]
je 0x140037166
mov esi, 0x2c
nop word [rax + rax]
movzx eax, word [r13]
cmp ax, si
je 0x1400370c6
mov word [rbx], ax
add rbx, 2
jmp 0x140037156
cmp word [r13 + 2], si
jne 0x1400370da
mov word [rbx], si
add rbx, 2
add r13, 2
jmp 0x140037156
mov word [rbx], r15w
mov ecx, dword [0x1400f59a0]
mov r8, qword [0x1400f5998]
mov rax, qword [r8 + rcx*8]
cmp word [rax], 0
je 0x140037118
inc ecx
mov dword [0x1400f59a0], ecx
add rbx, 2
mov eax, ecx
mov qword [r8 + rcx*8], rbx
mov word [rbx], r15w
mov ecx, dword [0x1400f59a0]
mov r8, qword [0x1400f5998]
cmp word [r13 + 2], 0
je 0x140037156
mov eax, dword [0x1400f59a4]
cmp ecx, eax
jb 0x140037156
lea edx, [rax + 0x400]
mov rcx, r8
shl rdx, 3
call fcn.14009d504
test rax, rax
je 0x140037060
add dword [0x1400f59a4], 0x400
mov qword [0x1400f5998], rax
add r13, 2
cmp word [r13], 0
jne 0x1400370b0
mov word [rbx], r15w
mov edx, dword [0x1400f59a0]
mov rax, qword [0x1400f5998]
mov rcx, qword [rax + rdx*8]
cmp word [rcx], 0
je 0x140037189
inc edx
mov dword [0x1400f59a0], edx
cmp byte [0x1400f1190], 0
je 0x1400371d6
mov rcx, qword [0x1400f1538]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x1400f1190]
test eax, eax
cmovne ecx, r15d
mov byte [0x1400f1190], cl
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x1400371d6
mov edx, 1
or ecx, 0xffffffff
call fcn.140001800
xor edx, edx
lea rcx, [rbp + 0x520]
mov r8d, 0x8000
call fcn.140098640
or byte [0x1400f22f6], 1
lea rax, [rbp + 0x520]
cmp qword [0x1400f1560], 0
mov qword [0x1400f59c0], rax
lea rax, [rbp + 0x120]
mov qword [0x1400f5978], rax
lea rax, [rbp + 0x320]
mov qword [0x1400f5980], rax
mov dword [0x1400f59c8], r15d
mov dword [0x1400f5970], 1
mov byte [0x1400f154c], 1
jne 0x14003724c
mov rax, qword [0x1400ef488]
movzx edx, word [rax]
call fcn.140008fe0
mov eax, dword [rbp]
test eax, eax
jle 0x140037290
cmp byte [0x1400f1190], 0
jne 0x140037290
mov ecx, 0xa
lea r9, [0x140004100]
cmp eax, ecx
cmovl eax, ecx
lea edx, [rcx + 2]
mov r8d, eax
mov rcx, qword [0x1400f1538]
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
setne byte [0x1400f1190]
nop word [rax + rax]
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001800
mov ecx, dword [0x1400f5970]
cmp ecx, 1
je 0x140037290
sub ecx, 2
je 0x140037428
sub ecx, 1
je 0x14003741f
sub ecx, 1
je 0x1400372f1
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
cmp ecx, 1
mov rcx, qword [0x1400f1518]
je 0x1400372e5
lea rdx, [0x1400d8ae8]
jmp 0x140037442
lea rdx, [0x1400d8ae0]
jmp 0x140037442
movups xmm0, xmmword [0x1400d8ad0]
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0xf0
movaps xmmword [rbp + 0x20], xmm0
call fcn.140098640
movzx eax, word [0x1400f5994]
test ax, ax
je 0x14003732b
mov word [rbp + 0x2e], ax
lea rdx, [rbp + 0x20]
mov word [rbp + 0x30], r15w
jmp 0x14003742f
cmp byte [0x1400f5997], 0
je 0x1400373d0
xor edx, edx
lea rcx, [rbp + 0x220]
mov r8d, 0x100
call fcn.140098640
or byte [rbp + 0x230], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14003736b
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x14003736e
mov eax, r15d
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x1400f1194], 0
mov edi, r15d
movzx ecx, byte [0x1400f5990]
mov rbx, rax
setne dil
xor edx, edx
call fcn.140013750
movzx ecx, byte [0x1400f5990]
lea r9, [rbp + 0x2e]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x220]
movzx edx, ax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
lea rdx, [rbp + 0x20]
mov word [rbp + rcx*2 + 0x2e], r15w
jmp 0x14003742f
cmp byte [0x1400f5996], 0
lea rdx, [rbp + 0x2e]
mov r9b, 1
mov r8d, 0x79
je 0x1400373f4
movzx ecx, word [0x1400f5992]
call fcn.140012e80
jmp 0x140037400
movzx ecx, byte [0x1400f5990]
call fcn.140012f30
movzx ecx, word [rbp + 0x2e]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140037419
mov eax, 0xffe0
add cx, ax
mov word [rbp + 0x2e], cx
lea rdx, [rbp + 0x20]
jmp 0x14003742f
lea rdx, [0x1400d8ac0]
jmp 0x14003742f
lea rdx, [0x1400d2378]
mov rcx, qword [0x1400f1518]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14007d4e0
cmp byte [0x1400f1190], 0
mov dword [0x1400f5970], r15d
je 0x14003749d
mov rcx, qword [0x1400f1538]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call qword [sym.imp.USER32.dll_KillTimer]
movzx r8d, byte [0x1400f1190]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
test eax, eax
cmovne r8d, r15d
mov byte [0x1400f1190], r8b
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test al, 0x10
je 0x14003749d
mov edx, 1
or ecx, 0xffffffff
call fcn.140001800
mov rcx, qword [rbp + 0x18]
lea rdx, [rbp + 0x520]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14007d4e0
lea rsp, [rbp + 0x8528]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret