Function at 0x4ad590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560fd1
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
mov ebx, 1
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x4ad8ba
test ecx, ecx
jne 0x4ad5e6
cmp dword [ebp + 0x10], ecx
sete al
test al, al
jne 0x4ad8ba
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
sete al
test al, al
jne 0x4ad8ba
mov byte [ebp - 0xd], al
mov eax, dword [esi + 4]
cmp eax, 0x20a
jne 0x4ad853
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edi + 0x4c]
push eax
push ecx
mov dword [ebp - 0x30], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ad660
lea ecx, [ebp - 0x18]
call fcn.00472c00
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], esp
call fcn.00472530
lea esi, [ebp - 0x34]
call fcn.004928f0
add esp, 4
cmp al, 1
jne 0x4ad660
mov bl, al
jmp 0x4ad662
xor bl, bl
mov dword [ebp - 4], 1
test byte [ebp - 0x14], 1
je 0x4ad67e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4ad67e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test bl, bl
je 0x4ad6b6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 1
je 0x4ad6b6
test al, 2
je 0x4ad6b6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebp - 0xd], 1
jmp 0x4ad87a
cmp dword [ebp + 0x10], 0
je 0x4ad87a
cmp word [ebp + 0x14], 0
je 0x4ad87a
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x28], esp
call fcn.00472530
lea esi, [ebp - 0x34]
call fcn.004928f0
add esp, 4
cmp al, 1
jne 0x4ad87a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4ad6fd
push 0x80004003
call fcn.0053c010
call fcn.0046f8f0
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x4ad87a
mov eax, 3
mov word [ebp - 0x48], ax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ad6f3
lea ecx, [ebp - 0x48]
push ecx
lea esi, [ebp - 0x1c]
call fcn.0046f8a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0046ed80
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ad753
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4ad7cb
mov edx, dword [ebp + 0x14]
push 0
push edx
lea esi, [ebp - 0x24]
mov eax, ebx
call fcn.0046fb00
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00473380
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4ad797
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4ad7bb
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
call fcn.00472530
lea esi, [ebp - 0x34]
call fcn.004928f0
add esp, 4
cmp al, 1
je 0x4ad7f0
mov byte [ebp - 4], 7
test edi, edi
je 0x4ad7cb
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4ad7db
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov ecx, dword [ebp - 0x18]
inc ecx
cmp ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
jl 0x4ad712
jmp 0x4ad87a
mov eax, edi
call fcn.0046f5f0
push 0
push 0
mov esi, eax
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 1
je 0x4ad839
test al, 2
je 0x4ad839
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4ad82c
push 0x80004003
call fcn.0053c010
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x4c]
call eax
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 7
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
jmp 0x4ad87a
cmp eax, 0x100
jne 0x4ad87a
cmp dword [esi + 8], 0x41
jne 0x4ad87a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x4ad87a
mov eax, dword [edi + 0x4c]
mov dword [esi], eax
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ad88d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ad8a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
test ecx, ecx
je 0x4ad8ca
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ad8e0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10