Function at 0x477730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
cmp byte [0x66aee4], 0
push esi
push edi
mov edi, ecx
jne 0x4779c7
mov eax, dword [edi]
xorps xmm0, xmm0
mov byte [0x66aee4], 1
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x60], xmm0
mov esi, dword [eax + 0x14]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x40], 0x1f4
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0x129
push eax
push edi
mov ecx, esi
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0x1c
mov dword [esp + 0x60], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0x5d8870
mov dword [esp + 0x2c], 0x7d0
mov dword [esp + 0x18], 0
call dword [0x47e5c0]
call esi
test eax, eax
js 0x477840
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
mov esi, dword [edi]
push 0x66b04c
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x10]
mov esi, dword [esi + 0x1c]
mov ecx, esi
push edi
mov dword [esp + 0x3c], 0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x38], 4
mov dword [esp + 0x40], 1
call dword [0x47e5c0]
call esi
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47e5c0]
call esi
mov ecx, dword [0x66b038]
mov esi, 1
mov edi, dword [0x66b034]
mov edx, ecx
sub edx, edi
sar edx, 3
cmp edx, esi
jbe 0x477866
lea eax, [edi + 8]
mov dword [0x66b038], eax
jmp 0x4778ab
jae 0x4778ab
mov eax, dword [0x66b03c]
sub eax, edi
sar eax, 3
cmp eax, 1
jae 0x477886
sub esp, 8
mov ecx, 0x66b034
call fcn.00478f00
jmp 0x4778ab
mov eax, esi
sub eax, edx
je 0x4778a5
nop dword [eax]
mov dword [ecx], 0
mov dword [ecx + 4], 0
add ecx, 8
sub eax, 1
jne 0x477890
mov dword [0x66b038], ecx
mov ecx, dword [0x66b044]
mov edx, ecx
mov edi, dword [0x66b040]
sub edx, edi
sar edx, 3
cmp edx, 1
jbe 0x4778cd
lea eax, [edi + 8]
mov dword [0x66b044], eax
jmp 0x47791b
jae 0x47791b
mov eax, dword [0x66b048]
sub eax, edi
sar eax, 3
cmp eax, 1
jae 0x4778ed
sub esp, 8
mov ecx, 0x66b040
call fcn.00478f00
jmp 0x47791b
sub esi, edx
je 0x477915
nop dword [eax]
nop word [eax + eax]
mov dword [ecx], 0
mov dword [ecx + 4], 0
add ecx, 8
sub esi, 1
jne 0x477900
mov dword [0x66b044], ecx
mov esi, dword [0x66aec0]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cvttss2si ecx, dword [esi + 0x14]
cdq
idiv ecx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cvttss2si ecx, dword [esi + 0x10]
cdq
idiv ecx
mov eax, dword [0x66b034]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [eax + 4], xmm0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
test al, 1
jne 0x477979
movss xmm0, dword [0x4a6310]
jmp 0x477981
movss xmm0, dword [0x4a6488]
mulss xmm0, dword [0x4a6328]
movss dword [esp + 0x10], xmm0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
test al, 1
jne 0x4779a3
movss xmm0, dword [0x4a6310]
jmp 0x4779ab
movss xmm0, dword [0x4a6488]
mulss xmm0, dword [0x4a6328]
mov eax, dword [0x66b040]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [eax + 4], xmm0
lea ecx, [esp + 0x10]
call fcn.00402790
push 0x22
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x477a2c
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, dword [0x66b010]
mov esi, dword [esp + 0x14]
mov eax, esi
sbb eax, dword [0x66b014]
cmp ecx, 0x8f0d180
jne 0x477a01
test eax, eax
je 0x477a0f
test eax, eax
jl 0x477a2c
jg 0x477a0f
cmp ecx, 0x8f0d180
jb 0x477a2c
cmp byte [0x66a004], 0
mov dword [0x66b010], edx
sete al
mov dword [0x66b014], esi
mov byte [0x66a004], al
jmp 0x477a31
mov al, byte [0x66a004]
test al, al
je 0x477b71
mov eax, dword [0x66aec0]
xor edx, edx
push str.Background
mov eax, dword [eax + 0x47c4]
mov ecx, dword [eax]
call fcn.00437e00
mov ecx, dword [0x66b040]
mov esi, eax
mov eax, dword [0x66b034]
xorps xmm3, xmm3
mov edx, dword [0x66aec0]
add esp, 4
movss xmm4, dword [0x4a6418]
movss xmm0, dword [ecx]
addss xmm0, dword [eax]
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x14], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
movss dword [eax], xmm0
mov eax, dword [0x66b040]
mov ecx, dword [0x66b034]
movss xmm0, dword [eax + 4]
addss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
mov eax, dword [0x66b034]
movss xmm1, dword [eax]
comiss xmm3, xmm1
ja 0x477ad5
movss xmm0, dword [edx + 0x10]
subss xmm0, xmm4
comiss xmm1, xmm0
jbe 0x477af5
mov eax, dword [0x66b040]
movss xmm1, dword [0x4a6488]
movss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [eax], xmm0
mov eax, dword [0x66b034]
jmp 0x477afd
movss xmm1, dword [0x4a6488]
movss xmm2, dword [eax + 4]
comiss xmm3, xmm2
movss xmm3, dword [0x4a6408]
ja 0x477b1d
movss xmm0, dword [edx + 0x14]
subss xmm0, xmm3
comiss xmm2, xmm0
jbe 0x477b35
mov eax, dword [0x66b040]
movss xmm0, dword [eax + 4]
mulss xmm0, xmm1
movss dword [eax + 4], xmm0
mov eax, dword [0x66b034]
movss xmm0, dword [eax]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
addss xmm0, xmm4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
movss dword [esp + 0x28], xmm0
mov ecx, esi
movss xmm0, dword [eax + 4]
addss xmm0, xmm3
push eax
push dword [0x66b04c]
movss dword [esp + 0x34], xmm0
call fcn.00456f50
pop edi
pop esi
mov esp, ebp
pop ebp
ret