Function at 0x4f6818
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4f6838
xor eax, eax
inc eax
jmp 0x4f6b77
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 1
push 0x662740
call fcn.004973a1
mov edi, eax
mov eax, dword [esi + 0x1b8]
xor ebx, ebx
pop ecx
pop ecx
cmp eax, ebx
je 0x4f686f
cmp dword [eax + 8], ebx
je 0x4f686f
mov dword [ebp - 0xc], 1
cmp dword [eax + 4], ebx
jne 0x4f6872
mov dword [ebp - 0xc], ebx
cmp edi, ebx
je 0x4f6b72
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x148]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x662f64
call fcn.00515e2c
push 0x15
push ebx
push ebx
push dword [ebp - 0x2c]
mov ecx, edi
push dword [ebp - 0x30]
push ebx
call fcn.004a12a8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x180]
push eax
push 0x608478
call fcn.004973a1
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, ebx
je 0x4f691c
cmp dword [ebp - 0xc], ebx
jne 0x4f69d6
mov eax, dword [ecx]
call dword [eax + 0x198]
test al, 0x40
je 0x4f69d3
mov ecx, dword [ebp - 8]
push 0x66345c
call fcn.00497383
test eax, eax
je 0x4f69d3
mov eax, dword [esi]
push 1
push edi
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x14]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4f69d3
push dword [eax + 0x9c]
call fcn.0049ce43
push dword [edi + 0x9c]
mov dword [ebp + 8], eax
call fcn.0049ce43
cmp dword [ebp + 8], eax
jne 0x4f69d3
push dword [ebp - 0x10]
push 0x663fcc
call fcn.004973a1
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4f6abc
cmp dword [esi + 0x124], 0
jne 0x4f6988
call fcn.00598405
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], ebx
cmp dword [esi + 0x124], ebx
jne 0x4f6abc
call fcn.00598405
sub eax, dword [esi + 0x128]
cmp eax, dword [0x6627a4]
jle 0x4f6abc
mov eax, dword [ebx]
push 1
push edi
mov ecx, ebx
call dword [eax + 0x220]
mov edi, eax
call fcn.00598405
and dword [esi + 0x124], 0
mov dword [esi + 0x128], eax
mov eax, edi
jmp 0x4f6b75
mov ecx, dword [ebp - 8]
mov dword [esi + 0x124], ebx
cmp ecx, ebx
je 0x4f6b72
mov eax, dword [ecx]
call dword [eax + 0x170]
test eax, 0xf000
je 0x4f6abc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push dword [0x6627b0]
mov dword [ebp + 8], ebx
call dword [eax + 0x290]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], ecx
jne 0x4f6a1d
mov dword [ebp - 4], ebx
cmp ecx, ebx
jne 0x4f6a2b
cmp dword [ebp - 4], 2
jne 0x4f6acd
cmp dword [ebp - 0xc], ebx
jne 0x4f6acd
cmp ecx, ebx
je 0x4f6a4a
push 0x60f2d0
call fcn.00497383
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x4f6a4d
mov dword [ebp - 0x10], ebx
cmp ecx, ebx
je 0x4f6a60
push 0x66345c
call fcn.00497383
mov ecx, dword [ebp + 8]
jmp 0x4f6a63
xor eax, eax
inc eax
cmp dword [ebp - 0x10], ebx
jne 0x4f6ac4
cmp eax, ebx
je 0x4f6acd
mov eax, dword [0x6627a4]
lea ebx, [esi + 0x120]
mov dword [ebp - 0x10], eax
cmp dword [ebx], ecx
jne 0x4f6a89
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x12c]
je 0x4f6aac
call fcn.00598405
push dword [ebp - 0x10]
mov dword [esi + 0x128], eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov ecx, edi
mov dword [esi + 0x12c], eax
call fcn.004f42b8
call fcn.00598405
sub eax, dword [esi + 0x128]
cmp eax, dword [ebp - 0x10]
jge 0x4f6acb
xor eax, eax
inc eax
jmp 0x4f6b75
mov eax, dword [0x6627a0]
jmp 0x4f6a71
xor ebx, ebx
mov dword [esi + 0x120], ebx
call fcn.00598405
mov ecx, edi
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], ebx
call fcn.004f34c2
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jne 0x4f6b1b
cmp dword [ebp + 8], ebx
je 0x4f6b5f
mov edx, dword [edi]
push eax
push ebx
push ebx
mov ecx, edi
call dword [edx + 0x168]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x27c]
test eax, eax
je 0x4f6b5f
xor eax, eax
jmp 0x4f6b75
cmp dword [ebp - 4], 2
jne 0x4f6b37
cmp dword [ebp - 0xc], ebx
jne 0x4f6b5f
mov edx, dword [edi]
push eax
push dword [ebp + 8]
mov ecx, edi
push eax
call dword [edx + 0x168]
jmp 0x4f6b6f
cmp dword [ebp - 4], 3
jne 0x4f6b5f
cmp dword [ebp - 0xc], ebx
jne 0x4f6b5f
mov edx, dword [edi]
push eax
push dword [ebp + 8]
mov ecx, edi
push 2
call dword [edx + 0x168]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
jmp 0x4f6b72
mov eax, dword [edi]
push 1
push dword [ebp + 8]
mov ecx, edi
push ebx
call dword [eax + 0x168]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 4