Function at 0x40e54a
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x478f04
call fcn.0045b744
sub esp, 0x20
mov eax, dword [0x49a48c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x49a520
test eax, eax
jne 0x40e695
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov dword [ebp - 0x14], esi
call edi
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
push str.User32.dll
mov dword [0x49b414], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49b420], eax
call fcn.004133c5
test eax, eax
jne 0x40e5de
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x49a548
call fcn.0040f544
mov eax, dword [eax]
mov dword [eax + 0x10], 1
jmp 0x40e662
call fcn.0041a3bf
test eax, eax
jne 0x40e5fd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
jmp 0x40e5c5
call fcn.004194bd
mov ecx, eax
push 0
mov dword [ebp + 8], ecx
call fcn.0041a816
mov ecx, dword [ebp + 8]
push ebx
call fcn.0041ab94
call fcn.004189ef
mov dword [0x491078], eax
call fcn.00419b02
cmp dword [0x491078], 7
jmp 0x40e67e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x40e7c1
mov dword [0x49a558], 1
jmp 0x40e68e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 0x18], esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], 1
call edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
mov ebx, 0x49a480
push eax
mov ecx, ebx
call fcn.0040f439
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x49a484]
jne 0x40e70a
push dword [ebp + 8]
push dword [0x49b414]
push 0x40e38a
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40e75b
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.0040f0ea
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
lea eax, [ebp + 8]
mov ebx, 0x49a538
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0040f439
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x49a53c]
mov dword [ebp - 0x10], eax
jne 0x40e79f
push dword [ebp + 8]
push dword [0x49b414]
push 0x40e175
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40e782
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.0040ec2e
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x40e79f
call edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov ecx, 0x49a548
mov dword [ebp - 0x20], edi
call fcn.0040f544
mov eax, dword [eax]
mov dword [eax + 0x10], 2
jmp 0x40e7b8
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x49a548
call fcn.0040ed5b
mov dword [eax], 3
xor edi, edi
jmp 0x40e7b8
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x49a548
call fcn.0040ed5b
and dword [eax], 0
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10