Function at 0x412160
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push 1
mov eax, dword [esi]
call dword [eax + 0x1f8]
cmp dword [esi + 0x4c], 0
je 0x412488
mov eax, dword [esi]
mov ecx, esi
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push ebp
push dword [esp + 0x28]
push ebx
call dword [eax + 0x174]
test eax, eax
jne 0x412486
push edi
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esi + 0x990]
movzx edi, ax
shr edi, 0xf
and edi, 1
test dword [ecx + 0xd8], 0x400000
je 0x4121c3
xor edi, 1
cmp dword [esi + 0x8a4], 0
je 0x412276
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esi + 0x464]
jle 0x412265
cmp ecx, dword [esi + 0x46c]
jge 0x412265
cmp ebp, dword [esi + 0x468]
jle 0x412265
cmp ebp, dword [esi + 0x470]
jge 0x412265
mov eax, dword [esi + 0x28]
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, ecx
mov ecx, esi
push eax
call dword [edx + 0x48]
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1e8]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esi + 0x28]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.USER32.dll_SetCaretPos]
test edi, edi
je 0x412254
push dword [0x464c20]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41238d
push dword [0x464c24]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41238d
push dword [0x464c2c]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41238d
cmp dword [esi + 0x89c], 0
mov edi, dword [esi + 0xc]
je 0x4122f4
mov eax, dword [esi + 0x28]
mov ecx, esi
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esp + 0x2c]
push eax
call dword [edx + 0x48]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esi + 0x8a0]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x454]
cmp edx, eax
jl 0x4122de
add eax, eax
add edx, edx
mov eax, dword [ecx + eax*8]
mov dword [esi + 0x44], eax
push dword [ecx + edx*8 + 4]
mov ecx, dword [esi + 0x990]
call fcn.00403de0
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jmp 0x41233b
add eax, eax
add edx, edx
mov eax, dword [ecx + eax*8 + 4]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + edx*8]
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jmp 0x41233b
cmp dword [esi + 0x934], 0
jne 0x412303
inc dword [esi + 0x930]
mov eax, dword [esi + 0x28]
mov ecx, esi
mov edx, dword [esi]
add eax, ebp
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esp + 0x2c]
push eax
call dword [edx + 0x48]
cmp dword [esi + 0x934], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
jne 0x41232f
dec dword [esi + 0x930]
jmp 0x41233b
mov eax, dword [esi + 0x92c]
mov dword [esi + 0x938], eax
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
mov edx, dword [esi + 0xc]
mov ecx, edx
mov eax, dword [esi]
cmp edi, edx
cmovg ecx, edi
cmovl edx, edi
push ecx
push edx
mov ecx, esi
call dword [eax + 0x70]
cmp dword [esi + 0x934], 0
jne 0x412374
mov eax, dword [esi + 0x990]
cmp dword [eax + 0xac], 2
jne 0x41238d
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
cmp eax, edx
mov ecx, edx
cmovg ecx, eax
cmovl edx, eax
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x70]
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
cmp ebp, dword [esi + 0x470]
jle 0x4123b1
push edi
push 1
push 0x115
push ebx
call eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 1
cmp ebp, dword [esi + 0x468]
jge 0x4123ca
push 0
push 0
push 0x115
push ebx
call eax
mov edi, 1
cmp dword [esi + 0x1c], 0
jne 0x412461
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
push ecx
push dword [esi + 0x48]
mov ecx, esi
call dword [eax + 0x24]
mov ebp, dword [esp + 0x28]
cmp ebp, dword [esi + 0x46c]
jle 0x41241e
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x454]
add edx, edx
mov eax, dword [esi + 0x48]
cmp eax, dword [ecx + edx*8 + 4]
je 0x41241e
push 0
push 1
push 0x114
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, 1
cmp ebp, dword [esi + 0x464]
jge 0x412461
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x454]
add edx, edx
mov eax, dword [esi + 0x48]
cmp eax, dword [ecx + edx*8]
je 0x412461
push 0
push 0
push 0x114
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x64
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0x10
cmp edi, 1
jne 0x41247c
push 0
push 0x64
push edi
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0x10
push 1
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0x10