Function at 0x46d530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46d8a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [sym.imp.vcl210.bpl__Vcl_Controls_TControlCanvas_]
call sub.vcl210.bpl__Vcl_Graphics_TCanvas__bctr_qqrv
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [sym.imp.vcl210.bpl__Vcl_Graphics_TBitmap_]
call sub.vcl210.bpl__Vcl_Graphics_TBitmap__bctr_qqrv
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x40]
mov esi, eax
mov edx, dword [eax + 0x40]
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x46d884
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, dword [ebp - 8]
call sub.vcl210.bpl__Vcl_Controls_TControlCanvas_SetControl_qqrp21Vcl_Controls_TControl
cmp byte [ebx + 0x45], 0
jne 0x46d5aa
cmp byte [esi + 0x1c2], 0
jne 0x46d5aa
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x2ca], 0
jne 0x46d5d1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call sub.vcl210.bpl__Vcl_Graphics_TBrush_SetColor_qqr21System_Uitypes_TColor
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
movzx eax, byte [esi + 0x1d6]
cmp al, 3
jne 0x46d608
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call sub.vcl210.bpl__Vcl_Graphics_TBrush_SetColor_qqr21System_Uitypes_TColor
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x46d866
cmp al, 4
jne 0x46d678
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call sub.vcl210.bpl__Vcl_Graphics_TBrush_SetColor_qqr21System_Uitypes_TColor
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [0x4a95ac]
mov eax, dword [eax + 0x44]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
call sub.vcl210.bpl__Vcl_Graphics_TPen_SetColor_qqr21System_Uitypes_TColor
mov ebx, dword [ebp - 0x1c]
sar ebx, 1
jns 0x46d653
adc ebx, 0
mov ecx, dword [ebp - 0x20]
add ecx, 3
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x64]
mov ecx, dword [ebp - 0x18]
sub ecx, 3
mov edx, ebx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x46d866
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi + 0x1c4], 0xffffffff
jle 0x46d76a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x46d6cc
cmp byte [ebx + 0x45], 0
je 0x46d6cc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x2e4], 0
je 0x46d6cc
mov edx, dword [esi + 0x1c4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2e4]
mov ecx, dword [ebp - 0xc]
call sub.vcl210.bpl__Vcl_Imglist_TCustomImageList_GetBitmap_qqrip20Vcl_Graphics_TBitmap
jmp 0x46d72a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x46d6fc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x2d4], 0
je 0x46d6fc
mov edx, dword [esi + 0x1c4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2d4]
mov ecx, dword [ebp - 0xc]
call sub.vcl210.bpl__Vcl_Imglist_TCustomImageList_GetBitmap_qqrip20Vcl_Graphics_TBitmap
jmp 0x46d72a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
jne 0x46d72a
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x2dc], 0
je 0x46d72a
mov edx, dword [esi + 0x1c4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2dc]
mov ecx, dword [ebp - 0xc]
call sub.vcl210.bpl__Vcl_Imglist_TCustomImageList_GetBitmap_qqrip20Vcl_Graphics_TBitmap
push 0xc000ca
push 0
push 0
mov eax, dword [ebp - 0xc]
call sub.vcl210.bpl__Vcl_Graphics_TBitmap_GetCanvas_qqrv
call sub.vcl210.bpl__Vcl_Graphics_TCanvas_GetHandle_qqrv
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call sub.vcl210.bpl__Vcl_Graphics_TBitmap_GetCanvas_qqrv
call sub.vcl210.bpl__Vcl_Graphics_TCanvas_GetHandle_qqrv
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x2c8], 0
je 0x46d782
lea edx, [ebp - 4]
mov eax, esi
call sub.vcl210.bpl__Vcl_Controls_TControl_GetText_qqrv
jmp 0x46d78a
lea eax, [ebp - 4]
call sub.rtl210.bpl__System__UStrClr_qqrpv
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x2c9], 0
je 0x46d7b0
mov byte [ebp - 0x13], 0
mov edi, 2
mov byte [ebp - 0x12], 0
jmp 0x46d7bd
mov byte [ebp - 0x13], 2
mov edi, 1
mov byte [ebp - 0x12], 1
cmp byte [esi + 0x69], 0
je 0x46d866
lea edx, [ebp - 0x44]
mov eax, dword [sym.imp.vcl210.bpl__Vcl_Controls_Mouse]
mov eax, dword [eax]
call sub.vcl210.bpl__Vcl_Controls_TMouse_GetCursorPos_qqrv
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov eax, esi
call sub.vcl210.bpl__Vcl_Controls_TControl_ScreenToClient_qqrrx19System_Types_TPoint
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PtInRect
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x46d80d
push 1
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
je 0x46d811
xor eax, eax
jmp 0x46d813
mov al, 1
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0x13]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x7c]
push eax
push edi
cmp byte [esi + 0x1d6], 2
sete al
push eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x2ca]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x68]
push eax
movzx eax, byte [esi + 0x1c2]
push eax
movzx eax, byte [ebp - 0x11]
push eax
push ebx
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.00469c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d88b
mov eax, dword [ebp - 8]
call sub.rtl210.bpl__System_TObject_Free_qqrv
mov eax, dword [ebp - 0xc]
call sub.rtl210.bpl__System_TObject_Free_qqrv
ret