Function at 0x4015e0
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 0x40160d
call fcn.0040d520
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x40160d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40163f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x40163f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40163f
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.00401870
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40167a
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4017d8
mov eax, dword [ebp - 8]
push eax
call fcn.0040d4e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x40169b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00401b00
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x428], 0
je 0x401757
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 0x4016ef
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.0041e580
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 0x401734
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.0040d4c0
and eax, 0x80000
je 0x401757
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0040d540
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.0040d480
cmp dword [ebp - 4], 0
je 0x4017bb
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], 0
je 0x4017bb
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 4]
jne 0x4017bb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040d4e0
add esp, 4
mov ecx, dword [ebp - 0x18]
call fcn.0045e950
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x43c]
mov esp, ebp
pop ebp
ret 8