Function at 0x4318c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
cmp eax, 0x400
push ebx
push ebp
push esi
jne 0x431940
push 1
mov ecx, edi
call fcn.004ec9d5
mov cl, byte [edi + 0x75]
neg cl
sbb ecx, ecx
and ecx, 0xa
add ecx, 0xfffffffb
add eax, ecx
jns 0x4318ed
xor eax, eax
movzx edx, ax
mov eax, dword [edi + 0x20]
push 0
shl edx, 0x10
or edx, 5
push edx
push 0x115
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
add word [edi + 0xa4], 1
movzx eax, word [edi + 0xa4]
cmp ax, 0x1e
jle 0x431935
mov ecx, dword [edi + 0x20]
push 0x400
push ecx
mov word [edi + 0xa4], 0
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp eax, 0x401
jne 0x431972
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x431958
mov byte [edi + 0x76], 1
mov edx, dword [edi + 0x20]
push 0x401
push edx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp eax, 0x402
jne 0x431b36
cmp dword [edi + 0xf4], 0
jne 0x43199c
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov eax, dword [edi + 0x110]
cmp eax, 2
jne 0x431a15
mov ecx, dword [edi + 0x11c]
sub ecx, dword [edi + 0x114]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [edi + 0x114], eax
add dword [edi + 0x11c], eax
mov eax, dword [edi + 0x11c]
cmp eax, dword [edi + 0xd0]
jle 0x431a80
mov ecx, dword [edi + 0x20]
push 0x402
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
push 5
mov ecx, edi
call fcn.004f3a53
mov ecx, edi
call fcn.004f3ab0
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
cmp eax, 1
jne 0x431a80
mov ecx, dword [edi + 0x11c]
sub ecx, dword [edi + 0x114]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
sub dword [edi + 0x114], eax
mov ecx, dword [edi + 0x114]
sub dword [edi + 0x11c], eax
test ecx, ecx
jge 0x431a80
mov eax, dword [edi + 0x20]
push 0x402
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 5
mov ecx, edi
call fcn.004f3a53
mov ecx, edi
call fcn.004f3ab0
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004edd60
test eax, eax
je 0x431935
mov ecx, edi
call fcn.00417360
mov ecx, eax
call fcn.00424320
mov ecx, dword [edi + 0x20]
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.00417360
mov ecx, eax
call fcn.004e9f4a
mov ecx, dword [edi + 0x114]
mov edx, dword [edi + 0x118]
mov ebx, dword [ebp + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x11c]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x120]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
lea esi, [edi + 0xc0]
mov dword [eax + 0xc], edx
call fcn.00432650
add esp, 0x20
push ebp
mov ecx, edi
call fcn.00417360
mov ecx, eax
call fcn.00424300
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push edx
lea ecx, [eax + edi]
call dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x14