Function at 0x140099950
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x3ac8
call fcn.140151ee0
sub rsp, rax
call fcn.140056900
test rax, rax
jne 0x140099982
xor eax, eax
jmp 0x140099f7a
call fcn.140058870
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140099fc0
nop
movzx eax, byte [rsp + 0x3ae8]
test eax, eax
je 0x140099cd0
mov rax, qword [rsp + 0x3ad8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
sub rax, 0x201
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xd
ja case.default.0x1400999e7
lea rax, [0x140000000]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rax + rcx*4 + 0x99f84]
add rcx, rax
jmp rcx
mov dword [rsp + 0x58], 0
cmp qword [rsp + 0x3ad8], 0x201
je 0x140099a0d
cmp qword [rsp + 0x3ad8], 0x203
jne 0x140099a15
mov dword [rsp + 0x58], 0
cmp qword [rsp + 0x3ad8], 0x204
je 0x140099a31
cmp qword [rsp + 0x3ad8], 0x206
jne 0x140099a39
mov dword [rsp + 0x58], 1
cmp qword [rsp + 0x3ad8], 0x207
je 0x140099a55
cmp qword [rsp + 0x3ad8], 0x209
jne 0x140099a5d
mov dword [rsp + 0x58], 2
cmp qword [rsp + 0x3ad8], 0x20b
je 0x140099a79
cmp qword [rsp + 0x3ad8], 0x20d
jne 0x140099ab0
mov rax, qword [rsp + 0x3ae0]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp eax, 1
jne 0x140099aa0
mov dword [rsp + 0x60], 3
jmp 0x140099aa8
mov dword [rsp + 0x60], 4
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x58], eax
call fcn.1400680a0
movzx eax, al
test eax, eax
jne 0x140099ad5
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x140099ad5
mov rcx, qword [rsp + 0x3ad0]
call qword [sym.imp.USER32.dll_SetCapture]
movsxd rax, dword [rsp + 0x58]
mov byte [rsp + rax + 0x1020], 1
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0x80]
jmp 0x140099f7a
mov dword [rsp + 0x5c], 0
cmp qword [rsp + 0x3ad8], 0x202
jne 0x140099b26
mov dword [rsp + 0x5c], 0
cmp qword [rsp + 0x3ad8], 0x205
jne 0x140099b3c
mov dword [rsp + 0x5c], 1
cmp qword [rsp + 0x3ad8], 0x208
jne 0x140099b52
mov dword [rsp + 0x5c], 2
cmp qword [rsp + 0x3ad8], 0x20c
jne 0x140099b94
mov rax, qword [rsp + 0x3ae0]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp eax, 1
jne 0x140099b84
mov dword [rsp + 0x64], 3
jmp 0x140099b8c
mov dword [rsp + 0x64], 4
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
mov byte [rsp + rax + 0x1020], 0
call fcn.1400680a0
movzx eax, al
test eax, eax
jne 0x140099bc3
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rsp + 0x3ad0]
jne 0x140099bc3
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0x88]
jmp 0x140099f7a
mov rax, qword [rsp + 0x3ae0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
cwde
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1401976f4]
movss xmm1, dword [rsp + 0x1028]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x1028], xmm0
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0x98]
jmp 0x140099f7a
mov rax, qword [rsp + 0x3ae0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
cwde
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1401976f4]
movss xmm1, dword [rsp + 0x102c]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x102c], xmm0
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0xa8]
jmp 0x140099f7a
jmp 0x140099f59
mov rax, qword [rsp + 0x3ae0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x3ad8]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0x100
je 0x140099d23
cmp qword [rsp + 0x78], 0x101
je 0x140099e9c
cmp qword [rsp + 0x78], 0x104
je 0x140099d23
cmp qword [rsp + 0x78], 0x105
je 0x140099e9c
jmp 0x140099f36
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x200
jae 0x140099d3f
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov byte [rsp + rax + 0xd30], 1
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetKeyState]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140099e97
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 0xe
jne 0x140099de5
mov rax, qword [rsp + 0x48]
cmp dword [rax], 8
jne 0x140099de5
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov ecx, eax
call fcn.1400991b0
mov dword [rsp + 0x68], eax
cmp qword [rsp + 0x3ad8], 0x100
je 0x140099dac
cmp qword [rsp + 0x3ad8], 0x104
je 0x140099dac
mov byte [rsp + 0x40], 0
jmp 0x140099db1
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x50], al
cmp dword [rsp + 0x68], 0
je 0x140099de0
mov rax, qword [rsp + 0x48]
mov r9d, dword [rax + 4]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax]
movzx edx, byte [rsp + 0x50]
mov ecx, dword [rsp + 0x68]
call fcn.140098310
jmp 0x140099e97
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0xa
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xe0]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 4]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
je 0x140099e97
mov dword [rsp + 0x54], 0
jmp 0x140099e4f
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xa
jge 0x140099e97
movsxd rax, dword [rsp + 0x54]
movzx eax, word [rsp + rax*2 + 0xc8]
test eax, eax
jle 0x140099e95
movsxd rax, dword [rsp + 0x54]
movzx eax, word [rsp + rax*2 + 0xc8]
cmp eax, 0x10000
jge 0x140099e95
movsxd rax, dword [rsp + 0x54]
movzx edx, word [rsp + rax*2 + 0xc8]
lea rcx, [rsp + 0x1e0]
call fcn.1400515d0
jmp 0x140099e45
jmp 0x140099f36
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x200
jae 0x140099eb8
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov byte [rsp + rax + 0xd30], 0
mov rax, qword [rsp + 0x48]
cmp dword [rax + 4], 0xe
jne 0x140099f36
mov rax, qword [rsp + 0x48]
cmp dword [rax], 8
jne 0x140099f36
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov ecx, eax
call fcn.1400991b0
mov dword [rsp + 0x6c], eax
cmp qword [rsp + 0x3ad8], 0x100
je 0x140099f02
cmp qword [rsp + 0x3ad8], 0x104
je 0x140099f02
mov byte [rsp + 0x41], 0
jmp 0x140099f07
mov byte [rsp + 0x41], 1
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x51], al
cmp dword [rsp + 0x6c], 0
je 0x140099f36
mov rax, qword [rsp + 0x48]
mov r9d, dword [rax + 4]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax]
movzx edx, byte [rsp + 0x51]
mov ecx, dword [rsp + 0x6c]
call fcn.140098310
mov qword [rsp + 0xb8], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0xb8]
jmp 0x140099f7a
mov qword [rsp + 0xc0], 0
lea rcx, [rsp + 0x1e0]
call fcn.140050000
mov rax, qword [rsp + 0xc0]
add rsp, 0x3ac8
ret