Function at 0x547119
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 0x5470cc
lea esp, [esp]
cmp ebx, 0x28
je 0x5470cc
cmp ebx, 0x24
je 0x5470cc
cmp ebx, 0x23
je 0x5470cc
cmp ebx, 0x21
je 0x5470cc
cmp ebx, 0x22
je 0x5470cc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xcc]
mov ecx, dword [eax]
test ecx, ecx
je 0x547284
lea eax, ds:[ebx - 0x21]
cmp eax, 7
ja case.0x5470e9.37
jmp dword [eax*4 + 0x547298]
mov eax, dword [edi + 0x6c]
test eax, eax
je case.0x5470e9.36
mov esi, dword [eax + 0x20]
test esi, esi
je case.0x5470e9.36
dec esi
jmp 0x547190
mov esi, dword [edi + 0x6c]
test esi, esi
je case.0x5470e9.36
mov esi, dword [esi + 0x20]
inc esi
cmp esi, ecx
jb 0x547190
lea esi, [ecx - 1]
jmp 0x547190
mov esi, dword ds:[edi + 0x6c]
test esi, esi
je 0x547129
mov esi, dword [esi + 0x20]
jmp 0x54712b
xor esi, esi
test byte [edi + 0x20], 8
je 0x547136
mov edx, dword [edi + 0x54]
jmp 0x547138
xor edx, edx
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x48]
sub eax, edx
js 0x547284
cdq
idiv dword [edi + 0x4c]
sub eax, 1
js 0x547284
mov edx, dword [edi + 0x58]
cmp ebx, 0x21
jne 0x54716f
cmp esi, edx
jbe 0x547163
mov esi, edx
jmp 0x547190
cmp esi, eax
jb case.0x5470e9.36
sub esi, eax
jmp 0x547190
xor esi, esi
jmp 0x547190
add edx, eax
cmp edx, ecx
jb 0x547178
lea edx, [ecx - 1]
cmp esi, edx
jae 0x547182
mov esi, edx
jmp 0x547190
add esi, eax
cmp esi, ecx
jb 0x547190
lea esi, [ecx - 1]
jmp 0x547190
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.00546800
shr bx, 0xf
test bl, bl
je 0x5471f9
mov eax, dword [edi + 0x74]
cmp eax, 0xffffffff
je 0x5471f9
cmp esi, eax
jbe 0x5471ea
lea ecx, [ebp - 0x18]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1c]
mov eax, esi
push ecx
push 4
push eax
jmp 0x547215
lea ecx, [ebp - 0x18]
mov edx, esi
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 4
push eax
jmp 0x547215
cmp byte [ebp - 0x16], 0
jne 0x547246
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.00546660
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp - 0x18]
mov ecx, edi
call fcn.005463a0
test al, al
je 0x547246
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.005469e0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x547284
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.0057e94f
mov esp, ebp
pop ebp
ret