Function at 0x4f6014
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
sub esp, 0x48
push 0x130
mov eax, 0x636a1b
call fcn.0058c0ed
mov edi, ecx
cmp dword [ebp + 0x70], 0xffffffff
jne 0x4f6038
mov eax, dword [edi + 0x160]
mov dword [ebp + 0x70], eax
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov eax, dword [edi + 0x334]
setl byte [ebp + 0x4b]
cmp dword [eax + 0xc4c], 3
jne 0x4f6071
cmp dword [ebp + 0x6c], 1
jne 0x4f6071
push dword [ebp + 0x68]
lea ecx, [ebp + 0x5c]
push dword [ebp + 0x64]
call fcn.004a835a
test eax, eax
je 0x4f6071
inc dword [ebp + 0x64]
xor eax, eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], vtable.CPen.0
push dword [ebp + 0x70]
lea ecx, [ebp + 0x30]
push dword [ebp + 0x6c]
mov dword [ebp - 4], eax
push eax
call fcn.0049e13d
mov ebx, dword [ebp + 0x58]
lea eax, [ebp + 0x30]
push eax
mov ecx, ebx
call fcn.005513b6
mov esi, dword [edi + 0x334]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0xc4c]
cmp eax, 3
jl 0x4f64dd
cmp eax, 4
jle 0x4f64bc
cmp eax, 8
je 0x4f60de
cmp eax, 0xa
je 0x4f6455
cmp eax, 0xb
je 0x4f63b2
cmp eax, 0xc
jne 0x4f64dd
push dword [ebp + 0x68]
lea ecx, [ebp + 0x5c]
push dword [ebp + 0x64]
call fcn.00408b8e
test eax, eax
je 0x4f64dd
fild dword [ebp + 0x6c]
fmul qword [0x668840]
call fcn.0058d150
push 0xa
pop ecx
sub ecx, eax
cmp dword [esi + 0xc4c], 0xc
mov dword [ebp + 0x58], ecx
jne 0x4f62eb
push dword [ebp + 0x60]
lea ecx, [ebp]
push dword [ebp + 0x5c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.0050d4cd
push 0xc8
lea ecx, [ebp]
call fcn.0050d588
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp]
call fcn.0050d3db
mov esi, eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp]
call fcn.0050d3c9
push dword [esi + 4]
lea ecx, [ebp - 0x34]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.0050d4ad
lea ecx, [ebp - 0x34]
call fcn.0050d405
push 0x3c
lea ecx, [ebp - 0x34]
call fcn.0050d588
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp]
call fcn.0050d3db
mov esi, eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp]
call fcn.0050d3c9
push dword [esi + 4]
lea ecx, [ebp - 0x54]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.0050d4ad
lea ecx, [ebp - 0x54]
call fcn.0050d423
push 0x3c
lea ecx, [ebp - 0x54]
call fcn.0050d588
mov eax, dword [ebp + 0x68]
mov esi, dword [ebp + 0x64]
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x54]
call fcn.0050d3c9
push dword [eax + 4]
lea ecx, [ebp - 0x44]
push dword [eax]
push dword [ebp + 0x44]
push esi
call fcn.0050d4ad
push dword [ebp + 0x58]
lea ecx, [ebp - 0x44]
call fcn.0050d588
mov eax, dword [ebp + 0x68]
mov esi, dword [ebp + 0x64]
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x34]
call fcn.0050d3c9
push dword [eax + 4]
lea ecx, [ebp + 0x20]
push dword [eax]
push dword [ebp + 0x44]
push esi
call fcn.0050d4ad
push dword [ebp + 0x58]
lea ecx, [ebp + 0x20]
call fcn.0050d588
push dword [ebx + 4]
lea ecx, [ebp + 0x40]
call fcn.00499e83
push 4
lea ecx, [ebp + 0x40]
call fcn.00499ea9
push dword [ebp + 0x70]
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x3c], 0xff000000
call fcn.00499dd1
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00499e28
push 2
pop ecx
mov byte [ebp - 4], cl
lea eax, [ebp - 0x24]
and dword [eax + 4], 0
and dword [eax], 0
add eax, 8
dec ecx
jns 0x4f625e
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x44]
call fcn.0050d3c9
mov esi, dword [eax + 4]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x44]
call fcn.0050d3c9
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp + 0x20]
mov dword [ebp - 0x20], esi
call fcn.0050d3c9
mov esi, dword [eax + 4]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 0x20]
call fcn.0050d3c9
mov eax, dword [eax]
mov ecx, dword [ebp + 0x68]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x64]
push 0
mov dword [ebp - 0x14], eax
push 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x10], ecx
push eax
lea ecx, [ebp + 0x40]
mov dword [ebp - 0x18], esi
call fcn.004f1e42
push dword [ebp - 0x5c]
call sub.gdiplus.dll_GdipDeleteBrush
push dword [ebp + 0x40]
mov byte [ebp - 4], 0
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [edi + 0x334]
cmp dword [eax + 0xc4c], 0xc
jne 0x4f634b
push dword [ebp + 0x68]
lea ecx, [ebp + 0x20]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
call fcn.0050d4ad
lea ecx, [ebp + 0x20]
call fcn.0050d51c
fild dword [ebp + 0x58]
mov esi, eax
fmul qword [0x668838]
call fcn.0058d150
sub esi, eax
push esi
lea ecx, [ebp + 0x20]
call fcn.0050d588
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp + 0x20]
call fcn.0050d3c9
mov ecx, dword [eax]
mov dword [ebp + 0x64], ecx
mov eax, dword [eax + 4]
mov dword [ebp + 0x68], eax
push dword [ebx + 4]
lea ecx, [ebp + 0x40]
call fcn.00499e83
push 4
lea ecx, [ebp + 0x40]
call fcn.00499ea9
push dword [ebp + 0x70]
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x58], 0xff000000
call fcn.00499dd1
fild dword [ebp + 0x6c]
push ecx
lea eax, [ebp + 0x58]
fstp dword [esp]
push eax
lea ecx, [ebp + 0x14]
call fcn.00499c2e
push dword [ebp + 0x68]
lea eax, [ebp + 0x14]
push dword [ebp + 0x64]
lea ecx, [ebp + 0x40]
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
push eax
call fcn.00499ec6
push dword [ebp + 0x14]
call sub.gdiplus.dll_GdipDeletePen
push dword [ebp + 0x40]
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x4f64dd
push dword [ebx + 4]
lea ecx, [ebp + 0x38]
call fcn.00499e83
push 4
lea ecx, [ebp + 0x38]
call fcn.00499ea9
push dword [ebp + 0x70]
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x58], 0xff000000
call fcn.00499dd1
cmp byte [ebp + 0x4b], 0
lea eax, [ebp + 0x58]
je 0x4f6415
push eax
lea ecx, [ebp + 0x10]
call fcn.00499e28
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x64]
sub eax, dword [ebp + 0x5c]
push eax
push dword [ebp + 0x60]
lea eax, [ebp + 0x10]
push dword [ebp + 0x5c]
push eax
call fcn.00499f60
push dword [ebp + 0x14]
call sub.gdiplus.dll_GdipDeleteBrush
jmp 0x4f644d
fild dword [ebp + 0x6c]
push ecx
lea ecx, [ebp + 0x40]
fstp dword [esp]
push eax
call fcn.00499c2e
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x64]
sub eax, dword [ebp + 0x5c]
push eax
push dword [ebp + 0x60]
lea eax, [ebp + 0x40]
push dword [ebp + 0x5c]
push eax
call fcn.004f1e14
push dword [ebp + 0x40]
call sub.gdiplus.dll_GdipDeletePen
push dword [ebp + 0x38]
jmp 0x4f63a8
cmp byte [ebp + 0x4b], 0
mov ecx, ebx
je 0x4f647b
push dword [ebp + 0x70]
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x60]
push eax
mov eax, dword [ebp + 0x64]
sub eax, dword [ebp + 0x5c]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
call fcn.0056958b
jmp 0x4f64dd
push dword [ebp + 0x60]
lea eax, [ebp - 0xc0]
push dword [ebp + 0x5c]
push eax
call fcn.00550b6b
push dword [ebp + 0x60]
mov ecx, ebx
push dword [ebp + 0x64]
call fcn.00550325
push dword [ebp + 0x68]
mov ecx, ebx
push dword [ebp + 0x64]
call fcn.00550325
push dword [ebp + 0x68]
mov ecx, ebx
push dword [ebp + 0x5c]
call fcn.00550325
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
jmp 0x4f64d6
push dword [ebp + 0x60]
lea eax, [ebp - 0x98]
push dword [ebp + 0x5c]
mov ecx, ebx
push eax
call fcn.00550b6b
push dword [ebp + 0x68]
push dword [ebp + 0x64]
mov ecx, ebx
call fcn.00550325
push dword [ebp + 0x1c]
mov ecx, ebx
call fcn.005513b6
lea ecx, [ebp + 0x30]
call fcn.005512ee
lea ecx, [ebp - 0x13c]
call fcn.0040d212
lea eax, [ebp - 0x13c]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004f5b39
mov ecx, dword [edi + 0x1d4]
lea eax, [ebp - 0x13c]
push eax
call fcn.004dbffa
add dword [ebp + 0x5c], eax
mov ecx, dword [edi + 0x1d4]
lea eax, [ebp - 0x13c]
push eax
call fcn.004dbfdc
add dword [ebp + 0x60], eax
mov ecx, dword [edi + 0x1d4]
lea eax, [ebp - 0x13c]
push eax
call fcn.004dbffa
add dword [ebp + 0x64], eax
mov ecx, dword [edi + 0x1d4]
lea eax, [ebp - 0x13c]
push eax
call fcn.004dbfdc
add dword [ebp + 0x68], eax
mov esi, dword [ebp + 0x60]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x68]
mov edx, esi
sub edx, eax
sub ecx, eax
cmp edx, ecx
mov dword [ebp + 0x70], edx
jl 0x4f6579
mov dword [ebp + 0x70], ecx
mov ecx, dword [ebp + 0x68]
add esi, eax
lea edi, [ecx + eax]
cmp esi, edi
mov edx, esi
jg 0x4f6589
mov edx, edi
mov ecx, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x64]
mov esi, ecx
mov ebx, edi
sub esi, eax
sub ebx, eax
cmp esi, ebx
jge 0x4f659d
mov ebx, esi
lea esi, [ecx + eax]
add eax, edi
cmp esi, eax
jle 0x4f65a8
mov eax, esi
mov esi, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x70]
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x13c]
mov dword [esi], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.0040c7d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x30], vtable.CPen.0
call fcn.0040331c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x4c
leave
ret 0x20