Function at 0x140045750
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [0x140080cf0]
mov r13, rbx
mov rax, qword [rbx + 0x4008]
mov byte [rax + 0xc0], 1
mov r12, qword [rbx + 0x4008]
cmp byte [r12 + 0xc3], 0
jne 0x14004629e
movsxd r8, dword [r12 + 0x100]
mov rax, qword [r12 + 0x108]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
call fcn.140012e80
mov r15d, eax
mov rcx, qword [r12]
cmp dword [rcx + 0x4054], eax
jne 0x140045828
mov r8, r14
mov edx, 0xb
mov ecx, eax
call fcn.14002b7f0
mov rbx, qword [0x140080cf0]
mov rcx, r14
cmp r14, 0xffffffffffffffff
jae 0x14004584e
movzx edx, byte [rcx]
test dl, dl
je 0x14004584e
lea rax, [rcx + 1]
cmp dl, 0x23
jne 0x140045845
cmp byte [rax], dl
je 0x14004584e
mov rcx, rax
cmp rax, 0xffffffffffffffff
jb 0x140045831
movss xmm0, dword [rbx + 0x3d40]
movss xmm13, dword [0x1400759d0]
xorps xmm11, xmm11
cmp r14, rcx
jne 0x14004586d
xorps xmm1, xmm1
jmp 0x1400458b9
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
movss dword [rsp + 0x20], xmm13
movss xmm3, dword [0x1400759ac]
movaps xmm2, xmm0
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 0x3d38]
call fcn.14003d3f0
movss xmm0, dword [rsp + 0x58]
addss xmm0, dword [0x1400754dc]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm0, dword [rsp + 0x5c]
movss xmm6, dword [r12 + 0x110]
movss xmm7, dword [r12 + 0x114]
movss xmm8, dword [r13 + 0x3930]
movss xmm2, dword [r13 + 0x392c]
movaps xmm3, xmm8
addss xmm3, xmm8
addss xmm3, xmm0
addss xmm2, xmm2
addss xmm2, xmm1
mov rdx, qword [rdi]
lea rcx, [rsp + 0x58]
call fcn.140023600
movss xmm2, dword [rsp + 0x5c]
addss xmm2, xmm7
movss xmm0, dword [rsp + 0x58]
addss xmm0, xmm6
movss dword [rbp - 0x68], xmm6
movss dword [rbp - 0x64], xmm7
movss dword [rbp - 0x60], xmm0
movss dword [rbp - 0x5c], xmm2
movaps xmm1, xmm8
lea rcx, [rsp + 0x58]
call fcn.140023100
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
lea rcx, [rbp - 0x68]
call fcn.140023270
test al, al
je 0x14004629e
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov edx, r15d
lea rcx, [rbp - 0x68]
call fcn.140047580
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x50]
cmp byte [rsp + 0x60], 0
je 0x14004598a
test al, al
je 0x14004598a
mov ecx, 0x17
jmp 0x140045995
xor ecx, ecx
test al, al
setne cl
add rcx, 0x15
mov rax, qword [0x140080cf0]
add rcx, rcx
movups xmm0, xmmword [rax + rcx*8 + 0x39d4]
movups xmmword [rsp + 0x78], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x38f0]
movss dword [rbp - 0x7c], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
mov ebx, eax
mov r8d, 1
mov edx, r15d
lea rcx, [rbp - 0x68]
call fcn.140014bf0
movss xmm0, dword [r13 + 0x3934]
movss dword [rsp + 0x20], xmm0
mov r9b, 1
mov r8d, ebx
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
call fcn.1400148e0
mov rbx, qword [r12 + 0x2a8]
movaps xmm0, xmmword [0x140075b70]
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
mov edi, eax
movss xmm9, dword [rbp - 0x5c]
movss xmm6, dword [rbp - 0x60]
movss xmm10, dword [rbp - 0x64]
movss xmm7, dword [rbp - 0x68]
movss xmm8, dword [0x1400754a4]
movss xmm2, dword [0x1400754a0]
test eax, 0xff000000
je 0x140045b1c
movaps xmm1, xmm9
movaps xmm0, xmm6
mov dword [rsp + 0x20], 1
xorps xmm3, xmm3
mov rcx, rbx
test byte [rbx + 0x30], 1
je 0x140045aa9
subss xmm1, xmm8
subss xmm0, xmm8
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x5c], xmm1
movaps xmm2, xmm10
addss xmm2, xmm8
movaps xmm0, xmm7
addss xmm0, xmm8
movss dword [rsp + 0x68], xmm0
movss dword [rsp + 0x6c], xmm2
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x68]
jmp 0x140045ae4
subss xmm1, xmm2
subss xmm0, xmm2
movss dword [rsp + 0x68], xmm0
movss dword [rsp + 0x6c], xmm1
movaps xmm2, xmm10
addss xmm2, xmm8
movaps xmm0, xmm7
addss xmm0, xmm8
movss dword [rsp + 0x58], xmm0
movss dword [rsp + 0x5c], xmm2
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
call fcn.140038130
movss xmm0, dword [0x1400754e4]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.140036340
mov dword [rbx + 0x78], 0
cmp byte [rsp + 0x51], 0
je 0x140045b31
mov rax, qword [0x140080cf0]
mov dword [rax + 0x4070], r15d
cmp dword [r13 + 0x4070], r15d
jne 0x140045b9f
mov ebx, 8
mov edi, ebx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
inc edi
cmp edi, 0xa5
jle 0x140045b41
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edi, edi
test ax, ax
je 0x140045b74
mov dword [rsi], edi
mov rax, qword [0x140080cf0]
mov dword [rax + 0x4070], edi
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140045b95
cmp ebx, 0x1b
je 0x140045b95
mov dword [rsi], ebx
mov rax, qword [0x140080cf0]
mov dword [rax + 0x4070], edi
inc ebx
cmp ebx, 0xa5
jle 0x140045b74
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
lea r8d, [rdi + 7]
lea rdx, str.___None
lea rcx, [rbp - 0x58]
call fcn.14000e390
nop
movsxd rax, dword [rsi]
lea rsi, [rdi - 1]
test eax, eax
je 0x140045c3a
cmp dword [r13 + 0x4070], r15d
je 0x140045c43
lea r9, str.___unknown
mov r9, qword [r9 + rax*8]
mov rdi, rsi
nop word [rax + rax]
inc rdi
cmp byte [r9 + rdi], 0
jne 0x140045bf0
mov rax, qword [rbp - 0x40]
cmp rdi, rax
ja 0x140045c2a
lea rbx, [rbp - 0x58]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x58]
mov qword [rbp - 0x48], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
xor edi, edi
jmp 0x140045c92
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.14005c070
xor edi, edi
jmp 0x140045c92
cmp dword [r13 + 0x4070], r15d
jne 0x140045c9f
mov rax, qword [rbp - 0x40]
cmp rax, 0xd
jb 0x140045c7d
lea rbx, [rbp - 0x58]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x58]
mov qword [rbp - 0x48], 0xd
mov r8d, 0xd
lea rdx, str._Press_a_Key_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xd], 0
jmp 0x140045c92
lea r9, str._Press_a_Key_
mov edx, 0xd
lea rcx, [rbp - 0x58]
call fcn.14005c070
cmp dword [r13 + 0x4070], r15d
je 0x140045d72
lea r8, [rbp - 0x58]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400583c0
mov rbx, rax
lea rax, [rbp - 0x58]
cmp rax, rbx
je 0x140045d21
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140045cf3
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045cee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045d54
call fcn.140068b2c
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140045d60
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045d5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140045d5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140068b2c
movdqa xmm0, xmmword [0x140075a30]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
lea r8, [rbp - 0x58]
mov r10, qword [rbp - 0x58]
mov r11, qword [rbp - 0x40]
cmp r11, 0xf
cmova r8, r10
mov r9, qword [0x140080cf0]
mov rcx, r8
cmp r8, rsi
jae 0x140045db1
movzx edx, byte [rcx]
test dl, dl
je 0x140045db1
lea rax, [rcx + 1]
cmp dl, 0x23
jne 0x140045da9
cmp byte [rax], dl
je 0x140045db1
mov rcx, rax
cmp rax, rsi
jb 0x140045d95
movss xmm2, dword [r9 + 0x3d40]
cmp r8, rcx
jne 0x140045dcf
mov dword [rsp + 0x58], 0
movss dword [rsp + 0x5c], xmm2
jmp 0x140045e2c
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r8
movss dword [rsp + 0x20], xmm13
movss xmm3, dword [0x1400759ac]
lea rdx, [rsp + 0x68]
mov rcx, qword [r9 + 0x3d38]
call fcn.14003d3f0
movss xmm0, dword [rsp + 0x68]
addss xmm0, dword [0x1400754dc]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x58], xmm0
movss xmm1, dword [rsp + 0x6c]
movss dword [rsp + 0x5c], xmm1
mov r11, qword [rbp - 0x40]
mov r10, qword [rbp - 0x58]
lea r8, [rbp - 0x58]
cmp r11, 0xf
cmova r8, r10
movss xmm1, dword [r13 + 0x3930]
subss xmm9, xmm1
movss xmm0, dword [r13 + 0x392c]
subss xmm6, xmm0
movss dword [rsp + 0x68], xmm6
movss dword [rsp + 0x6c], xmm9
addss xmm10, xmm1
addss xmm7, xmm0
movss dword [rsp + 0x78], xmm7
movss dword [rsp + 0x7c], xmm10
lea rax, [r13 + 0x3990]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call fcn.140014650
mov rbx, qword [0x140080cf0]
movss xmm12, dword [rbx + 0xe48]
movss xmm10, dword [rbx + 0xe4c]
addss xmm12, dword [0x1400757d4]
addss xmm10, dword [0x1400757d4]
mov byte [rbp - 0x30], 0x50
movups xmm1, xmmword [0x1400740a9]
movups xmmword [rbp - 0x2f], xmm1
movsd xmm0, qword [0x1400740b9]
movsd qword [rbp - 0x1f], xmm0
mov eax, dword [0x1400740c1]
mov dword [rbp - 0x17], eax
movzx eax, word [0x1400740c5]
mov word [rbp - 0x13], ax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
mov byte [rbp + 0xf], al
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
cmp rcx, rsi
jae 0x140045f39
nop
movzx edx, byte [rax]
test dl, dl
je 0x140045f39
cmp dl, 0x23
jne 0x140045f31
cmp byte [rax + 1], dl
je 0x140045f39
inc rax
cmp rax, rsi
jb 0x140045f20
movss xmm6, dword [rbx + 0x3d40]
lea rcx, [rbp - 0x30]
cmp rcx, rax
jne 0x140045f50
movaps xmm7, xmm11
jmp 0x140045fa0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
movss dword [rsp + 0x20], xmm13
movss xmm3, dword [0x1400759ac]
movaps xmm2, xmm6
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx + 0x3d38]
call fcn.14003d3f0
movss xmm0, dword [rsp + 0x68]
addss xmm0, dword [0x1400754dc]
cvttss2si eax, xmm0
movd xmm7, eax
cvtdq2ps xmm7, xmm7
movss xmm6, dword [rsp + 0x6c]
mov rax, qword [rbx + 0x4b10]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140017470
cmp byte [rsp + 0x50], 0
je 0x140046178
mov rax, qword [0x140080cf0]
mov rax, qword [rax + 0x4b10]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140017470
mov rbx, rax
movaps xmm0, xmmword [0x140075b80]
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
movaps xmm9, xmm10
addss xmm9, xmm6
addss xmm9, dword [0x1400757a8]
movaps xmm6, xmm12
addss xmm6, xmm7
addss xmm6, dword [0x1400757c0]
movss dword [rsp + 0x78], xmm6
movss dword [rsp + 0x7c], xmm9
movaps xmm7, xmm12
addss xmm7, dword [0x1400757a8]
movss dword [rsp + 0x68], xmm7
movss dword [rsp + 0x6c], xmm10
mov dword [rsp + 0x28], edi
movss dword [rsp + 0x20], xmm11
mov r9d, eax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400388c0
movaps xmm0, xmmword [0x140075c10]
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
mov r8d, eax
movaps xmm0, xmm10
addss xmm0, dword [0x140075590]
addss xmm12, dword [0x1400757b8]
movss dword [rsp + 0x78], xmm12
movss dword [rsp + 0x7c], xmm0
test eax, 0xff000000
je 0x140046118
lea rax, [rbp - 0x30]
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400460b0
lea rcx, [rbp - 0x30]
add rcx, rsi
lea rax, [rbp - 0x30]
cmp rax, rcx
je 0x140046118
mov rax, qword [rbx + 0x38]
movups xmm0, xmmword [rbx + 0x88]
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x48], 0
movss dword [rsp + 0x40], xmm11
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x78]
movss xmm2, dword [rax + 0x10]
mov rdx, rbx
mov rcx, qword [rax + 8]
call fcn.14003d610
movaps xmm0, xmmword [0x140075b70]
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
movss dword [rsp + 0x78], xmm6
movss dword [rsp + 0x7c], xmm9
movss dword [rsp + 0x68], xmm7
movss dword [rsp + 0x6c], xmm10
movss xmm6, dword [0x1400754e4]
movss dword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], edi
movss dword [rsp + 0x20], xmm11
mov r9d, eax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400387b0
jmp 0x140046180
movss xmm6, dword [0x1400754e4]
cmp dword [r13 + 0x4070], r15d
jne 0x140046259
mov rbx, qword [r12 + 0x2a8]
movaps xmm0, xmmword [0x140075b50]
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x78]
call fcn.140013430
mov edi, eax
test eax, 0xff000000
je 0x140046259
movss xmm1, dword [rbp - 0x5c]
movss xmm0, dword [rbp - 0x60]
movss xmm2, dword [rbp - 0x64]
mov dword [rsp + 0x20], 1
movaps xmm3, xmm11
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
mov rcx, rbx
addss xmm2, xmm8
movss dword [rsp + 0x6c], xmm2
test byte [rbx + 0x30], 1
je 0x1400461fd
subss xmm1, xmm8
subss xmm0, xmm8
jmp 0x14004620d
subss xmm1, dword [0x1400754a0]
subss xmm0, dword [0x1400754a0]
movss dword [rsp + 0x78], xmm0
movss xmm0, dword [rbp - 0x68]
addss xmm0, xmm8
movss dword [rsp + 0x7c], xmm1
movss dword [rsp + 0x68], xmm0
call fcn.140038130
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.140036340
mov dword [rbx + 0x78], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140046297
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046292
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140068b2c
movzx eax, byte [rsp + 0x51]
jmp 0x1400462a0
xor al, al
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140068890
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret