Function at 0x498fd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, dword [ebp + 8]
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x499247
push edi
push 0x10
call ebx
mov edi, eax
push 0x11
and edi, 0x8000
call ebx
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 0xffffffdd
and ebx, 0x8000
cmp ecx, 0xb
ja case.0x499018.38
jmp dword [ecx*4 + 0x499250]
test ebx, ebx
je 0x49907f
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x49904f
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
test ebx, ebx
je 0x499062
push 0
push eax
push ebx
push 0
mov ecx, esi
call fcn.00497420
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00497e00
mov ecx, esi
call fcn.00497ae0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.004984d0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x4990f1
mov eax, dword [esi + 0xe10]
mov ebx, dword [esi + 0xe14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x4990be
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
cmp ebx, eax
je 0x4990d4
push 1
push eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
push 0
call fcn.00497420
mov ebx, eax
push ebx
test edi, edi
mov ecx, esi
cmovne ebx, dword [ebp + 8]
push ebx
call fcn.00497e00
mov ecx, esi
call fcn.00497ae0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push edi
mov ecx, esi
call fcn.00498560
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x49910c
mov eax, dword [esi + 0xe10]
jmp 0x49910e
xor eax, eax
push 0
push eax
mov ecx, esi
call fcn.00497e00
mov ecx, esi
call fcn.00497ae0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
push edi
mov ecx, esi
call fcn.00498510
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test dword [esi + 0xdf8], 0x800
jne case.0x499018.38
test edi, edi
je 0x499152
test ebx, ebx
jne case.0x499018.38
mov eax, dword [esi + 0xe10]
cmp eax, dword [esi + 0xe14]
je 0x499178
mov eax, dword [esi]
push esi
test edi, edi
je 0x49920c
call dword [eax + 0x1c8]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00497e00
test edi, edi
je 0x499197
mov eax, dword [esi + 0xe14]
test eax, eax
lea ecx, [eax - 1]
cmove ecx, eax
jmp 0x4991f4
test ebx, ebx
je 0x4991dd
mov eax, dword [esi + 0xddc]
cmp eax, 0xffffffff
jne 0x4991b8
push dword [esi + 0xdd8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0xddc], eax
push eax
push dword [esi + 0xe10]
mov ecx, esi
call fcn.00497e00
mov ecx, esi
call fcn.00497ae0
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov edx, dword [esi + 0xe14]
mov eax, dword [esi + 0xdd8]
lea ecx, [edx + 1]
cmp word [eax + edx*2], 0
cmove ecx, edx
push ecx
push dword [esi + 0xe10]
mov ecx, esi
call fcn.00497e00
mov ecx, esi
call fcn.00497ae0
mov eax, dword [esi]
push esi
call dword [eax + 0x1c4]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test edi, edi
je 0x499239
test dword [esi + 0xdf8], 0x800
jne case.0x499018.38
mov eax, dword [esi]
push esi
call dword [eax + 0x1bc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je case.0x499018.38
mov eax, dword [esi]
push esi
call dword [eax + 0x1c0]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10