Function at 0x487de0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x487e0d
call fcn.0044ff90
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x487e0d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x487e3f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x487e3f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x487e3f
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x438], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00488b80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x487e7a
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x487fd8
mov eax, dword [ebp - 8]
push eax
call fcn.0044ff50
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x487e9b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004538b0
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x428], 0
je 0x487f57
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x487eef
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 5
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0047c780
push 0x43
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
je 0x487f34
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0047c740
and eax, 0x80000
je 0x487f57
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0045cf70
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x2c]
call edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x438], 0
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0045cfa0
cmp dword [ebp - 4], 0
je 0x487fbb
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], 0
je 0x487fbb
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 4]
jne 0x487fbb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044ff50
add esp, 4
mov ecx, dword [ebp - 0x18]
call fcn.0045d560
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x43c]
mov esp, ebp
pop ebp
ret 8