Function at 0x5481b9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
cmp ebx, 0x26
je 0x54816c
lea esp, [esp]
cmp ebx, 0x28
je 0x54816c
cmp ebx, 0x24
je 0x54816c
cmp ebx, 0x23
je 0x54816c
cmp ebx, 0x21
je 0x54816c
cmp ebx, 0x22
je 0x54816c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x548324
lea eax, ds:[ebx - 0x21]
cmp eax, 7
ja case.0x548189.37
jmp dword [eax*4 + 0x548338]
mov eax, dword [edi + 0x6c]
test eax, eax
je case.0x548189.36
mov esi, dword [eax + 0x20]
test esi, esi
je case.0x548189.36
dec esi
jmp 0x548230
mov esi, dword [edi + 0x6c]
test esi, esi
je case.0x548189.36
mov esi, dword [esi + 0x20]
inc esi
cmp esi, ecx
jb 0x548230
lea esi, [ecx - 1]
jmp 0x548230
mov esi, dword ds:[edi + 0x6c]
test esi, esi
je 0x5481c9
mov esi, dword [esi + 0x20]
jmp 0x5481cb
xor esi, esi
test byte [edi + 0x20], 8
je 0x5481d6
mov edx, dword [edi + 0x54]
jmp 0x5481d8
xor edx, edx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x48]
sub eax, edx
js 0x548324
cdq
idiv dword [edi + 0x4c]
sub eax, 1
js 0x548324
mov edx, dword [edi + 0x58]
cmp ebx, 0x21
jne 0x54820f
cmp esi, edx
jbe 0x548203
mov esi, edx
jmp 0x548230
cmp esi, eax
jb case.0x548189.36
sub esi, eax
jmp 0x548230
xor esi, esi
jmp 0x548230
add edx, eax
cmp edx, ecx
jb 0x548218
lea edx, [ecx - 1]
cmp esi, edx
jae 0x548222
mov esi, edx
jmp 0x548230
add esi, eax
cmp esi, ecx
jb 0x548230
lea esi, [ecx - 1]
jmp 0x548230
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.005478a0
shr bx, 0xf
test bl, bl
je 0x548299
mov eax, dword [edi + 0x74]
cmp eax, 0xffffffff
je 0x548299
cmp esi, eax
jbe 0x54828a
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1c]
mov eax, esi
push ecx
push 4
push eax
jmp 0x5482b5
lea ecx, [ebp - 0x18]
mov edx, esi
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 4
push eax
jmp 0x5482b5
cmp byte [ebp - 0x16], 0
jne 0x5482e6
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.00547700
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00547440
test al, al
je 0x5482e6
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.00547a80
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x548324
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.005802ef
mov esp, ebp
pop ebp
ret