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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.004034fc
mov eax, dword [ebp - 4]
call fcn.004be3d8
xor edx, edx
push ebp
push 0x4c286f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4c2817
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 0x4c2017
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004087d8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.004bde84
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x12]
mov dl, byte [0x4c2880]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4c2011
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
mov byte [ebp - 9], 0
jmp 0x4c2043
cmp byte [ebp + 0x10], 0
je 0x4c2043
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004c1834
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4c2043
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
xor edx, edx
push ebp
push 0x4c20c3
push dword fs:[edx]
mov dword fs:[edx], esp
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
je 0x4c20b9
cmp dword [ebp - 0x20], 0
je 0x4c20b9
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x1c], 0
je 0x4c20b9
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0xb0]
cmp eax, 0x35d5
je 0x4c2092
cmp eax, 0x35d6
je 0x4c2092
cmp eax, 0x35d7
jne 0x4c20b9
mov al, byte [ebp - 9]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c20cd
mov byte [ebp - 0xa], 1
jmp 0x4c27f2
cmp byte [ebp - 0xa], 0
jne 0x4c20e1
call sub.user32.dll_WaitMessage
mov byte [ebp - 0xa], 0
jmp 0x4c27ce
mov eax, dword [ebp - 0x38]
sub eax, 0x201
je 0x4c20fd
sub eax, 3
jne 0x4c21e9
lea edx, [ebp - 0x12]
mov eax, dword [ebp - 0x30]
call fcn.004087d8
lea eax, [ebp - 0x12]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.0044db74
mov ebx, eax
mov eax, ebx
mov edx, dword [0x4b9aec]
call fcn.00403eb4
test al, al
je 0x4c2148
mov edx, dword [ebx + 0x214]
mov eax, dword [ebp - 4]
call fcn.004be314
test al, al
jne 0x4c21e9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4c2194
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0xc8]
jne 0x4c2194
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x12]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0044ee34
push dword [ebp - 0x40]
push dword [ebp - 0x44]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x58]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x4c21a3
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
cmp dword [ebp - 0x38], 0x201
jne 0x4c21e9
push ebp
lea eax, [ebp - 0x12]
mov dl, 1
call fcn.004c1bd8
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
test eax, eax
je 0x4c21da
mov edx, dword [ebp - 4]
cmp byte [edx + 0x88], 0
je 0x4c21da
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x4c21e9
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4c27ce
mov eax, dword [ebp - 0x38]
mov edx, eax
cmp edx, 0x113
jg 0x4c2237
je 0x4c23d0
sub edx, 0x4d
je case.0x4c2447.512
sub edx, 0x2e
je case.0x4c2447.512
add edx, 0xffffff7b
sub edx, 9
jb 0x4c2257
jmp 0x4c276e
sub edx, 0x118
je case.0x4c2447.512
add edx, 0xffffff18
sub edx, 0xb
jb 0x4c2430
jmp 0x4c276e
mov eax, dword [0x8a9c8c]
mov eax, dword [eax]
call fcn.004720f4
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4c2285
cmp byte [ebp + 8], 0
je 0x4c2281
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4c2285
xor ebx, ebx
jmp 0x4c2287
mov bl, 1
mov eax, dword [ebp - 0x38]
sub eax, 0x100
je 0x4c22a9
sub eax, 2
je 0x4c231b
sub eax, 2
je 0x4c22a9
sub eax, 2
je 0x4c231b
jmp case.0x4c2447.512
cmp dword [ebp - 0x34], 0xe5
jne 0x4c22be
mov eax, dword [ebp - 0x3c]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [ebp - 0x34], eax
test bl, bl
je 0x4c22cc
cmp dword [ebp - 0x34], 0x70
jne case.0x4c2447.512
mov ax, word [ebp - 0x34]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [ebp - 0x30]
call fcn.00468240
push eax
push ebp
call fcn.004c1bbc
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004c1cb8
pop ecx
test al, al
je 0x4c2302
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
cmp word [ebp - 0x1c], 0
je case.0x4c2447.512
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_TranslateMessage
jmp case.0x4c2447.512
test bl, bl
jne case.0x4c2447.512
push ebp
call fcn.004c1bbc
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.004c12d8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4c23a4
mov eax, dword [ebp - 0x34]
sub eax, 0x20
je 0x4c235d
sub eax, 0xd
jne 0x4c2398
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4c2398
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x4c2398
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x4c2398
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.004c181c
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
push 0
call sub.user32.dll_MessageBeep
jmp case.0x4c2447.512
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.004bee58
mov eax, dword [ebp - 0x18]
call fcn.004c1998
cmp byte [ebp - 0x19], 0
je case.0x4c2447.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004c1834
jmp case.0x4c2447.512
mov eax, dword [ebp - 0x3c]
call fcn.0044c1dc
mov ebx, eax
test ebx, ebx
je 0x4c2422
mov eax, ebx
mov edx, dword [0x4b9aec]
call fcn.00403eb4
test al, al
je 0x4c2422
cmp dword [ebp - 0x34], 0x2328
jl 0x4c2422
cmp dword [ebp - 0x34], 0x232b
jg 0x4c2422
mov eax, dword [ebx + 0x214]
test eax, eax
je case.0x4c2447.512
mov edx, dword [ebp - 0x34]
sub edx, 0x2328
call fcn.004c1ee8
jmp case.0x4c2447.512
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_DispatchMessageA
jmp case.0x4c2447.512
mov edx, eax
add edx, 0xfffffe00
cmp edx, 0xa
ja case.0x4c2447.512
mov dl, byte [edx + 0x4c244e]
jmp dword [edx*4 + 0x4c2459]
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x8ae2ec]
jne 0x4c2483
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x8ae2f0]
je 0x4c249c
mov eax, dword [ebp - 0x28]
mov dword [0x8ae2ec], eax
mov eax, dword [ebp - 0x24]
mov dword [0x8ae2f0], eax
push ebp
call fcn.004c1d54
pop ecx
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
je case.0x4c2447.512
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.004bde84
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp case.0x4c2447.512
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
je case.0x4c2447.512
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.004bde84
mov eax, dword [ebp - 0xe]
push eax
movsx edx, word [ebp - 0x32]
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp case.0x4c2447.512
cmp eax, 0x204
setne al
or al, byte [ebp + 8]
je case.0x4c2447.512
mov eax, dword [0x8a9c8c]
mov eax, dword [eax]
call fcn.004720f4
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [ebp - 0x28]
mov dl, 1
call fcn.004c1bd8
pop ecx
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
je case.0x4c2447.512
cmp dword [ebp - 0x38], 0x203
je 0x4c256a
mov bl, byte [0x4c2880]
jmp 0x4c2570
mov bl, byte [0x4c2884]
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.004bde84
mov eax, dword [ebp - 0xe]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x12]
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004087d8
mov eax, dword [ebp - 0x44]
mov dword [0x8ae2ec], eax
mov eax, dword [ebp - 0x40]
mov dword [0x8ae2f0], eax
jmp case.0x4c2447.512
cmp eax, 0x202
sete al
or al, byte [ebp + 8]
je 0x4c2659
push ebp
lea eax, [ebp - 0x28]
xor edx, edx
call fcn.004c1bd8
pop ecx
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
jne 0x4c2634
cmp dword [ebp - 0x18], 0
je 0x4c260a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x4c2447.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4c2447.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x4c2625
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4c2447.512
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.004bde84
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xe]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp case.0x4c2447.512
xor eax, eax
push ebp
push 0x4c2762
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.004c1c2c
pop ecx
test al, al
je 0x4c2758
cmp dword [ebp - 0x20], 0
je 0x4c2758
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1c], 0
je 0x4c2758
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0xb0], 0x35d5
jne 0x4c2758
cmp dword [ebp - 0x18], 0
je 0x4c2758
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc8], 0
je 0x4c2758
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc8]
call fcn.00455b24
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4c2758
lea ecx, [ebp - 0x12]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc8]
call fcn.0044ee34
mov dx, word [ebp - 0xe]
mov ax, word [ebp - 0x12]
call fcn.0040880c
push eax
push 1
push 0x204
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc8]
call fcn.00455b24
push eax
call sub.user32.dll_PostMessageA
mov dx, word [ebp - 0xe]
mov ax, word [ebp - 0x12]
call fcn.0040880c
push eax
push 0
push 0x205
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc8]
call fcn.00455b24
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp case.0x4c2447.512
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4c278f
call fcn.004045a0
call fcn.004045a0
jmp 0x4c2876
cmp dword [0x8ae2ec], 0x80000000
jne 0x4c27c7
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004087d8
mov eax, dword [ebp - 0x44]
mov dword [0x8ae2ec], eax
mov eax, dword [ebp - 0x40]
mov dword [0x8ae2f0], eax
push ebp
call fcn.004c1d54
pop ecx
push ebp
call fcn.004c1e48
pop ecx
push ebp
call fcn.004c1ca0
pop ecx
test al, al
je 0x4c27f2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4c20ea
push ebp
call fcn.004c1ca0
pop ecx
test al, al
jne 0x4c20d6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c281e
mov eax, dword [ebp - 4]
call fcn.004c1560
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc