Function at 0x1000d222
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1003b008]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [0x1003b9f8]
movss xmm0, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [eax + 4]
push edi
push dword [esp + 0x40]
mov eax, dword [eax + 0x48]
push ecx
movss dword [esp], xmm0
mov ecx, edx
push esi
call eax
mov ecx, dword [0x1003bb10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x1003bb1c]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [0x1003bb1c]
mov dword [esp + 0x24], eax
push dword [eax + 0xb38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
call edx
mov ecx, eax
test ecx, ecx
jne 0x1000cf32
mov dword [esp + 0x1c], eax
jmp 0x1000cf3d
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x1c], eax
mov ecx, dword [0x1003ba04]
test ecx, ecx
je 0x1000d6fc
mov byte [0x1022933d], 1
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0x20]
call eax
cmp byte [0x1003b6aa], 0
mov esi, eax
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x1000cf84
push 1
call edi
test ax, ax
jne 0x1000cf7d
push 2
call edi
test ax, ax
je 0x1000cf84
and dword [esi + 0x24], 0xfffff1e6
movss xmm0, dword [esi + 0x1c]
lea edi, [esi + 0xc]
movss dword [0x1021ab68], xmm0
movss xmm0, dword [esi + 0x18]
movss dword [0x1021ab6c], xmm0
movss xmm0, dword [edi]
movss dword [0x1021ab7c], xmm0
movss xmm0, dword [edi + 4]
movss dword [0x1021ab80], xmm0
movss xmm0, dword [edi + 8]
movss dword [0x1021ab84], xmm0
movss xmm0, dword [edi]
movss dword [0x1021ab70], xmm0
movss xmm0, dword [edi + 4]
movss dword [0x1021ab74], xmm0
movss xmm0, dword [edi + 8]
movss dword [0x1021ab78], xmm0
call fcn.1002a950
inc dword [0x1003ba00]
cmp byte [0x1004ca1c], 0
je 0x1000d0de
push 0x75
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x1003b13c]
test ax, ax
mov eax, 1
cmovne ecx, eax
push 0x76
mov dword [0x1003b13c], ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1000d043
lea eax, [esp + 0x28]
mov word [0x1003bce8], 1
mov dword [0x1003bce4], eax
push 0x77
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1000d062
lea eax, [esp + 0x28]
mov word [0x1003bce8], 0x100
mov dword [0x1003bce4], eax
push 0x78
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x1003b13c]
test ax, ax
mov edx, 2
cmovne ecx, edx
push 0x79
mov dword [0x1003b13c], ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x1003b13c]
xor edx, edx
test ax, ax
push 0x7a
cmovne ecx, edx
mov dword [0x1003b13c], ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x1003b13c]
test ax, ax
mov edx, 3
cmovne ecx, edx
sub esp, 0xc
mov dword [0x1003b13c], ecx
mov ecx, esp
movq xmm0, qword [edi]
mov eax, dword [edi + 8]
push dword [esp + 0x30]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, 0x1003b130
push esi
call fcn.10026b70
mov ecx, dword [esp + 0x24]
call fcn.10002d90
cmp dword [eax], 0
jne 0x1000d6fc
cmp byte [0x1004c3fc], 0
je 0x1000d16b
mov ecx, dword [esp + 0x24]
call fcn.10002ac0
mov ecx, dword [eax]
mov dword [0x1021abc8], ecx
not cl
and cl, 1
cmp byte [0x10229348], 0
mov byte [0x10229349], cl
jne 0x1000d12d
cmp byte [0x1022933f], 0
je 0x1000d12d
or dword [esi + 0x24], 2
jmp 0x1000d164
mov eax, dword [esi + 0x24]
test al, 2
je 0x1000d15d
test cl, cl
jne 0x1000d148
mov al, 1
mov byte [0x1022933f], 1
mov byte [0x10229348], al
jmp 0x1000d16b
and eax, 0xfffffffd
or eax, 2
and eax, 0xfffffffd
mov dword [esi + 0x24], eax
xor al, al
mov byte [0x10229348], al
jmp 0x1000d16b
mov byte [0x10229348], 0
mov byte [0x1022933f], 0
push dword [esp + 0x24]
mov ecx, 0x1003d904
push esi
call fcn.10026760
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
cmp byte [0x1004c402], 0
mov ecx, dword [esp + 0x24]
movss xmm3, dword [eax + 4]
movss xmm1, dword [eax + 8]
movss xmm4, dword [ecx + 0xd8]
movss xmm2, dword [ecx + 0xdc]
addss xmm3, xmm4
movss xmm0, dword [ecx + 0xd4]
addss xmm1, xmm2
addss xmm0, dword [eax]
movss dword [0x1003d89c], xmm3
movss dword [0x1003d8a0], xmm1
movss dword [0x1003d898], xmm0
je 0x1000d1e8
push dword [esp + 0x1c]
push ecx
push esi
mov ecx, 0x1021abc4
call fcn.1002d220
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je case.0x1000d21b.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js case.0x1000d21b.0
cmp eax, 0x1d
jg case.0x1000d21b.0
cmp eax, 0x1c
ja case.0x1000d21b.1
movzx eax, byte [eax + 0x1000d718]
jmp dword [eax*4 + 0x1000d710]
cmp byte [0x1004c3c4], 0
je 0x1000d239
push dword [esp + 0x1c]
push dword [esp + 0x28]
push esi
call fcn.1002bc70
cmp byte [0x1004c1fc], 0
je 0x1000d405
push dword [esp + 0x24]
movq xmm0, qword [edi]
mov ecx, 0x1003be48
mov eax, dword [edi + 8]
push esi
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
call fcn.100049d0
cmp byte [0x1004c206], 0
je 0x1000d405
movss xmm2, dword [edi]
subss xmm2, dword [esp + 8]
movss xmm5, dword [0x100377a0]
comiss xmm2, dword [0x100376a4]
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm2
mulss xmm0, dword [0x100374b8]
movss dword [esp + 0x20], xmm0
ja 0x1000d2b7
movss xmm4, dword [0x10037748]
comiss xmm4, xmm2
ja 0x1000d2b7
xorps xmm3, xmm3
jmp 0x1000d31e
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x1000d2c8
xorps xmm0, xmm5
movss dword [esp + 0x20], xmm0
fld dword [esp + 0x20]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm2, dword [esp + 0x18]
xorps xmm3, xmm3
movss xmm4, dword [0x10037748]
add esp, 4
comiss xmm3, xmm2
movss xmm5, dword [0x100377a0]
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x100376d4]
jbe 0x1000d314
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
jmp 0x1000d31e
subss xmm2, xmm0
movss dword [esp + 0x14], xmm2
movss xmm1, dword [esi + 0x10]
movss xmm6, dword [esp + 0xc]
movss xmm2, dword [0x100376a4]
subss xmm1, xmm6
comiss xmm1, xmm2
movaps xmm0, xmm1
movss dword [esp + 0x28], xmm1
mulss xmm0, dword [0x100374b8]
movss dword [esp + 0x20], xmm0
ja 0x1000d356
comiss xmm4, xmm1
jbe 0x1000d3ac
comiss xmm3, xmm0
jbe 0x1000d364
xorps xmm0, xmm5
movss dword [esp + 0x20], xmm0
fld dword [esp + 0x20]
push ecx
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm1, dword [esp + 0x2c]
xorps xmm2, xmm2
movss xmm6, dword [esp + 0x10]
add esp, 4
fstp dword [esp + 0x20]
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x100376d4]
comiss xmm2, xmm1
movss xmm2, dword [0x100376a4]
jbe 0x1000d3a8
addss xmm1, xmm0
jmp 0x1000d3ac
subss xmm1, xmm0
mov eax, dword [0x1004c218]
cmp eax, 0xb4
jge 0x1000d3c7
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm2, dword [0x1004c324]
movss xmm0, dword [esp + 0x14]
comiss xmm2, xmm0
jbe 0x1000d3eb
movaps xmm3, xmm2
xorps xmm3, xmmword [0x100377a0]
comiss xmm0, xmm3
jbe 0x1000d3eb
comiss xmm2, xmm1
jbe 0x1000d3eb
comiss xmm1, xmm3
ja 0x1000d405
movss xmm0, dword [esp + 8]
movss dword [edi], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [edi + 4], xmm6
movss dword [edi + 8], xmm0
test byte [esi + 0x24], 1
je 0x1000d621
push dword [esp + 0x1c]
push dword [esp + 0x28]
call fcn.1002cc20
test al, al
je 0x1000d5d6
mov eax, dword [0x1003bfe4]
cmp eax, 0xffffffff
je 0x1000d435
inc dword [eax*4 + 0x1003ba08]
mov cl, byte [0x1004c3c4]
mov byte [0x1022933e], 0
mov byte [0x1022933c], 1
mov dword [0x10229338], 0
test cl, cl
je 0x1000d464
cmp byte [0x1004c3c6], 0
jne 0x1000d464
mov al, 1
jmp 0x1000d466
xor al, al
test cl, cl
je 0x1000d472
test al, al
je 0x1000d5b6
cmp byte [0x1004c3bc], 0
je 0x1000d4a7
mov ecx, dword [esi + 4]
call fcn.10029040
and eax, 0x7fffffff
mov dword [esi + 0x34], eax
cmp al, 0x8d
je 0x1000d4a7
nop
inc dword [esi + 4]
mov ecx, dword [esi + 4]
call fcn.10029040
and eax, 0x7fffffff
mov dword [esi + 0x34], eax
cmp al, 0x8d
jne 0x1000d490
cmp byte [0x1004c3bd], 0
je 0x1000d5b6
mov eax, dword [0x1004c3c0]
sub eax, 1
je 0x1000d4f4
sub eax, 1
je 0x1000d4de
sub eax, 1
movzx eax, byte [0x1004c411]
push eax
push dword [esp + 0x20]
push ecx
push edi
push esi
jne 0x1000d503
call fcn.10020df0
jmp 0x1000d508
movzx eax, byte [0x1004c411]
push eax
push dword [esp + 0x20]
push ecx
push edi
push esi
call fcn.10021e70
jmp 0x1000d508
movzx eax, byte [0x1004c411]
push eax
push dword [esp + 0x20]
push ecx
push edi
push esi
call fcn.10021820
mov ecx, dword [0x1003b864]
mov al, byte [0x1004c411]
mov byte [esp + 0x1b], al
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
cmp byte [0x1004c410], 0
mov eax, dword [esp + 0x24]
movss xmm1, dword [eax + 0xbb0]
addss xmm1, xmm1
je 0x1000d576
cmp byte [esp + 0x1b], 0
je 0x1000d576
movss xmm0, dword [0x100376a4]
subss xmm0, dword [edi]
subss xmm0, xmm1
movss dword [edi], xmm0
movss xmm1, dword [eax + 0xbb4]
movss xmm0, dword [esi + 0x10]
addss xmm1, xmm1
subss xmm0, dword [0x100376a4]
subss xmm0, xmm1
movss dword [esi + 0x10], xmm0
jmp 0x1000d5b6
movss xmm0, dword [edi]
movss xmm2, dword [eax + 0xbb4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xbb8]
addss xmm2, xmm2
addss xmm3, xmm3
movss dword [edi], xmm0
movss xmm0, dword [edi + 4]
subss xmm0, xmm2
movss dword [edi + 4], xmm0
movss xmm0, dword [edi + 8]
subss xmm0, xmm3
movss dword [edi + 8], xmm0
movzx eax, byte [0x1022933d]
xor ecx, ecx
cmp byte [0x1004c203], cl
cmovne eax, ecx
mov ecx, esi
mov byte [0x1022933d], al
call fcn.1000ca20
jmp case.0x1000d21b.0
cmp byte [0x1004c204], 0
je 0x1000d5f9
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
and dword [esi + 0x24], 0xfffffffe
jmp case.0x1000d21b.0
cmp byte [0x1004c43d], 0
mov eax, 1
mov ecx, dword [esp + 0x24]
mov edx, esi
cmovne eax, dword [0x1004c444]
push eax
call fcn.1000c620
add esp, 4
and dword [esi + 0x24], 0xfffffffe
jmp case.0x1000d21b.0
cmp byte [0x1004c204], 0
je 0x1000d640
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp case.0x1000d21b.0
push dword [0x1004c444]
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.1000c620
add esp, 4
cmp byte [0x1004c3fd], 0
je 0x1000d675
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1000d675
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.1002c690
push ecx
push esi
push ecx
mov ecx, 0x1021ab98
call fcn.100299f0
push dword [esp + 0x24]
push ecx
mov ecx, 0x1003d904
call fcn.10026940
cmp byte [0x1004c405], 0
je 0x1000d6cd
push 0x46
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1000d6b7
cmp byte [0x1004c406], 0
sete al
mov byte [0x1004c406], al
jmp 0x1000d6bc
mov al, byte [0x1004c406]
test al, al
je 0x1000d6cd
test byte [esi + 0x24], 1
jne 0x1000d6cd
mov dword [esi + 8], 0x7fffffff
cmp byte [0x1022933d], 0
je 0x1000d6fc
movss xmm0, dword [edi]
movss dword [0x1003c6c0], xmm0
movss xmm0, dword [edi + 4]
movss dword [0x1003c6c4], xmm0
movss xmm0, dword [edi + 8]
movss dword [0x1003c6c8], xmm0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.1002dd4e
add esp, 0x2c
ret 0xc