Function at 0x5485f9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
cmp ebx, 0x26
je 0x5485ac
lea esp, [esp]
cmp ebx, 0x28
je 0x5485ac
cmp ebx, 0x24
je 0x5485ac
cmp ebx, 0x23
je 0x5485ac
cmp ebx, 0x21
je 0x5485ac
cmp ebx, 0x22
je 0x5485ac
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058078f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x548764
lea eax, ds:[ebx - 0x21]
cmp eax, 7
ja case.0x5485c9.37
jmp dword [eax*4 + 0x548778]
mov eax, dword [edi + 0x6c]
test eax, eax
je case.0x5485c9.36
mov esi, dword [eax + 0x20]
test esi, esi
je case.0x5485c9.36
dec esi
jmp 0x548670
mov esi, dword [edi + 0x6c]
test esi, esi
je case.0x5485c9.36
mov esi, dword [esi + 0x20]
inc esi
cmp esi, ecx
jb 0x548670
lea esi, [ecx - 1]
jmp 0x548670
mov esi, dword ds:[edi + 0x6c]
test esi, esi
je 0x548609
mov esi, dword [esi + 0x20]
jmp 0x54860b
xor esi, esi
test byte [edi + 0x20], 8
je 0x548616
mov edx, dword [edi + 0x54]
jmp 0x548618
xor edx, edx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x48]
sub eax, edx
js 0x548764
cdq
idiv dword [edi + 0x4c]
sub eax, 1
js 0x548764
mov edx, dword [edi + 0x58]
cmp ebx, 0x21
jne 0x54864f
cmp esi, edx
jbe 0x548643
mov esi, edx
jmp 0x548670
cmp esi, eax
jb case.0x5485c9.36
sub esi, eax
jmp 0x548670
xor esi, esi
jmp 0x548670
add edx, eax
cmp edx, ecx
jb 0x548658
lea edx, [ecx - 1]
cmp esi, edx
jae 0x548662
mov esi, edx
jmp 0x548670
add esi, eax
cmp esi, ecx
jb 0x548670
lea esi, [ecx - 1]
jmp 0x548670
mov esi, dword [ebp - 0x1c]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
push 0x10
mov word [ebp - 0x16], ax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword ds:[edi + 0xcc]
mov bx, ax
push 0
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + esi*4]
mov ecx, edi
mov dword [edi + 0x6c], edx
call fcn.00547ce0
shr bx, 0xf
test bl, bl
je 0x5486d9
mov eax, dword [edi + 0x74]
cmp eax, 0xffffffff
je 0x5486d9
cmp esi, eax
jbe 0x5486ca
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1c]
mov eax, esi
push ecx
push 4
push eax
jmp 0x5486f5
lea ecx, [ebp - 0x18]
mov edx, esi
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 4
push eax
jmp 0x5486f5
cmp byte [ebp - 0x16], 0
jne 0x548726
mov eax, dword [edi + 0x6c]
mov edx, esi
mov eax, dword [eax + 0x20]
mov dword [edi + 0x74], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
push esi
mov ecx, edi
call fcn.00547b40
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00547880
test al, al
je 0x548726
push 0
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, esi
mov ecx, edi
call fcn.00547ec0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x548764
push 0
push 0
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0xf0], 0xffffffff
mov dword [edi + 0xf4], 0xffffffff
mov dword [edi + 0x114], 0xffffffff
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058078f
mov esp, ebp
pop ebp
ret