Function at 0x14002bbf8
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x398
mov rax, qword [0x1400406c0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov eax, 4
mov eax, eax
mov ecx, dword [0x1400410f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140041078], eax
jle 0x14002bc6a
lea rcx, [0x140041078]
call fcn.140033948
cmp dword [0x140041078], 0xffffffff
jne 0x14002bc6a
call fcn.140008684
mov rax, qword [rax + 8]
mov qword [0x140041070], rax
lea rcx, [0x140041078]
call fcn.1400338dc
mov eax, 4
mov eax, eax
mov ecx, dword [0x1400410f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140041088], eax
jle 0x14002bce0
lea rcx, [0x140041088]
call fcn.140033948
cmp dword [0x140041088], 0xffffffff
jne 0x14002bce0
movss xmm0, dword [0x140041074]
divss xmm0, dword [0x140036aa4]
movss xmm1, dword [0x140041070]
divss xmm1, dword [0x140036aa4]
movaps xmm2, xmm0
lea rcx, [0x140041080]
call fcn.140029c20
nop
lea rcx, [0x140041088]
call fcn.1400338dc
movzx eax, byte [0x140040f57]
test eax, eax
je 0x14002bdc9
call fcn.1400089d8
mov qword [rsp + 0x120], rax
mov eax, dword [0x140041020]
cvtsi2ss xmm0, rax
addss xmm0, dword [0x140040228]
mov eax, dword [0x140040fc4]
cvtsi2ss xmm1, rax
addss xmm1, dword [0x140040228]
movaps xmm2, xmm0
lea rcx, [rsp + 0x1e0]
call fcn.140029c20
mov qword [rsp + 0x110], rax
mov eax, dword [0x140041020]
cvtsi2ss xmm0, rax
subss xmm0, dword [0x140040228]
mov eax, dword [0x140040fc4]
cvtsi2ss xmm1, rax
subss xmm1, dword [0x140040228]
movaps xmm2, xmm0
lea rcx, [rsp + 0x1e8]
call fcn.140029c20
mov qword [rsp + 0x118], rax
movss xmm0, dword [0x140036a9c]
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0xf
movss xmm0, dword [0x14003a82c]
movss dword [rsp + 0x20], xmm0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x120]
call fcn.1400130e4
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x4d], 0
movzx eax, byte [0x140040f44]
test eax, eax
je 0x14002bea4
call fcn.1400089d8
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x20], 0xff
mov r9d, 0xff
mov r8d, 0xff
mov edx, 0xff
lea rcx, [rsp + 0x2c0]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
mov dword [rsp + 0xc0], eax
movss xmm0, dword [0x140040228]
movss dword [rsp + 0xc4], xmm0
mov eax, dword [0x140041020]
cvtsi2ss xmm0, rax
mov eax, dword [0x140040fc4]
cvtsi2ss xmm1, rax
movaps xmm2, xmm0
lea rcx, [rsp + 0x1f0]
call fcn.140029c20
mov qword [rsp + 0x128], rax
movss xmm0, dword [0x14003a82c]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x64
mov r9d, dword [rsp + 0xc0]
movss xmm2, dword [rsp + 0xc4]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
call fcn.140011170
mov byte [rsp + 0x4e], 0
mov byte [rsp + 0x4f], 0
mov byte [rsp + 0x50], 0
movzx eax, byte [0x140040f75]
test eax, eax
je 0x14002bfe7
call fcn.1400089d8
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x20], 0xff
mov r9d, 0xff
mov r8d, 0xff
mov edx, 0xff
lea rcx, [rsp + 0x2d0]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
mov dword [rsp + 0xd0], eax
movss xmm0, dword [0x140040228]
movss dword [rsp + 0x88], xmm0
mov eax, dword [0x140041020]
cvtsi2ss xmm0, rax
mov eax, dword [0x140040fc4]
cvtsi2ss xmm1, rax
movaps xmm2, xmm0
lea rcx, [rsp + 0x1d0]
call fcn.140029c20
mov qword [rsp + 0x138], rax
movss xmm0, dword [0x14003a82c]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0x64
mov r9d, dword [rsp + 0xd0]
movss xmm2, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x140]
call fcn.140011170
call fcn.1400089d8
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x20], 0x6e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x2e0]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
mov dword [rsp + 0x8c], eax
movss xmm0, dword [0x140040228]
movss dword [rsp + 0x90], xmm0
mov dword [rsp + 0x20], 0x64
mov r9d, dword [rsp + 0x8c]
movss xmm2, dword [rsp + 0x90]
lea rdx, [0x140041080]
mov rcx, qword [rsp + 0x148]
call fcn.140011218
movss xmm0, dword [0x140036ae8]
movss dword [rsp + 0x7c], xmm0
mov qword [rsp + 0xc8], 0
mov rax, qword [0x140040f58]
add rax, 0x11f26508
mov rcx, rax
call fcn.14002973c
mov qword [0x140040f78], rax
mov rax, qword [0x140040168]
mov rcx, qword [0x140040f78]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x150], rax
mov rax, qword [0x140040170]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.14002973c
mov qword [0x140040f90], rax
mov rax, qword [0x140040178]
mov rcx, qword [0x140040f90]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [0x140040fa0], rax
mov rax, qword [0x140040180]
mov rcx, qword [0x140040fa0]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [0x140040f80], rax
mov rax, qword [0x140040188]
mov rcx, qword [0x140040f80]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [0x140040f88], rax
mov rax, qword [0x140040190]
mov rcx, qword [0x140040f80]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [0x140040f98], rax
mov rax, qword [0x1400401a0]
mov rcx, qword [0x140040f78]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [0x140040fa8], rax
mov rax, qword [0x1400401b8]
mov rcx, qword [0x140040fa8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029574
mov dword [rsp + 0x1b0], eax
mov rax, qword [0x1400401c0]
mov rcx, qword [0x140040fa8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x1d8], rax
mov rax, qword [0x140040198]
mov rcx, qword [0x140040f78]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0xe8], rax
mov rax, qword [0x140040210]
mov rcx, qword [rsp + 0xe8]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0xe8]
mov rcx, qword [0x140040210]
lea rax, [rax + rcx + 8]
mov rcx, rax
call fcn.140029574
mov dword [rsp + 0x94], eax
mov dword [rsp + 0x48], 0
jmp 0x14002c1f0
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x94]
cmp dword [rsp + 0x48], eax
jae 0x14002ca9b
mov eax, dword [rsp + 0x48]
imul rax, qword [0x1400401c8]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x168], rax
mov rax, qword [0x140040208]
mov rcx, qword [rsp + 0x168]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14002c25d
jmp 0x14002c1e6
mov rax, qword [0x1400401d0]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x58], rax
mov rax, qword [0x1400401e0]
mov rcx, qword [0x140040f88]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029574
mov dword [rsp + 0x9c], eax
mov rax, qword [0x140040188]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14002973c
mov qword [rsp + 0x170], rax
mov rax, qword [0x1400401e0]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140029574
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x9c], eax
jne 0x14002c300
jmp 0x14002c1e6
mov rax, qword [0x140040f80]
cmp qword [rsp + 0x80], rax
jne 0x14002c316
jmp 0x14002c1e6
mov r8d, 0x6e
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x198]
call fcn.14002e990
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x200]
call fcn.14002e990
nop
lea rax, [rsp + 0x220]
lea rcx, [rsp + 0x200]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0xf0]
call fcn.14002f6d0
nop
movsd xmm0, qword [rsp + 0x1a8]
addsd xmm0, qword [0x14003ac10]
movaps xmm3, xmm0
movsd xmm2, qword [rsp + 0x1a0]
movsd xmm1, qword [rsp + 0x198]
lea rcx, [rsp + 0x260]
call fcn.140029cb4
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x180], rax
lea rax, [rsp + 0x240]
mov rdi, rax
mov rsi, qword [rsp + 0x180]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x60]
call fcn.14002f6d0
nop
lea rcx, [rsp + 0x260]
call fcn.140028ee0
lea rax, [rsp + 0x280]
lea rcx, [rsp + 0x198]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x1b8]
call fcn.14002f6d0
nop
lea rax, [rsp + 0x2a0]
lea rcx, [0x140041030]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x2a0]
lea rcx, [0x140041030]
call fcn.14002ab20
divsd xmm0, qword [0x14003a840]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x78], xmm0
movsd xmm0, qword [rsp + 0x68]
subsd xmm0, qword [rsp + 0xf8]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0xa0], xmm0
cvtss2sd xmm0, dword [rsp + 0xa0]
mulsd xmm0, qword [0x14003ac00]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0xa4], xmm0
cvtsd2ss xmm0, qword [rsp + 0x60]
movss xmm1, dword [rsp + 0xa4]
divss xmm1, dword [0x140036a9c]
subss xmm0, xmm1
movss dword [rsp + 0x1b4], xmm0
cvtsd2ss xmm0, qword [rsp + 0xf8]
movss dword [rsp + 0x108], xmm0
movsd xmm0, qword [rsp + 0x68]
subsd xmm0, qword [rsp + 0xf8]
call fcn.140030514
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x44], xmm0
cvtss2sd xmm0, dword [rsp + 0x44]
mulsd xmm0, qword [0x14003ac00]
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x40], xmm0
cvtsi2ss xmm0, dword [0x14004022c]
comiss xmm0, dword [rsp + 0x78]
jbe 0x14002c983
movzx eax, byte [0x140040221]
test eax, eax
je 0x14002c983
movzx eax, byte [0x140040f45]
test eax, eax
je 0x14002c5ca
mov dword [rsp + 0x20], 0xff
mov r9d, 3
mov r8d, 3
mov edx, 0xfc
lea rcx, [rsp + 0x2f0]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
cvtsd2ss xmm0, qword [rsp + 0x68]
movss xmm1, dword [rsp + 0x40]
divss xmm1, dword [0x140036aa4]
cvtss2sd xmm1, xmm1
movsd xmm2, qword [rsp + 0x60]
subsd xmm2, xmm1
movaps xmm1, xmm2
cvtsd2ss xmm1, xmm1
movss dword [rsp + 0xa8], xmm1
mov dword [rsp + 0x20], eax
movss xmm3, dword [rsp + 0x44]
movss xmm2, dword [rsp + 0x40]
movaps xmm1, xmm0
movss xmm0, dword [rsp + 0xa8]
call fcn.14002ac78
movzx eax, byte [0x140040222]
test eax, eax
je 0x14002c653
mov dword [rsp + 0x20], 0xff
mov r9d, 3
mov r8d, 3
mov edx, 0xfc
lea rcx, [rsp + 0x300]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
cvttss2si ecx, dword [rsp + 0x44]
cvttss2si edx, dword [rsp + 0x40]
cvttsd2si edi, qword [rsp + 0x68]
movss xmm0, dword [rsp + 0x40]
divss xmm0, dword [0x140036aa4]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x60]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si esi, xmm0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, ecx
mov r8d, edx
mov edx, edi
mov ecx, esi
call fcn.14002a7ec
movzx eax, byte [0x140040f56]
test eax, eax
je 0x14002c668
mov rcx, qword [rsp + 0x58]
call fcn.14002d8b8
movzx eax, byte [0x140040f76]
test eax, eax
je 0x14002c6d4
cvttsd2si eax, qword [rsp + 0x68]
mov dword [rsp + 0xac], eax
cvttsd2si ecx, qword [rsp + 0x60]
mov eax, dword [0x140040f70]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0xb0], eax
mov eax, dword [0x140040f6c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x28], 1
lea rdx, [0x140040320]
mov qword [rsp + 0x20], rdx
mov edx, dword [rsp + 0xac]
mov r9d, edx
mov r8d, ecx
mov ecx, dword [rsp + 0xb0]
mov edx, ecx
mov ecx, eax
call fcn.14002cb9c
movzx eax, byte [0x140040f77]
test eax, eax
je 0x14002c773
mov rcx, qword [rsp + 0x58]
call fcn.140030bf0
movzx eax, al
test eax, eax
je 0x14002c72b
cvttsd2si eax, qword [rsp + 0x68]
cvttsd2si ecx, qword [rsp + 0x60]
mov dword [rsp + 0x28], 1
lea rdx, [0x140040280]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
mov edx, dword [0x140040f70]
mov ecx, dword [0x140040f6c]
call fcn.14002cb9c
mov rcx, qword [rsp + 0x58]
call fcn.140030bf0
movzx eax, al
test eax, eax
jne 0x14002c773
cvttsd2si eax, qword [rsp + 0x68]
cvttsd2si ecx, qword [rsp + 0x60]
mov dword [rsp + 0x28], 1
lea rdx, [0x140040230]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
mov edx, dword [0x140040f70]
mov ecx, dword [0x140040f6c]
call fcn.14002cb9c
movzx eax, byte [0x140040f74]
test eax, eax
je 0x14002c82e
mov dword [rsp + 0xb4], 0xfffc1803
cvttss2si eax, dword [rsp + 0x44]
cvttss2si ecx, dword [rsp + 0x40]
cvttsd2si edx, qword [rsp + 0x68]
movss xmm0, dword [rsp + 0x40]
divss xmm0, dword [0x140036aa4]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x60]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov dword [rsp + 0x28], 2
lea rsi, [rsp + 0xb4]
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002ae00
cvttss2si eax, dword [rsp + 0x44]
cvttss2si ecx, dword [rsp + 0x40]
cvttsd2si edx, qword [rsp + 0x68]
movss xmm0, dword [rsp + 0x40]
divss xmm0, dword [0x140036aa4]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [rsp + 0x60]
subsd xmm1, xmm0
movaps xmm0, xmm1
cvttsd2si edi, xmm0
mov dword [rsp + 0x20], 0x7d000000
mov r9d, eax
mov r8d, ecx
mov ecx, edi
call fcn.14002caf4
movzx eax, byte [0x140040223]
test eax, eax
je 0x14002c926
cvtss2sd xmm0, dword [rsp + 0x78]
movaps xmm2, xmm0
movq r8, xmm2
lea rdx, str._.fm_n
lea rcx, [rsp + 0x340]
call fcn.140029770
mov dword [rsp + 0x20], 0xff
mov r9d, 3
mov r8d, 3
mov edx, 0xfc
lea rcx, [rsp + 0x310]
call fcn.140029b18
mov rcx, rax
call fcn.14002a218
mov dword [rsp + 0xb8], eax
cvtsd2ss xmm0, qword [rsp + 0xf8]
cvtsd2ss xmm1, qword [rsp + 0xf0]
movaps xmm2, xmm0
lea rcx, [rsp + 0x1f8]
call fcn.140029c20
mov qword [rsp + 0x188], rax
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x320]
call fcn.140029850
nop
mov rax, qword [0x140040fc8]
mov qword [rsp + 0x190], rax
mov byte [rsp + 0x28], 1
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
movss xmm3, dword [0x140036ac4]
mov r8, qword [rsp + 0x188]
lea rdx, [rsp + 0x320]
mov rcx, qword [rsp + 0x190]
call fcn.14002ccd0
nop
lea rcx, [rsp + 0x320]
call fcn.140029f3c
movzx eax, byte [0x140040f47]
test eax, eax
je 0x14002c983
cvttsd2si eax, qword [rsp + 0xf8]
mov dword [rsp + 0xbc], eax
cvttsd2si ecx, qword [rsp + 0xf0]
mov eax, dword [0x140040f6c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x28], 2
lea rdx, [0x140040230]
mov qword [rsp + 0x20], rdx
mov edx, dword [rsp + 0xbc]
mov r9d, edx
mov r8d, ecx
mov edx, dword [0x140040f70]
mov ecx, eax
call fcn.14002cb9c
mov eax, dword [0x140040f6c]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x1b8]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0xd8], xmm0
mov eax, dword [0x140040f70]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
movsd xmm1, qword [rsp + 0x1c0]
subsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0xe0], xmm0
movsd xmm0, qword [rsp + 0xd8]
mulsd xmm0, qword [rsp + 0xd8]
movsd xmm1, qword [rsp + 0xe0]
mulsd xmm1, qword [rsp + 0xe0]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sqrtf]
movss dword [rsp + 0x54], xmm0
mov rcx, qword [rsp + 0x58]
call fcn.140030bf0
movzx eax, al
test eax, eax
je 0x14002ca54
movss xmm0, dword [0x140040228]
comiss xmm0, dword [rsp + 0x54]
jbe 0x14002ca54
movss xmm0, dword [rsp + 0x7c]
comiss xmm0, dword [rsp + 0x54]
jbe 0x14002ca54
movss xmm0, dword [rsp + 0x54]
movss dword [rsp + 0x7c], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x1b8]
call fcn.140028ee0
nop
lea rcx, [rsp + 0x60]
call fcn.140028ee0
nop
lea rcx, [rsp + 0xf0]
call fcn.140028ee0
nop
lea rcx, [rsp + 0x200]
call fcn.140028ee0
nop
lea rcx, [rsp + 0x198]
call fcn.140028ee0
jmp 0x14002c1e6
movzx eax, byte [0x140040f54]
test eax, eax
je 0x14002cad9
movzx eax, byte [0x140040f54]
test eax, eax
je 0x14002cad9
cmp qword [rsp + 0xc8], 0
je 0x14002cad9
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x14002cad9
mov rcx, qword [rsp + 0xc8]
call fcn.14002a4e0
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140033a50
add rsp, 0x398
pop rdi
pop rsi
ret