Function at 0x41614b
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp eax, 0x100
je 0x41616a
cmp eax, 0x201
je 0x41616a
cmp eax, 0x207
je 0x41616a
cmp eax, 0x204
jne 0x41617a
cmp byte [esi + 0x589], 0
je 0x41617a
push 0
call fcn.004149a0
mov ecx, dword [ebp + 4]
cmp ecx, 0x100
jne case.0x41619f.14
mov eax, dword [ebp + 8]
add eax, 0xfffffff3
cmp eax, 0x6a
ja case.0x41619f.14
movzx eax, byte [eax + 0x416698]
jmp dword [eax*4 + 0x416634]
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0xffffffffffffffff
push 4
push 0x8011
call sub.mfc90.dll_Ordinal_1182
cmp eax, 6
jne 0x4161cd
mov ecx, esi
call fcn.004137a0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x8007
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x8008
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x8009
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x800a
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x800b
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x800c
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x800d
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
push 0x800e
mov ecx, esi
call fcn.004151b0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00413a90
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.004122c0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00413ff0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00413c70
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00413e30
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00416110
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00416120
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00416100
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.004153c0
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov ecx, esi
call fcn.00415440
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov eax, dword [esi + 0x564]
mov ecx, dword [eax + 0x8d18]
mov edx, dword [eax + 0x308]
sub edx, dword [eax + 0x8d10]
dec ecx
imul ecx, dword [eax + 0x8d14]
cmp edx, ecx
jl 0x4163a2
mov ecx, dword [eax + 0x308]
sub ecx, dword [eax + 0x8d10]
push ecx
mov ecx, esi
call fcn.00412770
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov eax, dword [esi + 0x564]
mov edx, dword [eax + 0x8d18]
imul edx, dword [eax + 0x8d14]
mov ecx, dword [eax + 0x8d10]
add ecx, dword [eax + 0x308]
cmp ecx, edx
jge 0x4163e6
mov edx, dword [eax + 0x8d10]
add edx, dword [eax + 0x308]
mov ecx, esi
push edx
call fcn.00412770
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov eax, dword [esi + 0x564]
mov ecx, dword [eax + 0x8d18]
mov edx, dword [eax + 0x308]
dec ecx
imul ecx, dword [eax + 0x8d14]
dec edx
cmp edx, ecx
jl 0x416421
mov ecx, dword [eax + 0x308]
dec ecx
push ecx
mov ecx, esi
call fcn.00412770
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
mov eax, dword [esi + 0x564]
mov edx, dword [eax + 0x8d18]
imul edx, dword [eax + 0x8d14]
mov eax, dword [eax + 0x308]
inc eax
cmp eax, edx
jge 0x416461
mov ecx, dword [esi + 0x564]
mov edx, dword [ecx + 0x308]
inc edx
push edx
mov ecx, esi
call fcn.00412770
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
cmp ecx, 0x104
jne 0x41649d
cmp dword [ebp + 8], 0x43
jne 0x41649d
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x41649d
mov ecx, esi
call fcn.00414f60
pop esi
mov eax, 1
pop ebp
add esp, 0x28
ret 4
cmp dword [ebp + 4], 0x203
jne 0x4164f5
push 0xf8
mov ecx, esi
call sub.mfc90.dll_Ordinal_2899
mov ecx, dword [ebp]
cmp ecx, dword [eax + 0x20]
jne 0x4164f5
mov edx, dword [esi + 0x564]
cmp dword [edx + 0x8d14], 1
mov ecx, esi
jne 0x4164e1
mov eax, dword [esi + 0xb8]
push eax
call fcn.004151b0
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 4
push 0x8007
call fcn.004151b0
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret 4
mov eax, dword [ebp + 4]
cmp eax, 0x201
je 0x41650a
cmp eax, 0x204
jne 0x416624
movzx ecx, word [ebp + 0xc]
movzx edx, word [ebp + 0xe]
mov dword [esp + 8], ecx
push 0xf8
mov ecx, esi
mov dword [esp + 0x10], edx
call sub.mfc90.dll_Ordinal_2899
mov ecx, dword [ebp]
cmp ecx, dword [eax + 0x20]
jne 0x4165f0
mov edx, dword [esi + 0x564]
cmp dword [edx + 0x8d14], 1
je 0x4165f0
push edi
xor edi, edi
push ebx
lea esp, [esp]
mov ecx, dword [esi + 0x564]
mov eax, dword [ecx + 0x8d18]
dec eax
imul eax, dword [ecx + 0x8d14]
add eax, edi
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00407a40
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], edx
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4165c8
mov eax, dword [esi + 0x564]
mov ecx, dword [eax + 0x8d18]
mov ebx, dword [eax + 0x8d14]
lea eax, [ecx - 1]
imul eax, ebx
add eax, edi
xor edx, edx
div ebx
inc eax
cmp ecx, eax
je 0x4165d0
inc edi
cmp edi, 0x40
jb 0x416550
jmp 0x4165ee
mov eax, dword [esi + 0x564]
mov ecx, dword [eax + 0x8d18]
dec ecx
imul ecx, dword [eax + 0x8d14]
add ecx, edi
push ecx
mov ecx, esi
call fcn.00412770
pop ebx
pop edi
call fcn.00408c90
cmp eax, 1
jle 0x416624
cmp byte [esi + 0x57c], 0
je 0x416624
movzx edx, word [esp + 0xc]
movzx eax, word [esp + 8]
mov ecx, dword [esi + 0x20]
shl edx, 0x10
or edx, eax
push edx
push 2
push 0xa1
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push ebp
mov ecx, esi
call sub.mfc90.dll_Ordinal_5636
pop esi
pop ebp
add esp, 0x28
ret 4