Function at 0x412310
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
sub eax, 0
push ebx
push esi
push edi
mov esi, ecx
je 0x412474
mov edi, 1
sub eax, edi
jne 0x4125c2
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x41236c
mov eax, dword [ebp + 0x14]
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.00414780
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0x10], 0
mov dword [ecx], eax
je 0x4125c2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x4123ac
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], edi
je 0x412390
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
call fcn.004147c0
mov ecx, dword [esp + 0x10]
jmp 0x412394
xor ecx, ecx
xor eax, eax
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
test ecx, ecx
je 0x4125c2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x215
jne 0x4123cf
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], edi
je 0x412390
lea eax, [esp + 0x10]
push eax
mov eax, esi
call fcn.00414830
mov ecx, dword [esp + 0x10]
jmp 0x412394
cmp eax, 0x200
jne 0x4123fd
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], 0
je 0x4123f6
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004148f0
jmp 0x412351
xor eax, eax
jmp 0x412351
cmp eax, 0x205
jne 0x41241c
mov eax, dword [ebp + 0x14]
call fcn.004125d0
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x4125c2
push 0x10
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
cmp dword [ebp + 0x10], 0x79
mov byte [esp + 0x14], al
jne 0x412464
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.00414a60
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
test ecx, ecx
jmp 0x41235b
mov edx, dword [ebp + 0x18]
xor eax, eax
xor ecx, ecx
mov dword [edx], eax
test ecx, ecx
jmp 0x41235b
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x412499
push esi
call fcn.0040f7a0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x4124b8
mov eax, esi
call fcn.00414680
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 5
jne 0x4124db
mov ebx, esi
call fcn.00404c80
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 7
jne 0x412513
cmp dword [esi + 0x50], 0xffffffff
je 0x4124fe
call fcn.004146b0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x14]
cmp eax, 0x4e
jne 0x412598
mov ecx, dword [ebx + 4]
cmp ecx, 0x521
jne 0x412553
cmp dword [ebx + 8], 0xfffffdd9
jne 0x412547
call fcn.00414710
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x521
je 0x412482
cmp dword [ebx + 8], 0xfffffdee
jne 0x412598
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0x132d
push ecx
mov edi, 1
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx], eax
jne 0x412582
push ebx
mov eax, esi
call fcn.0040fba0
jmp 0x412584
xor edi, edi
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
test edi, edi
jne 0x41248b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
push esi
mov esi, eax
mov dword [esp + 0x20], 1
call fcn.00417e10
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x41248b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18