Function at 0x140167650
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4a8
mov rax, qword [0x140d25040]
xor rax, rsp
mov qword [rsp + 0x490], rax
xorps xmm0, xmm0
movss dword [rsp + 0xd0], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xd4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xd8], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x1c8], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x1cc], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xe0], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xe4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0xe8], xmm0
movss xmm0, dword [0x140d17054]
movss dword [rsp + 0x44], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
mov dword [rsp + 0x190], 0
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x1f0]
call fcn.140059d20
nop
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x1b0], 0
mov edx, 0x18
lea rcx, [rsp + 0x198]
call fcn.1400244e0
lea rcx, [rsp + 0x198]
call fcn.1400254f0
nop
movss xmm0, dword [0x140d17054]
movss dword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x40], xmm0
lea rax, [0x141160280]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140069130
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400da9f0
mov qword [rsp + 0x98], rax
jmp 0x1401677ac
mov rax, qword [rsp + 0x60]
add rax, 0x298
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x60], rax
je 0x140167974
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
movzx eax, byte [0x14115ecbf]
cmp eax, 1
jne 0x1401677fb
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
comiss xmm0, dword [rax + 0x24]
jb 0x1401677fb
mov ecx, dword [0x1411581ac]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1401677fb
jmp 0x14016779c
movzx eax, byte [0x14115ecc4]
cmp eax, 1
jne 0x140167817
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 4]
cmp eax, 1
jne 0x140167817
jmp 0x14016779c
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
mov rdi, rax
lea rsi, [rcx + 0x1a0]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x110]
lea rcx, [0x14115ec50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x190]
lea r8, [rsp + 0x1c8]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x110]
call fcn.140026cd0
test eax, eax
je 0x14016796f
cmp dword [0x14115ed68], 0
jne 0x140167906
mov eax, dword [0x14115e618]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
movss xmm1, dword [rsp + 0x1c8]
subss xmm1, xmm0
movaps xmm0, xmm1
mov edx, 2
call fcn.140025680
movsd qword [rsp + 0xa0], xmm0
mov eax, dword [0x14115e614]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movss xmm2, dword [rsp + 0x1cc]
subss xmm2, xmm1
movaps xmm1, xmm2
mov edx, 2
movaps xmm0, xmm1
call fcn.140025680
movsd xmm1, qword [rsp + 0xa0]
addsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x38], xmm0
jmp 0x140167915
cvtsi2ss xmm0, dword [rsp + 0x190]
movss dword [rsp + 0x38], xmm0
movss xmm0, dword [rsp + 0x44]
comiss xmm0, dword [rsp + 0x38]
jbe 0x14016796f
mov eax, dword [0x141158734]
cmp dword [rsp + 0x190], eax
jge 0x14016796a
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x1f0]
call fcn.1400683e0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x3c], eax
movss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x44], xmm0
jmp 0x14016796f
jmp 0x14016779c
jmp 0x14016779c
cmp dword [rsp + 0x24], 0
jne 0x140167b7e
movzx eax, byte [0x14115ed79]
test eax, eax
je 0x140167b7e
mov dword [rsp + 0x4c], 0xf423f
mov dword [rsp + 0x20], 0
jmp 0x1401679aa
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0xa8], rax
lea rcx, [0x141160280]
call fcn.140025490
mov rcx, qword [rsp + 0xa8]
cmp rcx, rax
jae 0x140167b7e
movzx eax, byte [0x14115ecbf]
cmp eax, 1
jne 0x140167a15
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
xorps xmm0, xmm0
comiss xmm0, dword [rax + 0x24]
jb 0x140167a15
mov ecx, dword [0x1411581ac]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140167a15
jmp 0x1401679a0
movzx eax, byte [0x14115ecc4]
cmp eax, 1
jne 0x140167a43
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
movzx eax, byte [rax + 4]
cmp eax, 1
jne 0x140167a43
jmp 0x1401679a0
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
movss xmm0, dword [0x14115d8a0]
subss xmm0, dword [rax + 0xc]
mov edx, 2
call fcn.140025680
movsd qword [rsp + 0xb0], xmm0
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
movss xmm0, dword [0x14115d8a4]
subss xmm0, dword [rax + 0x10]
mov edx, 2
call fcn.140025680
movsd xmm1, qword [rsp + 0xb0]
addsd xmm1, xmm0
movaps xmm0, xmm1
movsd qword [rsp + 0xb8], xmm0
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
movss xmm0, dword [0x14115d8a8]
subss xmm0, dword [rax + 0x14]
mov edx, 2
call fcn.140025680
movsd xmm1, qword [rsp + 0xb8]
addsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x70], xmm0
movss xmm0, dword [rsp + 0x70]
divss xmm0, dword [0x140d16f80]
cvttss2si eax, xmm0
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x48], eax
jge 0x140167b79
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
mov rdx, rax
lea rcx, [rsp + 0x1f0]
call fcn.1400683e0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x141160280]
call fcn.140025460
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x4c], eax
jmp 0x1401679a0
cmp dword [rsp + 0x24], 0
jne 0x140167c0d
movss xmm0, dword [0x140d17054]
movss dword [rsp + 0x88], xmm0
movss xmm0, dword [0x140d17054]
movss dword [rsp + 0x8c], xmm0
movss xmm0, dword [0x140d17054]
movss dword [rsp + 0x90], xmm0
mov dword [0x14115d950], 0
lea rax, [rsp + 0x88]
mov rdi, qword [rsp + 0x4c0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x198]
call fcn.140061810
nop
lea rcx, [rsp + 0x1f0]
call fcn.140059e50
mov rax, qword [rsp + 0x4c0]
jmp 0x14016808a
lea rdx, [rsp + 0x1f0]
lea rcx, [0x141160cb0]
call fcn.1400683e0
mov eax, dword [rsp + 0x3c]
mov dword [0x14115d950], eax
movzx eax, byte [0x14115ed43]
test eax, eax
je 0x140167fbe
lea rdx, [0x141160e50]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e5c]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e74]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e68]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e80]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e8c]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160e98]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ea4]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160eb0]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ebc]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ec8]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ed4]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ee0]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160eec]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
lea rdx, [0x141160ef8]
lea rcx, [rsp + 0x198]
call fcn.1401680b0
nop
lea rax, [rsp + 0x198]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140069130
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400da9f0
mov qword [rsp + 0xc0], rax
jmp 0x140167dae
mov rax, qword [rsp + 0x68]
add rax, 0xc
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0x68], rax
je 0x140167fae
lea rax, [rsp + 0x1b8]
mov rdi, rax
mov rsi, qword [rsp + 0x68]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0x1b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x150]
lea rcx, [0x14115ec50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x150]
call fcn.140026cd0
test eax, eax
je 0x140167fa9
mov eax, dword [0x14115e618]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
movss xmm1, dword [rsp + 0x1d8]
subss xmm1, xmm0
movaps xmm0, xmm1
mov edx, 2
call fcn.140025680
movsd qword [rsp + 0xc8], xmm0
mov eax, dword [0x14115e614]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movss xmm2, dword [rsp + 0x1dc]
subss xmm2, xmm1
movaps xmm1, xmm2
mov edx, 2
movaps xmm0, xmm1
call fcn.140025680
movsd xmm1, qword [rsp + 0xc8]
addsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x50]
comiss xmm0, dword [rsp + 0x40]
jbe 0x140167fa9
mov eax, dword [0x141158734]
cmp dword [rsp + 0x1b0], eax
jge 0x140167fa4
lea rdx, [0x141160e50]
lea rcx, [rsp + 0x1b8]
call fcn.140059c30
movzx eax, al
test eax, eax
je 0x140167f31
lea rax, [rsp + 0x28]
lea rcx, [rsp + 0x1b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
cvtsi2ss xmm0, dword [0x141158648]
movss xmm1, dword [rsp + 0x30]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x30], xmm0
jmp 0x140167f96
lea rdx, [0x141160e50]
lea rcx, [rsp + 0x1b8]
call fcn.140059c30
movzx eax, al
test eax, eax
je 0x140167f7c
lea rax, [rsp + 0x28]
lea rcx, [rsp + 0x1b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x30]
subss xmm0, dword [0x140d16ec0]
movss dword [rsp + 0x30], xmm0
jmp 0x140167f96
lea rax, [rsp + 0x28]
lea rcx, [rsp + 0x1b8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x50], xmm0
jmp 0x140167fa9
jmp 0x140167da0
jmp 0x140167da0
lea rcx, [rsp + 0x198]
call fcn.14005f420
nop
jmp 0x140168033
cmp dword [0x14115ed2c], 0
jne 0x140167ffd
lea rax, [rsp + 0x28]
lea rcx, [0x141160e50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
cvtsi2ss xmm0, dword [0x141158648]
movss xmm1, dword [rsp + 0x30]
addss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x30], xmm0
jmp 0x140168033
cmp dword [0x14115ed2c], 1
jne 0x140168033
lea rax, [rsp + 0x28]
lea rcx, [0x141160e50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x30]
subss xmm0, dword [0x140d16ec0]
movss dword [rsp + 0x30], xmm0
lea rax, [rsp + 0x28]
mov rdi, qword [rsp + 0x4c0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x198]
call fcn.140061810
nop
lea rcx, [rsp + 0x1f0]
call fcn.140059e50
mov rax, qword [rsp + 0x4c0]
jmp 0x14016808a
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401848d0
add rsp, 0x4a8
pop rdi
pop rsi
ret