Function at 0x140007450
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x140094040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [r11 + 0x10], rsi
xor esi, esi
cmp byte [0x140098103], sil
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
je 0x1400075ae
mov rcx, qword [0x140098230]
xorps xmm0, xmm0
movss xmm6, dword [0x140098308]
test rcx, rcx
js 0x1400074a8
cvtsi2ss xmm0, rcx
jmp 0x1400074bd
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss xmm1, dword [0x140085bb8]
addss xmm0, xmm6
xor eax, eax
addss xmm0, dword [0x140085b04]
comiss xmm0, xmm1
jb 0x1400074ee
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400074ee
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttss2si rcx, xmm0
add rcx, rax
call fcn.140016550
cmp dword [0x1400982f4], 1
movaps xmm7, xmm0
jbe 0x14000759e
movss xmm4, dword [0x1400982e0]
lea rdx, [rbp - 0x21]
xorps xmm2, xmm2
mov qword [rbp - 0x21], rsi
movaps xmm1, xmm0
mov dword [rbp - 0x11], esi
subss xmm1, dword [0x140097f68]
movaps xmm0, xmm6
mov qword [rbp - 9], rsi
subss xmm0, dword [0x140097f6c]
cvtps2pd xmm4, xmm4
mov r8d, 0x28
mov dword [rbp - 0xd], 1
mov qword [rbp - 1], rsi
lea ecx, [r8 - 0x27]
cvtss2sd xmm2, xmm1
cvtps2pd xmm1, xmm0
mulsd xmm2, qword [0x140085bf8]
mulsd xmm1, qword [0x140085bf8]
addsd xmm2, xmm2
addsd xmm1, xmm1
divsd xmm2, xmm4
divsd xmm1, xmm4
divsd xmm2, qword [0x140085be8]
divsd xmm1, qword [0x140085ab0]
cvttsd2si eax, xmm2
mov dword [rbp - 0x19], eax
cvttsd2si eax, xmm1
mov dword [rbp - 0x15], eax
call qword [sym.imp.USER32.dll_SendInput]
movss dword [0x140097f68], xmm7
movss dword [0x140097f6c], xmm6
cmp byte [0x140098101], sil
xorps xmm6, xmm6
mov qword [rsp + 0xe0], rbx
je 0x1400076b7
movss xmm0, dword [0x1400981bc]
comiss xmm0, xmm6
jbe 0x1400076b7
movsxd rbx, dword [0x140094118]
lea rax, [rbp - 0x29]
add rbx, qword [0x140098230]
lea r8, [rbp - 0x3d]
mov rcx, qword [0x1400980b0]
mov rdx, rbx
mov r9d, 4
mov dword [rbp - 0x3d], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007663
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Could_not_write_memory_at_address
call fcn.140015e80
lea rdx, [0x1400035b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.._Error:
call fcn.140015e80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x1400076a7
cmp qword [rbp - 0x29], 4
je 0x1400076b7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Unexpected_number_of_bytes_written._Expected:
call fcn.140015e80
mov edx, 4
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str.__Actual:
call fcn.140015e80
mov rdx, qword [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140016210]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp byte [0x140098104], sil
je 0x140007717
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140007717
mov rcx, qword [0x140098338]
lea rdx, [rbp - 0x41]
add rcx, 0x181b0d0
mov dword [rbp - 0x41], 0x10001
call fcn.140016880
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140098338]
lea rdx, [rbp - 0x41]
add rcx, 0x181b0d0
mov dword [rbp - 0x41], pe_nt_image_headers64
call fcn.140016880
cmp byte [0x14009440f], sil
je 0x140007725
call fcn.1400051d0
cmp byte [0x140094412], sil
je 0x140007733
call fcn.140005d40
cmp byte [0x140098102], sil
je 0x140007741
call fcn.140006620
cmp byte [0x140098105], sil
mov qword [rsp + 0xf0], rdi
je 0x140007822
cmp byte [0x140097f70], sil
je 0x140007822
mov rax, qword [0x140097f80]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4bd0]
mov rcx, qword [rcx]
call fcn.14002f250
lea rcx, [0x140094338]
mov rbx, rax
call fcn.14002a990
mov edi, eax
mov rax, qword [0x140097f80]
movss xmm0, dword [rax + 0x10]
mulss xmm0, dword [0x140085a64]
movss dword [rbp - 0x49], xmm0
movss xmm0, dword [rax + 0x14]
mulss xmm0, dword [0x140085a64]
movss dword [rbp - 0x45], xmm0
test edi, 0xff000000
je 0x140007829
movss xmm0, dword [0x140085b14]
lea rdx, [rbp - 0x49]
movss xmm2, dword [0x140085b20]
xorps xmm3, xmm3
mov dword [rsp + 0x28], 0x63
mov rcx, rbx
movss dword [rsp + 0x20], xmm0
call fcn.140051330
movss xmm0, dword [0x140085ac0]
mov r9d, edi
mov r8d, dword [rbx + 0x50]
mov rcx, rbx
mov rdx, qword [rbx + 0x58]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.14004f980
mov dword [rbx + 0x50], esi
mov rax, qword [0x140097f80]
cmp byte [0x1400980e2], 0
mov rsi, qword [rsp + 0xe8]
je 0x140007950
mov rax, qword [rax + 0x4bd0]
lea r8, str.Foreground
movups xmm0, xmmword [0x1400942b8]
mov edx, 1
movaps xmmword [rsp + 0xa0], xmm8
mov rcx, qword [rax]
movaps xmmword [rsp + 0x90], xmm9
movss xmm9, dword [0x14009422c]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.14002f250
mov ecx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
movd xmm8, eax
cvtdq2ps xmm8, xmm8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, [rbp - 0x39]
movss dword [rbp - 0x45], xmm8
cdq
movss dword [rbp - 0x25], xmm8
sub eax, edx
sar eax, 1
movd xmm7, eax
cvtdq2ps xmm7, xmm7
movaps xmm0, xmm7
movaps xmm1, xmm7
addss xmm0, xmm9
subss xmm1, xmm9
movss dword [rbp - 0x49], xmm0
movss dword [rbp - 0x29], xmm1
call fcn.14002a990
movss xmm6, dword [0x140085aa4]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x49]
mov rcx, rdi
mov ebx, eax
call fcn.140051c70
movaps xmm0, xmm8
movss dword [rbp - 0x49], xmm7
addss xmm0, xmm9
movss dword [rbp - 0x29], xmm7
subss xmm8, xmm9
movss dword [rsp + 0x20], xmm6
mov r9d, ebx
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
mov rcx, rdi
movss dword [rbp - 0x45], xmm0
movss dword [rbp - 0x25], xmm8
call fcn.140051c70
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xa0]
cmp byte [0x140098105], 0
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0xc0]
mov rdi, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe0]
je 0x140007998
cmp byte [0x14009440d], 0
je 0x140007993
mov ecx, dword [0x140094320]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140007998
call fcn.140004690
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140077250
add rsp, 0xd0
pop rbp
ret