Function at 0x40a9e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov esi, eax
call edi
push 0x10
shr eax, 0xf
and al, 1
mov bl, al
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x110], 0
mov byte [esp + 0x14], al
je 0x40aa36
test bl, bl
je 0x40aa36
cmp ebp, 9
jne 0x40aa36
mov eax, dword [esp + 0x14]
push eax
mov eax, esi
call fcn.00434220
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x25
je 0x40aa40
cmp ebp, 0x27
jne 0x40aa71
test al, al
je 0x40aa71
test bl, bl
je 0x40aa71
cmp dword [esi], 0
je 0x40aa71
cmp byte [esp + 0x24], 0
jne 0x40aa71
cmp ebp, 0x27
sete cl
movzx edx, cl
push edx
push esi
call fcn.00409230
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 4], 0
je 0x40addf
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
cmp dword [esi + 4], 0
mov edi, eax
je 0x40aa99
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
jmp 0x40aa9b
xor eax, eax
test eax, eax
setne dl
test bl, bl
je 0x40aaad
cmp ebp, 0x26
jne 0x40aaad
mov cl, 1
jmp 0x40aaaf
xor cl, cl
test dl, dl
jne 0x40aac5
cmp ebp, 0x21
jne 0x40aac1
test bl, bl
jne 0x40aac1
lea eax, [ebp - 0x20]
jmp 0x40aac3
xor eax, eax
or cl, al
test cl, cl
je 0x40ab2b
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetScrollPos]
push 1
push eax
call edi
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x34]
push 0
call eax
fld dword [0x9adb1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40ab07
mov ecx, dword [esi + 0xc]
push 0
push 2
push 0x115
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0xc]
push 1
push edx
call edi
cmp eax, ebx
jne 0x40ab21
mov esi, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x6c]
push 1
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test bl, bl
je 0x40ab38
cmp ebp, 0x28
jne 0x40ab38
mov cl, 1
jmp 0x40ab3a
xor cl, cl
test dl, dl
jne 0x40ab50
cmp ebp, 0x22
jne 0x40ab4c
test bl, bl
jne 0x40ab4c
lea eax, [ebp - 0x21]
jmp 0x40ab4e
xor eax, eax
or cl, al
test cl, cl
je 0x40abb2
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetScrollPos]
push 1
push eax
call edi
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x34]
push 0
call eax
fld dword [0x9adb1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40ab92
mov ecx, dword [esi + 0xc]
push 0
push 3
push 0x115
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0xc]
push 1
push edx
call edi
cmp eax, ebx
jne 0x40aba8
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test dl, dl
je 0x40abe2
mov eax, ebp
call fcn.0040a9a0
test al, al
je 0x40abe2
mov eax, dword [esp + 0x20]
push eax
push ebp
push 0x100
mov eax, esi
call fcn.00401a90
call fcn.00447e40
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x328]
cmp eax, 2
je 0x40addf
cmp eax, 3
je 0x40addf
cmp ebp, 0x26
jne 0x40ac4c
test edi, edi
je 0x40ac36
mov ecx, dword [edi + 0x48]
cmp ecx, dword [edi + 0x50]
jge 0x40ac36
movzx edx, byte [esp + 0x14]
neg edx
sbb edx, edx
and edx, 0x401
mov eax, dword [esi + 0xc]
push 0
push edx
push 0x115
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
push 1
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x28
jne 0x40ac6f
test edi, edi
je 0x40ac97
mov ecx, dword [edi + 0x48]
cmp ecx, dword [edi + 0x50]
jge 0x40ac97
movzx edx, byte [esp + 0x14]
neg edx
sbb edx, edx
and edx, 0x401
inc edx
jmp 0x40ac1a
cmp ebp, 0x21
jne 0x40ac8e
test bl, bl
je 0x40acd5
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
push 0
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x22
jne 0x40acab
test bl, bl
je 0x40acd5
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x24
jne 0x40acc8
test bl, bl
je 0x40acd5
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x23
jne 0x40acd5
test bl, bl
jne 0x40ad75
cmp byte [esp + 0x24], 0
jne 0x40addf
cmp ebp, 0x25
jne 0x40ad1d
test edi, edi
je 0x40ac78
mov edx, dword [edi + 0x4c]
cmp edx, dword [edi + 0x54]
jge 0x40ac78
test bl, bl
jne 0x40ac78
movzx eax, byte [esp + 0x14]
mov ecx, dword [esi + 0xc]
neg eax
push 0
sbb eax, eax
and eax, 2
push eax
push 0x114
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x27
jne 0x40ad67
test edi, edi
je 0x40ac97
mov ecx, dword [edi + 0x4c]
cmp ecx, dword [edi + 0x54]
jge 0x40ac97
test bl, bl
jne 0x40ac97
mov eax, dword [esi + 0xc]
xor edx, edx
cmp byte [esp + 0x14], dl
push 0
setne dl
lea edx, [edx + edx + 1]
push edx
push 0x114
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x24
je 0x40acb4
cmp ebp, 0x23
jne 0x40ada0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x74]
call eax
test al, al
jne 0x40add5
mov ecx, dword [esi + 0xc]
push 0
push 7
push 0x115
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x6a
jne 0x40adbb
test edi, edi
je 0x40addf
lea ecx, [ebp - 0x10]
call fcn.004446e0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp ebp, 0x6f
jne 0x40addf
test edi, edi
je 0x40addf
mov ecx, 0xffffffa6
call fcn.004446e0
mov byte [0x9f43f4], 1
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret