Function at 0x180039880
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1802b53c0]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r10, qword [0x1802b5e70]
mov r12, r9
mov rbx, r8
mov r13, rcx
test r10, r10
je case.0x180039ee3.527
mov r15, qword [r10 + 0x98]
lea r14, [r10 + 8]
cmp edx, 0x200
ja 0x180039eb7
je 0x180039e5e
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x180039ee3.527
lea r8, [0x180000000]
movzx eax, byte [r8 + rax + 0x3a0d8]
mov ecx, dword [r8 + rax*4 + 0x3a0c4]
add rcx, r8
jmp rcx
lea eax, [rdx - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete dil
cmp rbx, rsi
jae case.0x180039ee3.527
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x1802a9eac]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x180039967
test al, al
je 0x180039953
movaps xmm3, xmm6
jmp 0x180039956
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x1000
mov rcx, r14
call fcn.180011980
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x18003999e
test al, al
je 0x18003998a
movaps xmm3, xmm6
jmp 0x18003998d
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x2000
mov rcx, r14
call fcn.180011980
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x1800399d5
test al, al
je 0x1800399c1
movaps xmm3, xmm6
jmp 0x1800399c4
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x4000
mov rcx, r14
call fcn.180011980
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [r14 + 0x37a1], 0
je 0x180039a0c
test al, al
je 0x1800399f8
movaps xmm3, xmm6
jmp 0x1800399fb
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x8000
mov rcx, r14
call fcn.180011980
cmp rbx, 0xd
jne 0x180039a22
shr r12, 0x10
mov eax, 0x10d
test si, r12w
cmovne ebx, eax
movsxd r15, ebx
mov rcx, r15
call fcn.180039330
movsxd r14, eax
test eax, eax
je 0x180039a79
mov rsi, qword [0x1802b5e70]
cmp byte [rsi + 0x37a9], 0
je 0x180039a61
test dil, dil
je 0x180039a4e
movaps xmm3, xmm6
jmp 0x180039a51
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rsi + 8]
mov edx, r14d
call fcn.180011980
cmp ebx, 0x1ff
ja 0x180039a79
mov dword [rsi + r15*4 + 0x100], r14d
mov dword [rsi + r14*4 + 0x100], ebx
cmp ebx, 0x10
jne 0x180039b39
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180039ada
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039ac6
test dil, dil
je 0x180039ab1
movaps xmm3, xmm6
jmp 0x180039ab4
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x210
call fcn.180011980
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180039ee3.527
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039b20
test dil, dil
jne 0x180039b0b
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x214
call fcn.180011980
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
jmp case.0x180039ee3.527
cmp ebx, 0x11
jne 0x180039bf9
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180039b9a
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039b86
test dil, dil
je 0x180039b71
movaps xmm3, xmm6
jmp 0x180039b74
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x20f
call fcn.180011980
mov dword [rbx + 0x388], 0x20f
mov dword [rbx + 0x93c], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180039ee3.527
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039be0
test dil, dil
jne 0x180039bcb
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x213
call fcn.180011980
mov dword [rbx + 0x38c], 0x213
mov dword [rbx + 0x94c], 0xa3
jmp case.0x180039ee3.527
cmp ebx, 0x12
jne case.0x180039ee3.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne 0x180039c5a
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039c46
test dil, dil
je 0x180039c31
movaps xmm3, xmm6
jmp 0x180039c34
xorps xmm3, xmm3
movzx r8d, dil
lea rcx, [rbx + 8]
mov edx, 0x211
call fcn.180011980
mov dword [rbx + 0x390], 0x211
mov dword [rbx + 0x944], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, dil
jne case.0x180039ee3.527
mov rbx, qword [0x1802b5e70]
cmp byte [rbx + 0x37a9], 0
je 0x180039ca0
test dil, dil
jne 0x180039c8b
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rbx + 8]
movzx r8d, dil
mov edx, 0x215
call fcn.180011980
mov dword [rbx + 0x394], 0x215
mov dword [rbx + 0x954], 0xa5
jmp case.0x180039ee3.527
mov eax, dword [r10 + 0x37c0]
cmp edx, 7
sete r9b
sub eax, 1
js 0x180039cf0
movsxd rdx, eax
mov rax, qword [r10 + 0x37c8]
lea rcx, [rdx + rdx*2]
lea r8, [rax + rcx*8]
nop
cmp dword [r8], 6
je 0x180039d21
sub r8, 0x18
sub rdx, 1
jns 0x180039ce0
cmp byte [r10 + 0x37a8], 0
sete al
cmp al, r9b
je case.0x180039ee3.527
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x30], 6
mov byte [rbp - 0x28], r9b
mov qword [rbp - 0x20], rax
jmp 0x18003a07d
movzx eax, byte [r8 + 8]
jmp 0x180039cfb
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja case.0x180039ee3.527
test bx, bx
jne 0x180039d4b
cmp word [r14 + 0x37a4], bx
je case.0x180039ee3.527
cmp byte [r14 + 0x37a1], 0
je case.0x180039ee3.527
mov ecx, 0xfc00
movzx eax, bx
and ax, cx
mov edx, 0xd800
movzx ecx, word [r14 + 0x37a4]
cmp ax, dx
jne 0x180039db8
test cx, cx
je 0x180039dab
xor edi, edi
mov dword [rbp - 0x30], 5
mov eax, 0xfffd
mov qword [rbp - 0x24], rdi
mov esi, 2
mov dword [rbp - 0x1c], edi
lea rcx, [r10 + 0x37c0]
mov dword [rbp - 0x2c], esi
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x28], eax
call fcn.180027070
mov word [r14 + 0x37a4], bx
jmp case.0x180039ee3.527
xor edi, edi
lea esi, [rdi + 2]
test cx, cx
je 0x180039e0b
mov ecx, 0xdc00
cmp ax, cx
je 0x180039dfe
mov eax, 0xfffd
mov qword [rbp - 0x24], rdi
lea rcx, [r10 + 0x37c0]
mov dword [rbp - 0x28], eax
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x30], 5
mov dword [rbp - 0x2c], esi
call fcn.180027070
mov r10, qword [0x1802b5e70]
jmp 0x180039e03
mov ebx, 0xfffd
mov word [r14 + 0x37a4], di
movzx eax, bx
test eax, eax
je case.0x180039ee3.527
cmp byte [r14 + 0x37a1], dil
je case.0x180039ee3.527
mov qword [rbp - 0x24], rdi
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x30], 5
mov dword [rbp - 0x2c], esi
mov dword [rbp - 0x28], eax
jmp 0x18003a07d
cmp r12w, 1
jne case.0x180039ee3.527
call fcn.1800387e0
test al, al
je case.0x180039ee3.527
mov eax, 1
jmp 0x18003a09b
cmp byte [r15 + 0x10], 0
mov qword [r15 + 8], r13
jne 0x180039e90
xor edi, edi
mov dword [rbp - 0x30], 0x18
mov esi, 2
mov dword [rbp - 0x20], edi
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], esi
mov qword [rbp - 0x28], r13
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [r15 + 0x10], 1
mov rax, r12
mov rcx, r14
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r12w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180011a90
jmp case.0x180039ee3.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x180039ee3.527
lea r8, [0x180000000]
movzx eax, byte [r8 + rax + 0x3a1f4]
mov ecx, dword [r8 + rax*4 + 0x3a1d8]
add rcx, r8
jmp rcx
cmp qword [r15 + 8], r13
jne 0x180039ef1
xor edi, edi
mov qword [r15 + 8], rdi
movss xmm1, dword [0x1802a9fac]
mov rcx, r14
movaps xmm2, xmm1
mov byte [r15 + 0x10], 0
call fcn.180011a90
jmp case.0x180039ee3.527
xor edi, edi
lea eax, [rdx - 0x204]
test eax, 0xfffffffd
mov r12d, edi
mov eax, 1
mov esi, 2
cmove r12d, eax
lea eax, [rdx - 0x207]
test eax, 0xfffffffd
lea eax, [rdx - 0x20b]
cmove r12d, esi
test eax, 0xfffffffd
jne 0x180039f5b
shr rbx, 0x10
mov r12d, edi
cmp bx, 1
setne r12b
add r12d, 3
cmp dword [r15 + 0x14], edi
jne 0x180039f75
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x180039f75
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [r15 + 0x14]
mov r8b, 1
bts eax, r12d
mov edx, r12d
mov rcx, r14
mov dword [r15 + 0x14], eax
call fcn.180011bc0
jmp case.0x180039ee3.527
xor edi, edi
cmp edx, 0x205
mov esi, edi
sete sil
cmp edx, 0x208
jne 0x180039faf
lea esi, [rdi + 2]
jmp 0x180039fc8
cmp edx, 0x20c
jne 0x180039fc8
shr rbx, 0x10
mov esi, edi
cmp bx, 1
setne sil
add esi, 3
mov eax, dword [r15 + 0x14]
btr eax, esi
mov dword [r15 + 0x14], eax
test eax, eax
jne 0x180039fe8
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r13
jne 0x180039fe8
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, esi
mov rcx, r14
call fcn.180011bc0
jmp case.0x180039ee3.527
shr rbx, 0x10
cmp byte [r14 + 0x37a1], 0
movsx eax, bx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1802a9f48]
je case.0x180039ee3.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
jp 0x18003a024
je case.0x180039ee3.527
movss dword [rbp - 0x24], xmm1
xor edi, edi
mov qword [rbp - 0x2c], 1
jmp 0x18003a071
shr rbx, 0x10
cmp byte [r14 + 0x37a1], 0
movsx eax, bx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1802a9f48]
je case.0x180039ee3.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
jp 0x18003a05f
je case.0x180039ee3.527
xor edi, edi
movss dword [rbp - 0x28], xmm1
mov eax, 1
mov dword [rbp - 0x24], edi
mov dword [rbp - 0x2c], eax
mov esi, 2
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x30], esi
lea rdx, [rbp - 0x30]
lea rcx, [r10 + 0x37c0]
call fcn.180027070
jmp case.0x180039ee3.527
cmp ebx, 7
jne case.0x180039ee3.527
mov byte [r15 + 0x2d], 1
xor eax, eax
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.18004bbd0
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret