Function at 0x40f320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x108]
push edi
call edx
test al, al
mov eax, dword [ebp + 8]
jne 0x40f368
mov ecx, dword [eax]
cmp ecx, 8
jle 0x40f368
cmp ecx, 0x16
jge 0x40f368
mov ecx, dword [esi + 0x48]
push eax
test ecx, ecx
je 0x40f650
mov edx, dword [ecx]
mov eax, dword [edx + 0x138]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax]
cmp ecx, 0x18
jne 0x40f37f
mov byte [esi + 0x19d], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, 0x17
jne 0x40f394
mov byte [esi + 0x19d], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, 3
je 0x40f459
cmp ecx, 0x15
jne case.0x40f470.14
movzx ecx, word [eax + 0x18]
sub ecx, 0
je 0x40f417
sub ecx, 1
jne case.0x40f470.14
cmp byte [esi + 0x6c5], cl
je 0x40f402
mov edx, dword [esi + 0x6c0]
mov eax, dword [edx + 0x38]
lea edi, [esi + 0x6c0]
mov ecx, edi
call eax
test al, al
jne 0x40f402
mov eax, dword [esi + 0x6c8]
push 1
push 1
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x1a4]
mov ebx, dword [edi]
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x1c0]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x6c5], 0
je 0x40f444
mov edx, dword [esi + 0x6c0]
mov eax, dword [edx + 0x38]
lea edi, [esi + 0x6c0]
mov ecx, edi
call eax
test al, al
jne 0x40f444
mov eax, dword [esi + 0x6c8]
push 1
push 0
dec eax
jmp 0x40f3e2
mov edx, dword [esi]
mov eax, dword [edx + 0x1bc]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx ecx, word [eax + 0x14]
add ecx, 0xfffffff3
cmp ecx, 0x34
ja case.0x40f470.14
movzx ecx, byte [ecx + 0x40f684]
jmp dword [ecx*4 + 0x40f660]
cmp dword [esi + 0x6d4], 0
jle 0x40f657
call fcn.0040f280
mov edx, dword [esi + 0x6c0]
add esi, 0x6c0
mov edi, eax
mov eax, dword [edx + 0x40]
mov ecx, esi
dec edi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 1
mov ecx, esi
test edi, edi
jle 0x40f4b8
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x6d4], 0
jle 0x40f657
call fcn.0040f2d0
mov edx, dword [esi + 0x6c0]
lea edi, [esi + 0x6c0]
mov ebx, eax
mov eax, dword [edx + 0x40]
mov ecx, edi
inc ebx
call eax
mov eax, dword [esi + 0x6e8]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebx + 1]
cmp ecx, eax
push 1
jle 0x40f532
mov edx, dword [esi + 0x550]
mov eax, dword [edx + 0xc]
mov ebx, dword [edi]
lea ecx, [esi + 0x550]
call eax
mov edx, dword [ebx + 0xc]
dec eax
push eax
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x1c4]
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x1c8]
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x1a4]
mov ebx, dword [esi + 0x6c0]
push 1
push 0
lea edi, [esi + 0x6c0]
push 0
mov ecx, esi
call edx
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov edx, dword [esi + 0x550]
mov eax, dword [edx + 0xc]
mov ebx, dword [esi + 0x6c0]
mov dword [esp + 0xc], ecx
lea ecx, [esi + 0x550]
push 1
lea edi, [esi + 0x6c0]
push 1
call eax
mov edx, dword [esp + 0x14]
dec eax
push eax
mov eax, dword [edx + 0x1a4]
mov ecx, esi
call eax
mov edx, dword [ebx + 0xc]
push eax
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x6c8]
cmp eax, 0xffffffff
je 0x40f657
mov edx, dword [esi + 0x550]
lea ecx, [esi + 0x550]
push eax
mov eax, dword [edx]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x6c0]
mov eax, dword [edx + 0x38]
add esi, 0x6c0
mov ecx, esi
call eax
test al, al
je 0x40f657
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x40f657
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
mov ecx, esi
call fcn.0043da10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4