Function at 0x10021ae0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
cmp byte [0x10120792], 0
push esi
push edi
je 0x10022110
mov eax, dword [0x1011e254]
mov ecx, dword [0x10120798]
dec eax
cmp eax, 3
ja case.default.0x10021b09
jmp dword [eax*4 + 0x10022118]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10021b41
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10021b41
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sete al
jmp 0x10021b41
mov al, byte [esp + 0xf]
test al, al
je 0x10022110
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x10022110
mov ecx, dword [0x101202f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10022110
mov edi, dword [0x10120420]
test edi, edi
je 0x10022110
mov eax, dword [0x10120334]
test eax, eax
jne 0x10021bbb
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x10110195
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x10120334], eax
cmp dword [eax + edi], 0
jle 0x10022110
call fcn.1000f8e0
cmp eax, 9
je 0x10022110
call fcn.1000f8e0
cmp eax, 8
je 0x10022110
mov eax, dword [0x101202ec]
or edx, 0xffffffff
movss xmm0, dword [0x10117124]
movss dword [esp + 0x18], xmm0
mov dword [esp + 0x14], edx
cmp dword [eax + 0x18], 1
mov dword [esp + 0x10], 1
jle 0x10021d80
nop dword [eax]
mov ecx, dword [0x10120320]
push dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x10021d65
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
mov edx, dword [edx + 0x24]
call edx
test al, al
jne 0x10021d65
mov eax, dword [0x10120334]
test eax, eax
jne 0x10021c78
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x10110195
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100ad
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x10120334], eax
cmp dword [eax + edi], 0
jle 0x10021d65
mov eax, dword [0x10120420]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x10021d65
mov eax, dword [0x101202f0]
test eax, eax
jne 0x10021ccd
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x101202f0], eax
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x10021d10
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov ecx, dword [esp + 0x1c]
mov dword [0x101202f0], eax
movss xmm2, dword [ecx]
movss xmm0, dword [ecx + 4]
subss xmm0, dword [eax + edi + 4]
subss xmm2, dword [eax + edi]
movss xmm1, dword [ecx + 8]
subss xmm1, dword [eax + edi + 8]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10001660
movss xmm1, dword [esp + 0x18]
comiss xmm1, xmm0
mov ecx, dword [esp + 0x10]
jbe 0x10021d69
mov edx, ecx
movss dword [esp + 0x18], xmm0
mov dword [esp + 0x14], edx
jmp 0x10021d6d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [0x101202ec]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 0x18]
jl 0x10021c10
mov ecx, dword [0x10120320]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
test edi, edi
je 0x10022110
mov eax, dword [0x101204a4]
test eax, eax
jne 0x10021dd2
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x10110509
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x101204a4], eax
movss xmm2, dword [eax + edi + 4]
movss xmm0, dword [eax + edi]
movss xmm1, dword [eax + edi + 8]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10001660
mov esi, dword [0x101202f0]
movss dword [esp + 0x14], xmm0
test esi, esi
jne 0x10021e40
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov esi, eax
mov dword [0x101202f0], esi
mov eax, dword [0x10120420]
lea ecx, [esi + edi]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10021e9d
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [0x10120420]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [0x101202f0], esi
movss xmm0, dword [ecx]
subss xmm0, dword [esi + eax]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + eax + 4]
movss dword [esp + 0x10], xmm0
test esi, esi
jne 0x10021ef5
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov esi, eax
mov dword [0x101202f0], esi
push 6
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.10011ca0
movss xmm1, dword [eax + 8]
mov eax, dword [esp + 0x18]
movss xmm0, dword [esi + eax + 8]
comiss xmm0, xmm1
jbe 0x1002205c
mov eax, dword [0x10120420]
mov dword [esp + 0x18], eax
mov eax, dword [0x101202f0]
test eax, eax
jne 0x10021f5e
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov dword [0x101202f0], eax
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x10021fa1
call fcn.100034c0
mov edx, 0xe80c2f78
mov ecx, 0x101100b9
call fcn.100018f0
mov edx, 0xc10bf213
mov ecx, 0x101100c5
mov esi, eax
call fcn.100018f0
push esi
push eax
call fcn.1008e510
mov ecx, dword [esp + 0x18]
mov dword [0x101202f0], eax
movss xmm2, dword [ecx]
movss xmm0, dword [ecx + 4]
subss xmm0, dword [eax + edi + 4]
subss xmm2, dword [eax + edi]
movss xmm1, dword [ecx + 8]
subss xmm1, dword [eax + edi + 8]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.10001660
movss xmm1, dword [0x101170a8]
comiss xmm1, xmm0
jbe 0x1002205c
mov esi, dword [ebp + 8]
movss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x10116f00]
movss dword [esp + 0x18], xmm0
call fcn.1000fe90
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
call fcn.1000feb0
movss xmm3, dword [esp + 0x20]
movaps xmm2, xmm0
mulss xmm2, dword [esp + 0x10]
movaps xmm1, xmm3
mulss xmm0, dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x1c]
mulss xmm3, dword [esp + 0x10]
addss xmm2, xmm1
subss xmm0, xmm3
mulss xmm2, dword [esp + 0x14]
mulss xmm0, dword [esp + 0x14]
movss dword [esi + 0x24], xmm2
movss dword [esi + 0x28], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
movss xmm5, dword [esp + 0x10]
movss xmm4, dword [esp + 0x1c]
cvtps2pd xmm0, xmm5
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x20]
movsd xmm1, qword [esp + 0x20]
cvtpd2ps xmm1, xmm1
mov eax, dword [ebp + 8]
mulss xmm1, dword [0x101170b8]
divss xmm1, dword [0x10117010]
subss xmm1, dword [eax + 0x10]
comiss xmm1, dword [0x101170b8]
jbe 0x100220c0
subss xmm1, dword [0x101170e0]
jmp 0x100220d5
movss xmm0, dword [0x10117180]
comiss xmm0, xmm1
jbe 0x100220d5
addss xmm1, dword [0x101170e0]
comiss xmm1, dword [0x10116f34]
jbe 0x100220f8
movss xmm0, dword [esp + 0x14]
xorps xmm0, xmmword [0x10118a80]
movss dword [eax + 0x28], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
movss xmm0, dword [0x10117128]
comiss xmm0, xmm1
jbe 0x10022110
movss xmm1, dword [esp + 0x14]
movss dword [eax + 0x28], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4