Function at 0x490990
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x2b
je 0x490d1d
cmp dword [ebp - 0x74], 0x2c
je 0x490dfe
cmp dword [ebp - 0x74], 0x111
je 0x4909c1
jmp 0x490e66
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0x3e8
je 0x490a04
cmp dword [ebp - 0x78], 0x44f
je 0x4909f0
cmp dword [ebp - 0x78], 0x450
je 0x4909fa
jmp 0x490d18
mov eax, 1
jmp 0x490e6e
mov eax, 1
jmp 0x490e6e
cmp dword [ebp + 0x1c], 0
je 0x490b8e
mov dword [ebp - 0x4c], 0xffffffff
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
je 0x490a40
mov edx, dword [ebp + 0x10]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
cmp eax, 2
jne 0x490b68
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [ebp - 0x5c]
push edx
push 0x3e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
push 0
push 0
push 0x188
push 0x3e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx*4 + 0x1068fa4]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x1096884]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x490b68
push 0x3e8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
push 0x58
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x7c], eax
fild dword [ebp - 0x7c]
fdiv qword [0x54b6d0]
fstp qword [ebp - 0x70]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx*4 + 0x1068fa4]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x1096880]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
jle 0x490b68
mov edx, dword [ebp - 0x4c]
imul edx, edx, 0xe
add edx, 0xa
mov dword [ebp - 0x80], edx
fild dword [ebp - 0x80]
fmul qword [ebp - 0x70]
call fcn.00532f90
cmp dword [ebp - 0x64], eax
jle 0x490b4a
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
je 0x490b48
mov eax, 1
jmp 0x490e6e
jmp 0x490b68
mov edx, dword [ebp + 0x10]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
cmp eax, 2
jne 0x490b68
mov eax, 1
jmp 0x490e6e
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
cmp edx, 2
je 0x490b8c
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x490b8c
mov eax, 1
jmp 0x490e6e
jmp 0x490bab
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
je 0x490bab
mov eax, 1
jmp 0x490e6e
cmp dword [0x5614a4], 3
jne 0x490bbe
mov eax, 1
jmp 0x490e6e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 0x48], ax
movsx edx, word [ebp - 0x48]
and edx, 0x80
je 0x490bdf
mov byte [0x5fa587], 1
jmp 0x490be6
mov byte [0x5fa587], 0
push 0
push 0
push 0x188
push 0x3e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx*4 + 0x1068fa4]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x1096884]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x490d18
push 0
push 0
push 0x188
push 0x3e8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
movzx edx, ax
mov dword [0x5f428c], edx
push 0
push 0
push 0x18e
push 0x3e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
movzx ecx, ax
mov dword [0x5f42a4], ecx
cmp dword [ebp - 0x44], 3
jne 0x490cb1
movsx edx, byte [0x5fa587]
cmp edx, 1
jne 0x490c93
push 1
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [0x71cef4]
push edx
call fcn.0045afc0
add esp, 0x10
jmp 0x490caf
push 0
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [0x71cef4]
push edx
call fcn.0045afc0
add esp, 0x10
jmp 0x490d0e
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax*4 + 0x1068fa4]
imul ecx, ecx, 0x1c
mov dword [ecx + 0x1096884], 3
movsx edx, byte [0x5fa587]
cmp edx, 1
jne 0x490cf2
push 1
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [0x71cef4]
push edx
call fcn.0045a980
add esp, 0x10
jmp 0x490d0e
push 0
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [0x71cef4]
push edx
call fcn.0045a980
add esp, 0x10
mov eax, 1
jmp 0x490e6e
jmp 0x490e66
mov eax, dword [ebp + 0x14]
mov dword [0x71cf64], eax
mov ecx, dword [0x71cf64]
cmp dword [ecx + 8], 0xffffffff
jne 0x490d40
call fcn.00491b10
mov eax, 1
jmp 0x490e6e
mov edx, dword [0x71cf64]
mov eax, dword [edx + 0xc]
and eax, 1
je 0x490d91
push 0x71cce0
mov ecx, dword [0x71cf64]
movzx edx, word [ecx + 8]
push edx
push 0x189
mov eax, dword [0x71cef4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00490f90
mov ecx, dword [0x71cf64]
mov edx, dword [ecx + 0x10]
and edx, 0x10
je 0x490d87
call fcn.00491b10
mov eax, 1
jmp 0x490e6e
mov eax, dword [0x71cf64]
mov ecx, dword [eax + 0xc]
and ecx, 2
je 0x490de2
push 0x71cce0
mov edx, dword [0x71cf64]
movzx eax, word [edx + 8]
push eax
push 0x189
mov ecx, dword [0x71cef4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00490f90
mov edx, dword [0x71cf64]
mov eax, dword [edx + 0x10]
and eax, 0x10
je 0x490dd8
call fcn.00491b10
mov eax, 1
jmp 0x490e6e
mov ecx, dword [0x71cf64]
mov edx, dword [ecx + 0xc]
and edx, 4
je 0x490dfc
call fcn.00491b10
mov eax, 1
jmp 0x490e6e
jmp 0x490e66
mov eax, dword [ebp + 0x14]
mov dword [0x71ccb8], eax
push 0x3e8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [0x71ccb8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], edx
mov eax, dword [0x71ccb8]
cmp dword [eax + 0x10], 0x10
jae 0x490e51
mov ecx, dword [0x71ccb8]
mov dword [ecx + 0x10], 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
jmp 0x490e6e
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret