Function at 0x477c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [edi + 0x100], 0
je 0x477ca5
push dword [edi + 0x100]
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x477ca5
mov dword [edi + 0x100], 0
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and eax, 1
push 0x10
mov dword [ebp - 0x28], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
shr eax, 0xf
and eax, 1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x24], xmm0
call esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xffffffff
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xffffffff
push eax
mov ecx, edi
call fcn.00425e80
movsx eax, byte [ebp + 8]
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.default.0x477d1d
movzx eax, byte [eax + 0x4780e0]
push ebx
jmp dword [eax*4 + 0x4780b4]
mov ecx, dword [edi + 0x378]
mov eax, dword [ebp - 0x30]
dec ecx
push dword [ebp - 0x2c]
inc eax
cmp eax, ecx
cmovl ecx, eax
push ecx
mov ecx, edi
call fcn.00479c90
jmp 0x478079
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push dword [ebp - 0x2c]
dec eax
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00479c90
jmp 0x478079
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call esi
cmp dword [edi + 0x24], 0
je 0x477d7d
mov ecx, dword [edi + 0xa0]
jmp 0x477d7f
xor ecx, ecx
mov eax, dword [ebp - 8]
push dword [edi + 0x9c]
sub eax, ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.00526ce3
mov ebx, 1
mov dword [ebp - 8], edx
mov edx, dword [edi + 0x378]
add esp, 8
cmp eax, ebx
mov ecx, ebx
cmovg ecx, eax
mov eax, dword [ebp - 0x30]
dec eax
dec edx
add eax, ecx
cmp eax, edx
jge 0x477df9
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call esi
cmp dword [edi + 0x24], 0
je 0x477dd4
mov ecx, dword [edi + 0xa0]
jmp 0x477dd6
xor ecx, ecx
mov eax, dword [ebp - 8]
push dword [edi + 0x9c]
sub eax, ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.00526ce3
mov edx, dword [ebp - 0x30]
add esp, 8
cmp eax, 1
cmovg ebx, eax
dec edx
add edx, ebx
push dword [ebp - 0x2c]
mov ecx, edi
push edx
call fcn.00479c90
jmp 0x478079
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call esi
cmp dword [edi + 0x24], 0
je 0x477e27
mov ecx, dword [edi + 0xa0]
jmp 0x477e29
xor ecx, ecx
mov eax, dword [ebp - 8]
push dword [edi + 0x9c]
sub eax, ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.00526ce3
mov esi, dword [ebp - 0x30]
mov ebx, 1
add esp, 8
mov dword [ebp - 8], edx
cmp eax, ebx
mov ecx, ebx
cmovg ecx, eax
mov eax, esi
sub eax, ecx
inc eax
test eax, eax
jle 0x477eaf
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x24], 0
je 0x477e7d
mov ecx, dword [edi + 0xa0]
jmp 0x477e7f
xor ecx, ecx
mov eax, dword [ebp - 8]
push dword [edi + 0x9c]
sub eax, ecx
mov dword [ebp - 0x10], ecx
push eax
call fcn.00526ce3
add esp, 8
mov ecx, edi
cmp eax, 1
cmovg ebx, eax
push dword [ebp - 0x2c]
sub esi, ebx
inc esi
push esi
call fcn.00479c90
jmp 0x478079
push dword [ebp - 0x2c]
xor esi, esi
mov ecx, edi
push esi
call fcn.00479c90
jmp 0x478079
mov eax, dword [ebp - 0x2c]
mov ecx, edi
push eax
push 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], eax
call fcn.00476dd0
jmp 0x478079
mov eax, dword [edi + 0x378]
mov ecx, edi
push dword [ebp - 0x2c]
dec eax
push eax
call fcn.00479c90
jmp 0x478079
cmp dword [edi + 0x48], 0
je 0x477f1b
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
dec eax
test eax, eax
cmovg ecx, eax
push ecx
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00479c90
jmp 0x478079
mov ebx, dword [ebp - 0x28]
mov eax, 0x32
push 0
push dword [edi + 4]
test ebx, ebx
mov esi, 5
cmovne esi, eax
call dword [sym.imp.USER32.dll_GetScrollPos]
sub eax, esi
test eax, eax
jle 0x477f5e
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollPos]
push 1
sub eax, esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetScrollPos]
jmp 0x47807c
push 1
xor eax, eax
push eax
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetScrollPos]
jmp 0x47807c
cmp dword [edi + 0x48], 0
je 0x477f98
mov ecx, dword [edi + 0x35c]
mov eax, dword [ebp - 0x2c]
dec ecx
inc eax
cmp eax, ecx
cmovl ecx, eax
push ecx
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00479c90
jmp 0x478079
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollPos]
mov ebx, dword [ebp - 0x28]
mov ecx, 0x32
test ebx, ebx
mov esi, 5
cmovne esi, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
add eax, esi
cmp eax, ecx
jge 0x477fcf
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollPos]
lea ecx, [eax + esi]
push 1
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetScrollPos]
jmp 0x47807c
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne case.0x477d1d.19
mov esi, dword [ebp - 0x34]
cmp dword [edi + 0x48], ebx
je 0x478083
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x478015
dec eax
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00479c90
jmp 0x478083
mov ecx, dword [edi + 0x35c]
inc eax
dec ecx
cmp eax, ecx
cmovl ecx, eax
push ecx
push dword [ebp - 0x30]
mov ecx, edi
call fcn.00479c90
jmp 0x478083
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.004ae920
mov esi, dword [ebp - 0x30]
mov ebx, eax
push ebx
push esi
mov ecx, edi
call fcn.004771d0
test al, 8
jne 0x478079
push ebx
push esi
mov ecx, edi
call fcn.004772a0
cmp eax, 4
je 0x47805e
cmp eax, 5
jne 0x478079
push 0
push 0xfffffa1f
push ebx
push esi
mov ecx, edi
call fcn.00475980
push dword [ebp - 0x2c]
mov ecx, edi
push esi
call fcn.00481cc0
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne case.0x477d1d.19
mov esi, dword [ebp - 0x34]
lea eax, [esi*4]
mov ecx, edi
push eax
push dword [edi + 0xac]
push dword [edi + 0xa8]
call fcn.00479a80
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0xc