Function at 0x47199e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4963dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x3c], eax
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4719e0
push 2
pop ecx
call fcn.00483127
xor eax, eax
jmp 0x471b7a
mov ecx, eax
call fcn.0048301f
mov eax, dword [ebp - 0x3c]
lea edi, [ebp - 0x14]
lea ecx, [eax + 0x28]
mov esi, ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
add ebx, dword [eax + 0x38]
add edi, dword [eax + 0x38]
add edx, dword [eax + 0x3c]
add esi, dword [eax + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], esi
cmp dword [ecx], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
je 0x471a37
sub ebx, ecx
sub edi, ecx
jmp 0x471a3f
mov ebx, edx
mov edi, esi
sub ebx, eax
sub edi, eax
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
call esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x2c]
call esi
lea eax, [ebp - 0x24]
push eax
push dword [0x499a00]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x24]
push eax
push dword [0x499a00]
call esi
lea eax, [ebp - 0x1c]
push eax
push dword [0x499a00]
call esi
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x471aa3
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
cmovg eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
cmovl eax, dword [ebp - 8]
jmp 0x471abd
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
cmovg eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
cmovl ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
dec ecx
dec eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_SetCapture]
push 3
push 0x20e
push 0x100
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x471adc
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, dword [ebp - 0x58]
jne 0x471b14
cmp eax, 0x202
jne 0x471b21
sub eax, 0x200
je 0x471b8d
dec eax
sub eax, 1
jne 0x471adc
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 2
mov edx, esi
xor ecx, ecx
call fcn.00482deb
mov ecx, dword [ebp - 0x3c]
push ecx
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x471b77
mov esi, dword [ebp - 0x40]
lea edi, [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
cmp dword [ecx], 0
mov ecx, dword [ebp - 0x3c]
cmovne eax, edx
lea edx, [ebx + eax]
call fcn.00469cf6
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048dc69
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x50]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x471bd3
mov edx, dword [eax + 4]
lea eax, [ebx + ecx]
and dword [ebp - 0x2c], 0
cmp eax, edx
jge 0x471bb5
mov ecx, edx
sub ecx, ebx
jmp 0x471bc6
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 8]
lea eax, [ecx + edi]
cmp eax, edx
jle 0x471bc6
mov ecx, edx
sub ecx, edi
mov eax, ecx
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
jmp 0x471c03
mov ecx, dword [eax + 4]
lea eax, [ebx + edx]
and dword [ebp - 0x30], 0
cmp eax, ecx
jge 0x471be7
mov edx, ecx
sub edx, ebx
jmp 0x471bf8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
lea eax, [edx + edi]
cmp eax, ecx
jle 0x471bf8
mov edx, ecx
sub edx, edi
mov eax, edx
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push dword [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_InvertRect]
jmp 0x471adc