Function at 0x4ae1ac
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4e2744
call fcn.0046d048
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 0x4ae1e5
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004afa3a
jmp 0x4ae1f0
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 0x4ae202
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.00482e42
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 0x4ae2b8
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 0x4ae2c9
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 0x4ae2e9
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 0x4ae2ec
mov dword [ebp - 0x18], esi
cmp ebx, 2
je 0x4ae314
cmp dword [ebp - 0x18], esi
je 0x4ae2fb
push 1
pop ebx
jmp 0x4ae314
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 0x4ae338
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 0x4ae353
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.0049b666
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4ae3e0
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.0049b666
add esp, 0x14
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x4ae3f6
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
jmp 0x4ae403
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 0x4ae426
cmp dword [ebp - 0x18], eax
jne 0x4ae426
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 0x4ae426
push 1
pop eax
jmp 0x4ae428
xor eax, eax
cmp ebx, 2
je 0x4ae44f
test eax, eax
je 0x4ae436
push 1
pop ebx
jmp 0x4ae44f
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 0x4ae472
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 0x4ae48d
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.0049b666
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4ae514
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.0049b666
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.0049a99f
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 0x4ae559
push ebx
call edi
test eax, eax
je 0x4ae559
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 0x4ae56c
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
je 0x4ae577
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x4ae582
push dword [ebp - 0x14]
call esi
test ebx, ebx
je 0x4ae589
push ebx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c