Function at 0x412ed0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4574b8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0x111
ja 0x413041
je 0x412fb2
lea eax, [edi - 2]
cmp eax, 0x1e
ja case.0x4131e4.515
movzx eax, byte [eax + 0x4132a8]
jmp dword [eax*4 + 0x413294]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x1c]
test eax, eax
je case.0x4131e4.515
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
call fcn.004135f0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 0x8e]
cmp eax, 0x17
ja case.0x412fc7.143
movzx eax, byte [eax + 0x4132e4]
jmp dword [eax*4 + 0x4132c8]
push 1
mov ecx, esi
call fcn.004133d0
jmp case.0x4131e4.515
push 0
mov ecx, esi
call fcn.00413650
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
push 1
jmp 0x412fdb
push 2
jmp 0x412fdb
mov eax, dword [esi + 0x54]
mov ecx, esi
movzx eax, byte [eax + 0x52]
push eax
call fcn.00412d80
jmp case.0x4131e4.515
mov eax, dword [esi + 0x50]
xor ecx, ecx
cmp byte [eax + 0x52], cl
setne cl
push ecx
lea ecx, [esi + 0xd8]
call fcn.0040b700
jmp case.0x4131e4.515
push dword [ebp + 0x14]
push ecx
push 0x111
jmp 0x412fe9
cmp edi, 0x200
ja 0x4131cc
je 0x41319e
cmp edi, 0x113
jne case.0x4131e4.515
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 0x2710]
cmp eax, 4
ja case.default.0x41306d
jmp dword [eax*4 + 0x4132fc]
mov ecx, esi
call fcn.00413580
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.00413930
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x68]
mov ecx, esi
mov byte [eax + 0x50], 5
mov dword [eax + 0x4c], 2
movzx eax, byte [esi + 0x30]
push eax
call fcn.0040faa0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.00413810
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esi + 0x74]
call fcn.0040d030
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
shr eax, 0xf
test al, 1
je 0x413162
push 0x10
call edi
shr eax, 0xf
test al, 1
je 0x413162
push 0x24
call edi
shr eax, 0xf
and al, 1
je 0x41315d
cmp byte [0x45a78c], 0
jne 0x41315d
cmp byte [esi + 0x155], 0
mov byte [0x45a78c], 1
sete cl
mov byte [esi + 0x155], cl
call fcn.00409fe0
jmp 0x413162
mov byte [0x45a78c], al
cmp byte [esi + 0x155], 0
je 0x41327a
lea ecx, [esi + 0x74]
call fcn.0040c560
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push ecx
push 0x113
jmp 0x412fe9
mov ecx, dword [ebp + 0x14]
mov eax, ecx
mov edx, dword [esi]
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, esi
push eax
call dword [edx + 8]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
lea eax, [edi - 0x201]
cmp eax, 0xa2
ja case.0x4131e4.515
movzx eax, byte [eax + 0x413324]
jmp dword [eax*4 + 0x413310]
mov ecx, dword [ebp + 0x14]
mov eax, ecx
mov edx, dword [esi]
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, esi
push eax
call dword [edx + 0x10]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov eax, ecx
mov edx, dword [esi]
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, esi
push eax
call dword [edx + 0xc]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov eax, ecx
mov edx, dword [esi]
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, esi
push eax
call dword [edx + 0x14]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [esp + 0x54]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b3ed
mov esp, ebp
pop ebp
ret 0x10