Function at 0x65bd1c
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.0040376c
mov eax, dword [ebp - 4]
call fcn.006581cc
xor edx, edx
push ebp
push 0x65c479
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x65c421
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov byte [ebp - 9], 0
test bl, bl
je 0x65bdde
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408938
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.00657cd4
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x11]
mov dl, byte [0x65c48c]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x65bdd8
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
mov byte [ebp - 9], 0
jmp 0x65be0a
cmp byte [ebp + 0x10], 0
je 0x65be0a
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.0065b60c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x65be0a
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
mov bl, 1
jmp 0x65c3fc
test bl, bl
jne 0x65be1a
call sub.user32.dll_WaitMessage
xor ebx, ebx
jmp 0x65c3db
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x65be34
sub eax, 3
jne 0x65bf1f
lea edx, [ebp - 0x11]
mov eax, dword [esi + 0xc]
call fcn.00408938
lea eax, [ebp - 0x11]
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.0044cfe0
mov edi, eax
mov eax, edi
mov edx, dword [0x653678]
call fcn.00404130
test al, al
je 0x65be7e
mov edx, dword [edi + 0x214]
mov eax, dword [ebp - 4]
call fcn.00658108
test al, al
jne 0x65bf1f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x65beca
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0xc8]
jne 0x65beca
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0044e2a0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x65bed9
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
cmp dword [esi + 4], 0x201
jne 0x65bf1f
push ebp
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.0065b9b0
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
test eax, eax
je 0x65bf10
mov edx, dword [ebp - 4]
cmp byte [edx + 0x88], 0
je 0x65bf10
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x65bf1f
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
push 3
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x65c3db
mov eax, dword [esi + 4]
mov edx, eax
cmp edx, 0x113
jg 0x65bf6a
je 0x65c102
sub edx, 0x4d
je case.0x65c175.512
sub edx, 0x2e
je case.0x65c175.512
add edx, 0xffffff7b
sub edx, 9
jb 0x65bf8a
jmp 0x65c37e
sub edx, 0x118
je case.0x65c175.512
add edx, 0xffffff18
sub edx, 0xb
jb 0x65c15e
jmp 0x65c37e
mov eax, dword [0x7158ac]
mov eax, dword [eax]
call fcn.0046fbc0
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x65bfb8
cmp byte [ebp + 8], 0
je 0x65bfb4
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x65bfb8
xor eax, eax
jmp 0x65bfba
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x65bfdb
sub eax, 2
je 0x65c04b
sub eax, 2
je 0x65bfdb
sub eax, 2
je 0x65c04b
jmp case.0x65c175.512
cmp dword [esi + 8], 0xe5
jne 0x65bfef
mov eax, dword [esi]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x65bfff
cmp dword [esi + 8], 0x70
jne case.0x65c175.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.004660e0
push eax
push ebp
call fcn.0065b994
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.0065ba90
pop ecx
test al, al
je 0x65c035
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
cmp word [ebp - 0x1c], 0
je case.0x65c175.512
push esi
call sub.user32.dll_TranslateMessage
jmp case.0x65c175.512
cmp byte [ebp - 0x1a], 0
jne case.0x65c175.512
push ebp
call fcn.0065b994
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.0065b0b0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x65c0d6
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x65c08f
sub eax, 0xd
jne 0x65c0ca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x65c0ca
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x65c0ca
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x65c0ca
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.0065b5f4
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
push 0
call sub.user32.dll_MessageBeep
jmp case.0x65c175.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.00658c4c
mov eax, dword [ebp - 0x18]
call fcn.0065b770
cmp byte [ebp - 0x19], 0
je case.0x65c175.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.0065b60c
jmp case.0x65c175.512
mov eax, dword [esi]
call fcn.0044b648
mov edi, eax
test edi, edi
je 0x65c153
mov eax, edi
mov edx, dword [0x653678]
call fcn.00404130
test al, al
je 0x65c153
cmp dword [esi + 8], 0x2328
jl 0x65c153
cmp dword [esi + 8], 0x232b
jg 0x65c153
mov eax, dword [edi + 0x214]
test eax, eax
je case.0x65c175.512
mov edx, dword [esi + 8]
sub edx, 0x2328
call fcn.0065bcac
jmp case.0x65c175.512
push esi
call sub.user32.dll_DispatchMessageA
jmp case.0x65c175.512
mov edx, eax
add edx, 0xfffffe00
cmp edx, 0xa
ja case.0x65c175.512
mov dl, byte [edx + 0x65c17c]
jmp dword [edx*4 + 0x65c187]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x71bb4c]
jne 0x65c1b1
mov eax, dword [esi + 0x18]
cmp eax, dword [0x71bb50]
je 0x65c1ca
mov eax, dword [esi + 0x14]
mov dword [0x71bb4c], eax
mov eax, dword [esi + 0x18]
mov dword [0x71bb50], eax
push ebp
call fcn.0065bb2c
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0065ba04
pop ecx
test al, al
je case.0x65c175.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00657cd4
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x38]
jmp case.0x65c175.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0065ba04
pop ecx
test al, al
je case.0x65c175.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00657cd4
mov eax, dword [ebp - 0xd]
push eax
movsx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x40]
jmp case.0x65c175.512
cmp eax, 0x204
setne al
or al, byte [ebp + 8]
je case.0x65c175.512
mov eax, dword [0x7158ac]
mov eax, dword [eax]
call fcn.0046fbc0
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [esi + 0x14]
mov dl, 1
call fcn.0065b9b0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0065ba04
pop ecx
test al, al
je case.0x65c175.512
cmp dword [esi + 4], 0x203
je 0x65c29a
mov al, byte [0x65c48c]
mov byte [ebp - 0x1d], al
jmp 0x65c2a2
mov al, byte [0x65c490]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00657cd4
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x11]
mov dl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408938
mov eax, dword [ebp - 0x48]
mov dword [0x71bb4c], eax
mov eax, dword [ebp - 0x44]
mov dword [0x71bb50], eax
jmp case.0x65c175.512
cmp eax, 0x202
sete al
or al, byte [ebp + 8]
je case.0x65c175.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.0065b9b0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.0065ba04
pop ecx
test al, al
jne 0x65c35c
cmp dword [ebp - 0x18], 0
je 0x65c335
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x65c175.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x65c175.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x65c350
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x65c175.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00657cd4
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp case.0x65c175.512
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x65c39c
call fcn.0040481c
call fcn.0040481c
jmp 0x65c480
cmp dword [0x71bb4c], 0x80000000
jne 0x65c3d4
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408938
mov eax, dword [ebp - 0x48]
mov dword [0x71bb4c], eax
mov eax, dword [ebp - 0x44]
mov dword [0x71bb50], eax
push ebp
call fcn.0065bb2c
pop ecx
push ebp
call fcn.0065bc20
pop ecx
push ebp
call fcn.0065ba78
pop ecx
test al, al
je 0x65c3fc
push 0
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x65be21
push ebp
call fcn.0065ba78
pop ecx
test al, al
jne 0x65be11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65c428
mov eax, dword [ebp - 4]
call fcn.0065b338
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc