Function at 0x547dd9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
cmp ebx, 0x26
je 0x547d8c
lea esp, [esp]
cmp ebx, 0x28
je 0x547d8c
cmp ebx, 0x24
je 0x547d8c
cmp ebx, 0x23
je 0x547d8c
cmp ebx, 0x21
je 0x547d8c
cmp ebx, 0x22
je 0x547d8c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x547f44
lea eax, ds:[ebx - 0x21]
cmp eax, 7
ja case.0x547da9.37
jmp dword [eax*4 + 0x547f58]
mov eax, dword [edi + 0x6c]
test eax, eax
je case.0x547da9.36
mov esi, dword [eax + 0x20]
test esi, esi
je case.0x547da9.36
dec esi
jmp 0x547e50
mov esi, dword [edi + 0x6c]
test esi, esi
je case.0x547da9.36
mov esi, dword [esi + 0x20]
inc esi
cmp esi, ecx
jb 0x547e50
lea esi, [ecx - 1]
jmp 0x547e50
mov esi, dword ds:[edi + 0x6c]
test esi, esi
je 0x547de9
mov esi, dword [esi + 0x20]
jmp 0x547deb
xor esi, esi
test byte [edi + 0x20], 8
je 0x547df6
mov edx, dword [edi + 0x54]
jmp 0x547df8
xor edx, edx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x48]
sub eax, edx
js 0x547f44
cdq
idiv dword [edi + 0x4c]
sub eax, 1
js 0x547f44
mov edx, dword [edi + 0x58]
cmp ebx, 0x21
jne 0x547e2f
cmp esi, edx
jbe 0x547e23
mov esi, edx
jmp 0x547e50
cmp esi, eax
jb case.0x547da9.36
sub esi, eax
jmp 0x547e50
xor esi, esi
jmp 0x547e50
add edx, eax
cmp edx, ecx
jb 0x547e38
lea edx, [ecx - 1]
cmp esi, edx
jae 0x547e42
mov esi, edx
jmp 0x547e50
add esi, eax
cmp esi, ecx
jb 0x547e50
lea esi, [ecx - 1]
jmp 0x547e50
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.005474c0
shr bx, 0xf
test bl, bl
je 0x547eb9
mov eax, dword [edi + 0x74]
cmp eax, 0xffffffff
je 0x547eb9
cmp esi, eax
jbe 0x547eaa
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1c]
mov eax, esi
push ecx
push 4
push eax
jmp 0x547ed5
lea ecx, [ebp - 0x18]
mov edx, esi
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 4
push eax
jmp 0x547ed5
cmp byte [ebp - 0x16], 0
jne 0x547f06
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.00547320
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00547060
test al, al
je 0x547f06
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.005476a0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x547f44
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.0057fcaf
mov esp, ebp
pop ebp
ret