Function at 0x10020c30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword fs:[0x2c]
mov edx, dword [0x10122660]
push esi
mov esi, ecx
push edi
mov edx, dword [eax + edx*4]
mov eax, dword [0x101584ac]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], esi
cmp eax, dword [edx + 4]
jle 0x10020cbf
push 0x101584ac
call fcn.100f18de
add esp, 4
cmp dword [0x101584ac], 0xffffffff
jne 0x10020cbf
push 0x101584ac
mov dword [0x10158490], 0x7f800000
mov dword [0x1015848c], 0x7f800000
mov dword [0x10158488], 0x7f800000
mov dword [0x1015849c], 0x7f800000
mov dword [0x10158498], 0x7f800000
mov dword [0x10158494], 0x7f800000
call fcn.100f188d
add esp, 4
cmp byte [esi], 0
movss xmm3, dword [edi + 0xc]
movss xmm4, dword [edi + 0x10]
movaps xmm0, xmm3
movss xmm5, dword [edi + 0x14]
movaps xmm1, xmm4
movss xmm6, dword [edi + 0x24]
movaps xmm2, xmm5
movss xmm7, dword [edi + 0x28]
mov eax, dword [edi + 0x30]
subss xmm0, dword [esi + 4]
subss xmm1, dword [esi + 8]
subss xmm2, dword [esi + 0xc]
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0x50], xmm4
movss dword [esp + 0x54], xmm5
movss dword [esp + 0x58], xmm6
movss dword [esp + 0x5c], xmm7
mov dword [esp + 0x60], eax
jne 0x10020d5f
movss dword [0x10158488], xmm3
movss dword [0x1015848c], xmm4
movss dword [0x10158490], xmm5
movss dword [0x10158494], xmm0
movss dword [0x10158498], xmm1
movss dword [0x1015849c], xmm2
movss dword [0x101584a0], xmm6
movss dword [0x101584a4], xmm7
mov dword [0x101584a8], eax
cmp byte [0x10158194], 0
je 0x100214c4
mov eax, dword [0x1011f200]
mov ecx, dword [0x10158174]
dec eax
cmp eax, 3
ja case.default.0x10020d7d
jmp dword [eax*4 + 0x100215a0]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
jmp 0x10020db5
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10020db5
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
sete al
jmp 0x10020db5
mov al, byte [esp + 0xf]
test al, al
je 0x100214c4
mov ecx, dword [0x10122698]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x100214c4
mov ecx, dword [0x10122698]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100214c4
mov eax, dword [0x101227d4]
mov dword [esp + 0x40], eax
test eax, eax
je 0x100214c4
mov eax, dword [0x101226d4]
test eax, eax
jne 0x10020e36
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x101100f5
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x1011000d
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov esi, dword [esp + 0x18]
mov dword [0x101226d4], eax
mov ecx, dword [esp + 0x40]
cmp dword [ecx + eax], 0
jle 0x100214c4
call fcn.1000f990
cmp eax, 9
je 0x100214c4
call fcn.1000f990
cmp eax, 8
je 0x100214c4
cmp dword [0x1011f23c], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movss dword [esp + 0x20], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
jle 0x10021486
mov eax, dword [0x10158098]
mov ecx, dword [eax + 0x1c]
dec ecx
call fcn.1001f800
cmp byte [esi], 0
mov eax, dword [esp + 0x14]
cmovne eax, dword [0x10158360]
cmp byte [0x10158242], 0
mov dword [esp + 0x14], eax
setne dl
mov byte [esp + 0xf], dl
cmp eax, 1
je 0x10020ed3
mov byte [esp + 0xe], 0
cmp eax, 3
jne 0x10020edb
mov byte [esp + 0xe], 1
cmp eax, 3
jle 0x10020f59
cmp dword [esp + 0x40], 2
jl 0x10021486
movd xmm2, dword [esp + 0x1c]
movss xmm1, dword [0x10158494]
movss xmm3, dword [0x10117e7c]
mulss xmm1, xmm3
cvtdq2ps xmm2, xmm2
mulss xmm1, xmm2
addss xmm1, dword [0x10158494]
movss dword [0x10158494], xmm1
movss xmm1, dword [0x10158498]
mulss xmm1, xmm3
mulss xmm1, xmm2
addss xmm1, dword [0x10158498]
movss dword [0x10158498], xmm1
movss xmm1, dword [0x1015849c]
mulss xmm1, xmm3
mulss xmm1, xmm2
addss xmm1, dword [0x1015849c]
movss dword [0x1015849c], xmm1
movss xmm1, dword [0x10158488]
xor ecx, ecx
movss xmm2, dword [0x1015848c]
movss xmm3, dword [0x10158490]
mov eax, dword [0x1011f23c]
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm3
mov dword [esp + 0x24], ecx
test eax, eax
jle 0x10021476
nop word [eax + eax]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x1002147a
test dl, dl
je 0x10021163
addss xmm1, dword [0x10158494]
addss xmm2, dword [0x10158498]
addss xmm3, dword [0x1015849c]
movss xmm0, dword [0x101584a0]
mov eax, dword [edi + 0x14]
movss dword [edi + 0x24], xmm0
movss xmm0, dword [0x101584a4]
movss dword [edi + 0x28], xmm0
movq xmm0, qword [edi + 0xc]
movss dword [edi + 0x10], xmm2
movss dword [edi + 0x14], xmm3
movq qword [esp + 0x64], xmm0
movss dword [0x101208e0], xmm1
movss xmm0, dword [edi + 0x10]
movss dword [0x101208e4], xmm0
movss xmm0, dword [edi + 0x14]
movss dword [0x101208e8], xmm0
movss xmm0, dword [edi + 0x24]
movss dword [esp + 0x28], xmm0
movss dword [0x10122754], xmm0
movss xmm0, dword [edi + 0x28]
movss dword [esp + 0x30], xmm0
movss dword [0x10122758], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [edi + 0x10], xmm0
mov dword [esp + 0x6c], eax
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x3c], xmm3
xorps xmm3, xmm3
movss dword [edi + 0x14], xmm0
movss xmm0, dword [0x101208e4]
comiss xmm3, xmm0
movss dword [esp + 0x38], xmm2
movss xmm2, dword [0x10118004]
movss dword [esp + 0x34], xmm1
jbe 0x10021099
addss xmm0, xmm2
movss xmm1, dword [edi + 0x10]
comiss xmm3, xmm1
jbe 0x100210a7
addss xmm1, xmm2
comiss xmm0, xmm1
jbe 0x100210b9
subss xmm1, xmm0
andps xmm1, xmmword [0x101197f0]
jmp 0x100210cb
subss xmm0, xmm1
movaps xmm1, xmm2
andps xmm0, xmmword [0x101197f0]
subss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
movaps xmm1, xmm0
mulss xmm0, dword [0x10117e38]
addss xmm1, dword [0x10117fd0]
movss dword [esp + 0x48], xmm0
mulss xmm1, dword [0x10117e38]
movss dword [esp + 0x2c], xmm1
call fcn.1000ff40
mulss xmm0, dword [esp + 0x28]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x2c]
call fcn.1000ff40
mulss xmm0, dword [esp + 0x30]
movss xmm1, dword [esp + 0x44]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x48]
movss dword [edi + 0x24], xmm1
call fcn.1000ff60
mulss xmm0, dword [esp + 0x28]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x2c]
call fcn.1000ff60
mulss xmm0, dword [esp + 0x30]
movss xmm1, dword [esp + 0x48]
addss xmm1, xmm0
movss dword [edi + 0x28], xmm1
jmp 0x1002117a
cmp byte [0x10158194], 0
je 0x1002117a
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov ecx, dword [edi + 0x30]
mov eax, ecx
and eax, 0xfffffffb
or ecx, 4
cmp byte [esp + 0xe], 0
cmove ecx, eax
mov dword [edi + 0x30], ecx
call fcn.100231c0
push edi
mov ecx, eax
call fcn.1000fbf0
mov ecx, edi
call fcn.10020610
mov byte [esi], al
call fcn.100231c0
mov ecx, dword [0x101227d4]
mov esi, eax
mov dword [ecx + 0x3348], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0xffffffff
mov ecx, dword [0x101580bc]
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [0x1012268c]
mov ecx, dword [esi]
inc dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [0x1012268c]
mov ecx, dword [esi + 4]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x10158098]
mov al, byte [esi + 0x28]
mov byte [ecx + 8], al
mov al, byte [esi + 0x29]
mov byte [ecx + 0x18], al
mov byte [esi + 0xf0], 0
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x10021281
cmp dword [esp + 0x14], 3
jle 0x10021281
mov eax, dword [0x101227d4]
mov dword [esp + 0x48], eax
mov eax, dword [0x10122690]
test eax, eax
jne 0x10021263
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110019
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x10110025
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov esi, dword [esp + 0x18]
mov dword [0x10122690], eax
mov ecx, dword [esp + 0x48]
movss xmm0, dword [esp + 0x20]
comiss xmm0, dword [ecx + eax + 8]
jbe 0x10021286
mov dword [esp + 0x1c], 0xffffffff
jmp 0x10021471
mov eax, dword [0x10122690]
mov ecx, dword [0x101227d4]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x10122680]
test ecx, ecx
jne 0x100212d3
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110001
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x1011000d
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov ecx, eax
mov eax, dword [0x10122690]
mov dword [0x10122680], ecx
mov edx, dword [esp + 0x48]
test byte [edx + ecx], 1
jne 0x10021337
call fcn.1000f990
cmp eax, 8
je 0x1002146d
call fcn.1000f990
cmp eax, 9
je 0x1002146d
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
jne 0x100214cc
mov ecx, dword [esp + 0x24]
mov eax, dword [0x1011f23c]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jge 0x10021476
movss xmm1, dword [esp + 0x34]
movss xmm2, dword [esp + 0x38]
movss xmm3, dword [esp + 0x3c]
mov dl, byte [esp + 0xf]
jmp 0x10020fa0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10021416
cmp ecx, 2
jne 0x100213ab
mov ecx, dword [0x101227d4]
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x1002138b
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110019
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x10110025
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov ecx, dword [esp + 0x48]
mov dword [0x10122690], eax
movss xmm0, dword [esp + 0x20]
xor edx, edx
comiss xmm0, dword [ecx + eax + 8]
setbe dl
lea edx, [edx*2 - 1]
mov dword [esp + 0x1c], edx
jmp 0x10021465
cmp ecx, 3
jle 0x10021465
mov ecx, dword [0x101227d4]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x100213ff
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110019
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x10110025
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov ecx, dword [esp + 0x48]
mov dword [0x10122690], eax
movss xmm0, dword [esp + 0x20]
comiss xmm0, dword [ecx + eax + 8]
jbe 0x10021416
mov dword [esp + 0x1c], 0xffffffff
jmp 0x10021465
mov ecx, dword [0x101227d4]
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x10021459
call fcn.10003520
mov edx, 0xe80c2f78
mov ecx, 0x10110019
call fcn.10001980
mov edx, 0xc10bf213
mov ecx, 0x10110025
mov esi, eax
call fcn.10001980
push esi
push eax
call fcn.1008c3b0
mov ecx, dword [esp + 0x48]
mov dword [0x10122690], eax
movss xmm0, dword [ecx + eax + 8]
movss dword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x18]
mov eax, dword [0x1011f23c]
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x14]
cmp ecx, eax
jl 0x10020e96
movss xmm0, dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [edi + 0x10], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [edi + 0x14], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [edi + 0x24], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [edi + 0x28], xmm0
mov dword [edi + 0x30], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 4
cmovge eax, ecx
mov dword [0x10158360], eax
mov al, byte [esp + 0xe]
mov byte [esi + 0x1e], al
cmp byte [esp + 0xf], cl
je 0x10021569
movss xmm0, dword [0x101584a0]
movss dword [edi + 0x24], xmm0
movss xmm0, dword [0x101584a4]
movss dword [edi + 0x28], xmm0
movss xmm0, dword [0x10158490]
movss xmm2, dword [0x10158488]
movss xmm1, dword [0x1015848c]
addss xmm0, dword [0x1015849c]
addss xmm2, dword [0x10158494]
addss xmm1, dword [0x10158498]
movss dword [edi + 0x14], xmm0
movss dword [edi + 0xc], xmm2
movss dword [edi + 0x10], xmm1
movss dword [0x10158488], xmm2
movss xmm0, dword [edi + 0x10]
movss dword [0x1015848c], xmm0
movss xmm0, dword [edi + 0x14]
movss dword [0x10158490], xmm0
mov eax, dword [0x1012268c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
inc eax
mov dword [esi + 0x28], ecx
add eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [0x1012268c]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x2c], eax
movsx eax, word [edi + 0x44]
cdq
xor eax, edx
sub eax, edx
pop edi
mov dword [esi + 0x30], eax
pop esi
mov esp, ebp
pop ebp
ret 4