Function at 0x4b59dd
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4e7b48
call fcn.00471fb4
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 0x4b5a16
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004b71b7
jmp 0x4b5a21
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 0x4b5a33
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.00487d3d
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 0x4b5ae9
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 0x4b5afa
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 0x4b5b1a
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 0x4b5b1d
mov dword [ebp - 0x18], esi
cmp ebx, 2
je 0x4b5b45
cmp dword [ebp - 0x18], esi
je 0x4b5b2c
push 1
pop ebx
jmp 0x4b5b45
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 0x4b5b69
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 0x4b5b84
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.004a03dd
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4b5c11
mov eax, dword [ebp - 0x3c]
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 [esi + 0x10c]
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.004a03dd
add esp, 0x14
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x4b5c27
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
jmp 0x4b5c34
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 0x4b5c57
cmp dword [ebp - 0x18], eax
jne 0x4b5c57
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 0x4b5c57
push 1
pop eax
jmp 0x4b5c59
xor eax, eax
cmp ebx, 2
je 0x4b5c80
test eax, eax
je 0x4b5c67
push 1
pop ebx
jmp 0x4b5c80
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 0x4b5ca3
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 0x4b5cbe
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.004a03dd
add esp, 0x14
cmp dword [esi + 4], 0
je 0x4b5d45
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.004a03dd
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.0049f716
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 0x4b5d8a
push ebx
call edi
test eax, eax
je 0x4b5d8a
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 0x4b5d9d
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
je 0x4b5da8
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x14], 0
je 0x4b5db3
push dword [ebp - 0x14]
call esi
test ebx, ebx
je 0x4b5dba
push ebx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c