Function at 0x412d50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x47b0b0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx - 0x310]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x412dc2
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x412dc2
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xdc]
call eax
mov esi, dword [ebp + 8]
test al, al
jne 0x412db4
lea eax, [esi - 0x200]
cmp eax, 0xe
jbe 0x412dc2
cmp esi, 0x20a
jne 0x412dd8
test byte [ebp + 0xc], 8
jne 0x412e36
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044d04f
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0x10f
jne 0x412e36
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push dword [eax]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
test esi, esi
je 0x412dc2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], edx
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push esi
push dword [eax]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
jmp 0x412dc2
mov byte [esp + 0xf], 1
cmp esi, 0x200
jb 0x412e4b
cmp esi, 0x20e
jbe 0x412e54
cmp esi, 0x20
jne 0x412f61
mov eax, dword [ebx + 4]
test dword [eax + 0x14], 0x100
jne 0x412e93
lea eax, [esi - 0x201]
cmp eax, 4
ja 0x412e93
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00424240
lea ecx, [ebx - 0x310]
cmp eax, ecx
jne 0x412dc2
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
and eax, 0x100
neg eax
sbb eax, eax
and eax, 3
jne 0x412f1e
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp esi, 0x20a
jne 0x412ef9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x412dc2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp byte [eax + 0xba], 0
jmp 0x412f21
cmp eax, 3
jne 0x412dc2
cmp esi, 0x20
jne 0x412f36
mov byte [esp + 0xf], 0
jmp 0x41304b
cmp esi, 0x201
je 0x412f52
cmp esi, 0x203
je 0x412f52
cmp esi, 0x204
jne 0x412ff7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf0]
jmp 0x412ff7
cmp esi, 0x100
jb 0x412f71
cmp esi, 0x109
jbe 0x412fe3
cmp esi, 0x102
je 0x412fe3
cmp esi, 0x286
je 0x412fe3
cmp esi, 0x7b
jne 0x412fd3
mov ecx, dword [ebp + 0x10]
movsx eax, cx
mov dword [esp + 0x10], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [esp + 0x14]
mov eax, dword [edi]
push dword [esp + 0x14]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00424240
lea ecx, [ebx - 0x310]
cmp eax, ecx
je 0x41304b
jmp 0x412dc2
cmp esi, 0x53
jne 0x412dc2
mov byte [esp + 0xf], 0
jmp 0x41304b
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x412dc2
cmp esi, 0x102
jne 0x41304b
cmp byte [ebx + 0x21], 0
je 0x41304b
push 0x15
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x413017
mov byte [ebx + 0x21], 0
jmp 0x413044
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x41303c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x41304b
mov eax, dword [ebp + 0xc]
movzx eax, ax
shl eax, 8
mov dword [ebx + 0x24], eax
jmp 0x412dc2
or dword [ebp + 0xc], eax
mov esi, 0x286
mov dword [ebx + 0x24], 0
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], 0
push esi
call dword [eax + 0x1b0]
test eax, eax
je 0x4130a4
cmp esi, 0x100
jb 0x41307d
cmp esi, 0x109
jbe 0x4130a4
cmp esi, 0x102
je 0x4130a4
cmp esi, 0x286
je 0x4130a4
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x4130ae
mov eax, dword [ebx + 4]
test dword [eax + 0x14], 0x100
je 0x4130ae
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0xf]
mov byte [ecx], al
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044d04f
mov esp, ebp
pop ebp
ret 0x10