Function at 0x4e7ed0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
call fcn.00405a20
lea eax, [ebp - 0x4c]
mov edx, dword [0x4dc4f8]
call fcn.00405a40
xor eax, eax
push ebp
push 0x4e83dd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x4e7f28
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004e7dd4
jmp 0x4e839c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e62e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4e839c
cmp dword [ebp + 8], 0
je 0x4e7f9c
cmp dword [ebp + 0x10], 0
jg 0x4e7f5a
mov dword [ebp + 0x10], 1
cmp dword [ebp + 0xc], 0
je 0x4e7f67
mov dword [ebp + 0xc], 1
add dword [ebp + 0xc], 1
jno 0x4e7f72
call fcn.00403bec
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
add eax, 0x500
push eax
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004f8960
jmp 0x4e839c
push 4
call sub.kernel32.dll_Sleep_2
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.00520b78
mov ecx, 0x1f40
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004f2694
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4e7fdf
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4e7fe7
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jne 0x4e8040
cmp dword [ebp + 0x10], 0
jle 0x4e802d
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004e72c4
mov dword [ebp - 0x30], eax
jmp 0x4e8096
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x30], eax
jmp 0x4e8096
cmp dword [ebp + 0x10], 0
jle 0x4e8063
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x20000
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004e72c4
mov dword [ebp - 0x30], eax
jmp 0x4e8096
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4e8096
mov eax, dword [ebp - 0x2c]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetFocus
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.user32.dll_AttachThreadInput
cmp dword [ebp - 0x34], 0
je 0x4e80ab
mov eax, dword [0x550240]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.0054033c
cmp dword [ebp - 0x30], 0
je 0x4e839c
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004e34e4
mov edx, dword [ebp - 0x18]
mov eax, 0x4e83f0
call fcn.0040598c
test eax, eax
jle 0x4e80fa
xor eax, eax
mov dword [ebp + 0xc], eax
push 0x60006
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004e8c24
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00520b78
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00520b78
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4e81b7
cmp dword [ebp + 0xc], 0
jne 0x4e8186
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x4e8410
mov edx, 0x4e8418
mov eax, dword [ebp - 0xc]
call fcn.004af72c
mov eax, dword [ebp - 0x1c]
call fcn.0040566c
test eax, eax
jle 0x4e8324
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], 1
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
dec eax
test edx, edx
je 0x4e815f
cmp eax, dword [edx - 4]
jb 0x4e8164
call fcn.00403be4
inc eax
movzx eax, word [edx + eax*2 - 2]
push eax
push 0x102
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageW
inc dword [ebp - 0x10]
dec dword [ebp - 0x38]
jne 0x4e814d
jmp 0x4e8324
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.004054e4
lea eax, [ebp - 0x28]
push eax
push 0x3e8
push 2
mov eax, dword [ebp - 0x1c]
call fcn.0040565c
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SendMessageTimeoutW
jmp 0x4e8324
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404efc
cmp dword [ebp + 0xc], 0
jne 0x4e8303
push 0
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4e8428
mov edx, 0x4e8434
mov eax, dword [ebp - 0x14]
call fcn.004af6e0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
call fcn.00404cf0
mov dword [ebp - 0x10], 1
jmp 0x4e82e3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0040f1c0
cmp al, 1
jne 0x4e8282
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4e821c
cmp eax, dword [edx - 4]
jb 0x4e8221
call fcn.00403be4
inc eax
movzx eax, byte [edx + eax - 1]
mov edx, pe_nt_image_headers32
mul edx
jno 0x4e8235
call fcn.00403bec
mov edx, dword [ebp - 0x10]
add edx, 1
jno 0x4e8242
call fcn.00403bec
mov ecx, dword [ebp - 0x14]
dec edx
test ecx, ecx
je 0x4e824f
cmp edx, dword [ecx - 4]
jb 0x4e8254
call fcn.00403be4
inc edx
movzx edx, byte [ecx + edx - 1]
add eax, edx
jno 0x4e8263
call fcn.00403bec
movzx eax, ax
push eax
push 0x286
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
add dword [ebp - 0x10], 1
jno 0x4e8280
call fcn.00403bec
jmp 0x4e82d8
push 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4e8294
cmp eax, dword [edx - 4]
jb 0x4e8299
call fcn.00403be4
inc eax
movzx eax, byte [edx + eax - 1]
push eax
push 0x286
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
dec eax
test edx, edx
je 0x4e82be
cmp eax, dword [edx - 4]
jb 0x4e82c3
call fcn.00403be4
inc eax
cmp byte [edx + eax - 1], 0xd
jne 0x4e82d8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00520b78
add dword [ebp - 0x10], 1
jno 0x4e82e3
call fcn.00403bec
mov eax, dword [ebp - 0x14]
call fcn.00404f34
cmp eax, dword [ebp - 0x10]
jge 0x4e81fb
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00520b78
jmp 0x4e8324
lea eax, [ebp - 0x28]
push eax
push 0x3e8
push 2
mov eax, dword [ebp - 0x14]
call fcn.00405138
push eax
push 0
push 0xc
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_SendMessageTimeoutA
push 0
push 0xffffffffffffffff
push 0xb9
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 0x2c]
jne 0x4e8352
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004e8d48
jmp 0x4e837c
push 0x752f752f
push 0
push 0x201
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
push 0x752f752f
push 0
push 0x202
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_PostMessageA
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00520b78
cmp dword [ebp + 0xc], 0
jne 0x4e839c
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00520b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e83e4
lea eax, [ebp - 0x50]
call fcn.00404c58
lea eax, [ebp - 0x4c]
mov edx, dword [0x4dc4f8]
call fcn.00405b10
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405498
lea eax, [ebp - 0x14]
call fcn.00404c58
lea eax, [ebp - 0xc]
call fcn.00405480
ret