Function at 0x49e5d4
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4d17b8
call fcn.0045d534
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
push 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x49e60d
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0049fe4e
jmp 0x49e618
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
push dword [esi + 4]
xor ebx, ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x49e62a
push 2
pop ebx
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea esi, [ebp + 0xc]
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
neg eax
add dword [ebp - 0x30], eax
push eax
movsd dword es:[edi], dword [esi]
neg ecx
add dword [ebp - 0x34], ecx
lea eax, [ebp - 0x54]
push ecx
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x14], eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
push 0xf
mov byte [ebp - 4], 2
call fcn.004732f2
pop ecx
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBkColor]
xor eax, eax
lea ecx, [ebp - 0x54]
push eax
push eax
push eax
push ecx
push 2
push eax
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x49e6e0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x38], eax
jmp 0x49e6f1
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x20], esi
je 0x49e711
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov dword [ebp - 0x18], 1
jne 0x49e714
mov dword [ebp - 0x18], esi
cmp ebx, 2
je 0x49e73c
cmp dword [ebp - 0x18], esi
je 0x49e723
push 1
pop ebx
jmp 0x49e73c
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [ebp + 0x20], esi
mov eax, ebx
je 0x49e760
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x148
mov ecx, dword [ecx + 0x70]
lea esi, [eax + ecx]
lea eax, [esi + 0x1690]
add esi, 0x1bb0
jmp 0x49e77b
mov ecx, dword [ebp - 0x10]
imul eax, eax, 0x148
mov ecx, dword [ecx + 0x70]
lea esi, [eax + ecx]
lea eax, [esi + 0x210]
add esi, 0x730
mov edi, 0xff00ff
push 1
push edi
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x1c]
call fcn.0048b9ec
add esp, 0x14
cmp dword [esi + 4], 0
je 0x49e808
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x114]
sub eax, dword [esi + 0x114]
sub ecx, dword [esi + 0x10c]
push 1
push edi
sub eax, dword [ebp - 0x44]
push esi
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
add ecx, eax
mov eax, dword [esi + 0x110]
mov dword [ebp - 0x5c], ecx
sub eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x118]
sub ecx, dword [esi + 0x110]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
add ecx, eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], ecx
push eax
push dword [ebp + 0x1c]
call fcn.0048b9ec
add esp, 0x14
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x49e81e
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
jmp 0x49e82b
mov ecx, dword [ebp - 0x3c]
inc ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x20], eax
je 0x49e84e
cmp dword [ebp - 0x18], eax
jne 0x49e84e
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x49e84e
push 1
pop eax
jmp 0x49e850
xor eax, eax
cmp ebx, 2
je 0x49e877
test eax, eax
je 0x49e85e
push 1
pop ebx
jmp 0x49e877
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [ebp + 0x20], 0
je 0x49e89a
mov eax, dword [ebp - 0x10]
imul ebx, ebx, 0x148
mov eax, dword [eax + 0x70]
lea esi, [ebx + eax]
lea eax, [esi + 0x20d0]
add esi, 0x25f0
jmp 0x49e8b5
mov eax, dword [ebp - 0x10]
imul ebx, ebx, 0x148
mov eax, dword [eax + 0x70]
lea esi, [ebx + eax]
lea eax, [esi + 0xc50]
add esi, 0x1170
mov ebx, dword [ebp + 0x1c]
push 1
push edi
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0048b9ec
add esp, 0x14
cmp dword [esi + 4], 0
je 0x49e93c
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x114]
sub eax, dword [esi + 0x114]
sub ecx, dword [esi + 0x10c]
push 1
push edi
sub eax, dword [ebp - 0x44]
push esi
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
add ecx, eax
mov eax, dword [esi + 0x110]
mov dword [ebp - 0x5c], ecx
sub eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x118]
sub ecx, dword [esi + 0x110]
sub eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
add ecx, eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], ecx
push eax
push ebx
call fcn.0048b9ec
add esp, 0x14
push 0xffffffffffffffff
push 0xcc0020
push 0
push 0
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048ad25
add esp, 0x28
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test ebx, ebx
je 0x49e981
push ebx
call edi
test eax, eax
je 0x49e981
and dword [ebp + 0x1c], 0
mov ebx, dword [ebp + 0x1c]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
test eax, eax
je 0x49e994
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
je 0x49e99f
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x49e9aa
push dword [ebp - 0x14]
call esi
test ebx, ebx
je 0x49e9b1
push ebx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c