Function at 0x100a15a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x101ab040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1020f3ec], 0
push esi
push edi
je 0x100a1e0d
cmp byte [0x1020f404], 1
xorps xmm0, xmm0
mov eax, dword [0x103671b4]
mov dword [ebp - 0x80], eax
mov eax, dword [0x1032827c]
jne 0x100a1615
test eax, eax
je 0x100a1619
movd xmm0, dword [0xe61e58]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0xe7c3d8]
mulss xmm0, dword [0x1019d2f0]
subss xmm0, dword [0x1019e1a4]
test eax, eax
jne 0x100a161e
call fcn.100b5450
cmp dword [0x1020f400], 0
jne 0x100a163b
mov dword [0x1020f3f8], 0xbe
mov dword [0x1020f3fc], 0x1ad
cmp byte [0x1020f405], 1
jne 0x100a169f
addss xmm0, xmm0
movss dword [ebp - 0x74], xmm0
addss xmm0, dword [0x1019e2cc]
cvttss2si eax, xmm0
mov dword [0x1020f3f0], eax
call fcn.1007bd70
cmp al, 1
jne 0x100a167d
movss xmm0, dword [ebp - 0x74]
addss xmm0, dword [0x1019e134]
cvttss2si eax, xmm0
mov dword [0x1020f3f0], eax
call fcn.1007be90
cmp al, 1
jne 0x100a169f
movss xmm0, dword [ebp - 0x74]
addss xmm0, dword [0x1019deb4]
cvttss2si esi, xmm0
mov dword [0x1020f3f0], esi
jmp 0x100a16a5
mov esi, dword [0x1020f3f0]
cmp byte [0x1020f406], 1
jne 0x100a1835
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [0x1020f3f0]
mov edi, dword [0x1020f3f4]
test ax, ax
jns 0x100a181c
movd xmm2, dword [0x879340c]
movd xmm3, dword [0x1020f3f8]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
movd xmm0, edi
comiss xmm1, xmm2
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm3, xmm3
ja 0x100a174c
addss xmm1, xmm3
comiss xmm2, xmm1
ja 0x100a174c
movd xmm1, dword [0x8793410]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x100a174c
addss xmm0, dword [0x1019ddf8]
comiss xmm1, xmm0
ja 0x100a174c
mov cl, byte [0x1020f330]
test cl, cl
jne 0x100a175a
mov cl, 1
mov byte [0x1020f330], cl
movzx eax, word [0x879340c]
mov word [0x1020f332], ax
movzx eax, word [0x8793410]
mov word [0x1020f334], ax
jmp 0x100a1752
mov cl, byte [0x1020f330]
test cl, cl
je 0x100a183b
cmp byte [0x1020f405], 0
jne 0x100a183b
cmp dword [0xe61e58], 0x550
jl 0x100a178f
cmp dword [0x1032827c], 0
je 0x100a178f
mov eax, dword [0x1020f3f8]
add eax, 0x2c1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
jmp 0x100a1797
movss xmm1, dword [0x1019e300]
mov ecx, dword [0x879340c]
movsx eax, word [0x1020f332]
sub ecx, eax
movsx eax, word [0x1020f334]
add ecx, esi
mov dword [0x1020f3f0], ecx
mov edx, dword [0x8793410]
sub edx, eax
mov eax, 1
add edx, edi
cmp ecx, eax
cmovl ecx, eax
cmp edx, eax
cmovl edx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
minss xmm1, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvttss2si esi, xmm1
movss xmm1, dword [0x1019e180]
minss xmm1, xmm0
mov dword [0x1020f3f0], esi
cvttss2si edi, xmm1
mov dword [0x1020f3f4], edi
movzx eax, word [0x879340c]
mov word [0x1020f332], ax
movzx eax, word [0x8793410]
mov word [0x1020f334], ax
jmp 0x100a183b
cmp byte [0x1020f330], 0
je 0x100a183b
mov byte [0x1020f330], 0
mov byte [0x1020f405], 0
jmp 0x100a183b
mov edi, dword [0x1020f3f4]
mov eax, dword [0x1020f400]
test eax, eax
je 0x100a1a3b
cmp eax, 3
je 0x100a19fc
movd xmm0, dword [0x1020f3fc]
sub esp, 0x10
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0x433e0000
movss dword [esp + 4], xmm0
movd xmm0, esi
mov esi, 0x790b50
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0x7a5a
call esi
movd xmm0, dword [0x1020f3fc]
add esp, 4
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, dword [0x1020f3f4]
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0x433e0000
movss dword [esp + 4], xmm0
movd xmm0, dword [0x1020f3f0]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0x7a7a
call esi
movd xmm0, dword [0x1020f3fc]
add esp, 4
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x1019de94]
subss xmm0, dword [0x1019de48]
movss dword [esp + 0xc], xmm0
movd xmm0, dword [0x1020f3f4]
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0x41a80000
addss xmm0, dword [0x1019de94]
movss dword [esp + 4], xmm0
movd xmm0, dword [0x1020f3f0]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0x7a7b
call esi
movd xmm0, dword [0x1020f3fc]
add esp, 4
cvtdq2ps xmm0, xmm0
movd xmm1, dword [0x1020f3f0]
subss xmm0, dword [0x1019de94]
cvtdq2ps xmm1, xmm1
subss xmm0, dword [0x1019de48]
movss dword [esp + 0xc], xmm0
movd xmm0, dword [0x1020f3f4]
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0x41a80000
addss xmm0, dword [0x1019de94]
movss dword [esp + 4], xmm0
movd xmm0, dword [0x101ad1f4]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
subss xmm1, dword [0x1019ddc4]
movss dword [esp], xmm1
push 0x7a7c
call esi
movd xmm1, dword [0x1020f3fc]
add esp, 4
movd xmm0, dword [0x1020f3f4]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0x42340000
mov dword [esp + 8], 0x433e0000
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
movd xmm0, dword [0x1020f3f0]
cvtdq2ps xmm0, xmm0
subss xmm1, dword [0x1019de48]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push 0x7a7d
call esi
jmp 0x100a1a85
mov eax, dword [0x1020f3fc]
sub esp, 0xc
movd xmm3, dword [0x1020f3f8]
add eax, 0xd
movd xmm2, edi
movd xmm1, esi
cvtdq2ps xmm3, xmm3
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
movss dword [esp], xmm0
call fcn.10036d90
jmp 0x100a1a88
movd xmm0, dword [0x1020f3fc]
sub esp, 0x10
cvtdq2ps xmm0, xmm0
mov eax, 0x790b50
movss dword [esp + 0xc], xmm0
movd xmm0, dword [0x1020f3f8]
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0xf058
call eax
add esp, 0x14
cmp byte [0x1020f3e8], 0
jne 0x100a1ab5
push 0x779250
push 0x779150
push 1
push 0xac
push 0x1020f33c
mov eax, 0x9cfa13
call eax
mov byte [0x1020f3e8], 1
push 0
push 0
push 1
push 0x7ec5
push 1
mov eax, 0x779350
mov ecx, 0x1020f33c
call eax
movd xmm0, dword [0x1020f3f4]
mov ecx, 0x1020f33c
cvtdq2ps xmm0, xmm0
push 0x1d
push 0x24
addss xmm0, dword [0x1019dd6c]
cvttss2si eax, xmm0
push eax
mov eax, dword [0x1020f3f0]
add eax, dword [0x1020f3f8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x1019de30]
cvttss2si eax, xmm0
push eax
mov eax, 0x779410
call eax
push 0x2b
mov ecx, 0x101be720
call fcn.10046820
movd xmm0, dword [0x1020f3f4]
cvtdq2ps xmm0, xmm0
push eax
push 3
push 0xc3
addss xmm0, dword [0x1019dd84]
cvttss2si eax, xmm0
push eax
push dword [0x1020f3f0]
push 0xff19bdff
push 0x101f7630
call fcn.1007a0d0
add esp, 0x1c
cmp byte [0x1020f330], 0
jne 0x100a1b7c
mov eax, 0x779860
mov ecx, 0x1020f33c
call eax
cmp al, 1
jne 0x100a1b7c
mov dword [0x1020f3ec], 0
mov eax, dword [0x1020f3fc]
xor ecx, ecx
cmp eax, 0xfa
mov dword [ebp - 0x8c], eax
setle cl
xor edi, edi
inc ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x80], edi
jle 0x100a1dff
mov eax, edi
cdq
idiv ecx
mov ecx, dword [0x1020f3f0]
mov dword [ebp - 0x78], eax
mov edi, edx
mov eax, 0x55555556
imul dword [0x1020f3f8]
imul eax, edi, 0x69
mov edi, dword [ebp - 0x74]
mov esi, edx
shr esi, 0x1f
add esi, edx
add ecx, esi
cmp dword [ebp - 0x8c], 0xfa
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
subsd xmm0, qword [0x1019d9b0]
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm0
addsd xmm1, qword [0x1019d6f8]
cvttsd2si esi, xmm1
mov dword [ebp - 0x7c], esi
jle 0x100a1c26
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x1019ddc0]
cvttss2si esi, xmm0
mov dword [ebp - 0x7c], esi
cmp edi, 0xa
jg 0x100a1e0d
mov eax, dword [0x1020f3f4]
mov edx, 0x118
movd xmm0, dword [ebp - 0x78]
add eax, 0x32
cvtdq2ps xmm0, xmm0
cmp edi, 0xa
movd xmm1, eax
mov eax, 0x21
mulss xmm0, dword [0x1019ddf8]
cmovge eax, edx
add eax, edi
mov dword [ebp - 0x78], eax
cvtdq2ps xmm1, xmm1
addss xmm1, xmm0
cvttss2si ecx, xmm1
mov dword [ebp - 0x74], ecx
cmp edi, 0x13
jg 0x100a1e0d
cmp byte [0x1020f330], 0
jne 0x100a1d4e
push 0x1d
push 0x6b
push ecx
push esi
mov eax, 0x790b10
call eax
add esp, 0x10
test al, al
je 0x100a1d4b
cmp byte [0x1020f330], 0
jne 0x100a1d39
push 1
mov eax, 0x791070
call eax
add esp, 4
test eax, eax
je 0x100a1d39
cmp byte [0x8793386], 0
je 0x100a1d39
mov eax, 0x83c080
call eax
mov edx, 8
mov dword [ebp - 0x88], 0xd5f308c1
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], edi
call fcn.100c8890
movd xmm0, dword [ebp - 0x74]
sub esp, 0x18
cvtdq2ps xmm0, xmm0
mov eax, 0x790e40
mov dword [esp + 0x14], 0x42680000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41e80000
mov dword [esp + 8], 0x42d63333
movss dword [esp + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0x7a5e
call eax
mov dword [0x1020f3ec], 0
jmp 0x100a1d96
movd xmm0, dword [ebp - 0x74]
sub esp, 0x18
mov dword [esp + 0x14], 0x41e80000
jmp 0x100a1d5d
mov ecx, dword [ebp - 0x74]
sub esp, 0x18
movd xmm0, ecx
mov dword [esp + 0x14], 0
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x10], 0
mov eax, 0x790e40
mov dword [esp + 0xc], 0x41e80000
mov dword [esp + 8], 0x42d63333
movss dword [esp + 4], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push 0x7a5e
call eax
add esp, 0x1c
mov ecx, 0x101be720
push dword [ebp - 0x78]
call fcn.10046820
push 0x20
mov ecx, 0x101be720
mov esi, eax
call fcn.10046820
push esi
push eax
lea eax, [ebp - 0x70]
push str._s___s_
push eax
call sym.Main.dll_sprintf
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x74]
push 3
push 0xd2
add eax, 0xa
push eax
mov eax, dword [ebp - 0x7c]
add eax, 0xffffffcb
push eax
push 0xffffffffffffffff
push 0x101f7630
call fcn.1007a0d0
mov ecx, dword [ebp - 0x90]
inc edi
add esp, 0x2c
mov dword [ebp - 0x74], edi
cmp edi, dword [ebp - 0x80]
jl 0x100a1ba6
push 0
mov eax, 0x7798f0
mov ecx, 0x1020f33c
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100f2fba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret