Function at 0x497090
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
mov eax, dword [esi + 0xa4]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebx
je 0x497173
cmp dword [esi + 0xa8], edi
jne 0x4970ce
cmp dword [esi + 0xac], ebx
je 0x497173
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x497173
mov eax, dword [esi + 0xf0]
cmp eax, 0xffffffff
je 0x497173
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0xf8], ebp
call dword [edx + 0x20]
cmp eax, ebp
mov dword [esi + 0xa4], ebp
jne 0x4973aa
mov dword [esi + 0xf8], 1
call dword [sym.imp.USER32.dll_GetMessagePos]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
and edi, 0xffff
shl edi, 0x10
and eax, 0xffff
or edi, eax
cmp ebx, 5
je 0x497160
mov edx, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [edx + 0x14]
push edi
push ebx
mov ecx, esi
call fcn.00497780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0xd4], ebp
je 0x497196
mov edx, dword [esi + 8]
lea ecx, [esi + 0x28]
push edx
call fcn.00499a60
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
push ebx
lea eax, [esi + 0x348]
push edi
push eax
call ebp
test eax, eax
je 0x497229
push 2
lea ecx, [esi + 4]
call fcn.0049a270
cmp byte [esi + 0x1d8], 1
je 0x4973aa
mov eax, dword [esi + 0xf8]
mov byte [esi + 0x1d8], 1
test eax, eax
je 0x4971da
mov byte [esi + 0x1d8], 2
push 0xffffffffffffffff
mov ecx, esi
call fcn.00497c10
mov eax, dword [esi + 0xf0]
mov dword [esi + 0xf0], 0xffffffff
cmp eax, 0xffffffff
je 0x497200
push eax
mov ecx, esi
call fcn.00497c10
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4973aa
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
cmp byte [esi + 0x1d8], 4
je 0x497242
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1d8], 4
call fcn.00497c10
push ebx
lea edx, [esp + 0x28]
push edi
push edx
call ebp
test eax, eax
je 0x4973a3
push 2
lea ecx, [esi + 4]
call fcn.0049a270
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0xe8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xd0]
cmp eax, 0xffffffff
mov dword [esi + 0xf0], 0xffffffff
mov dword [esp + 0x14], ecx
je 0x49728a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x497344
mov edx, dword [esi + 0xe4]
mov eax, dword [esi + 0xe0]
mov ebp, dword [edx + ebx*4]
mov edi, ebp
shl edi, 9
add eax, edi
test byte [eax + 0x44], 8
jne 0x4972ec
mov ecx, dword [eax + 0x198]
test ecx, ecx
je 0x4972ec
test byte [eax + 0x48], 4
jne 0x4972ec
mov ecx, dword [esp + 0x20]
add eax, 0x1b4
push ecx
movsx ecx, word [esp + 0x40]
push ecx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4972ec
mov edx, dword [esi + 0xe0]
test byte [edx + edi + 0x48], 1
je 0x4972f7
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x497298
jmp 0x497344
mov edi, dword [esp + 0x10]
mov dword [esi + 0xf0], ebp
cmp ebp, edi
je 0x4973aa
push ebp
mov ecx, esi
call fcn.00497c10
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x497327
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.00499a10
cmp edi, 0xffffffff
je 0x497344
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xf0]
cmp ecx, eax
je 0x497344
mov edx, ecx
mov ecx, esi
push edx
call fcn.00497c10
cmp dword [esi + 0xf0], 0xffffffff
jne 0x49737e
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x49735e
push eax
mov ecx, esi
call fcn.00497c10
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4973aa
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.00499a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4973aa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
call fcn.00497510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov ecx, esi
call fcn.00496fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8