Function at 0x4080ea
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x47f804
call fcn.004513c4
sub esp, 0x20
mov eax, dword [0x4a089c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4a0930
test eax, eax
jne 0x408235
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 [0x4a1824], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a1830], eax
call fcn.0040d24c
test eax, eax
jne 0x40817e
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, 0x4a0958
call fcn.004091de
mov eax, dword [eax]
mov dword [eax + 0x10], 1
jmp 0x408202
call fcn.0041429f
test eax, eax
jne 0x40819d
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 0x408165
call fcn.0041339d
mov ecx, eax
push 0
mov dword [ebp + 8], ecx
call fcn.004146f6
mov ecx, dword [ebp + 8]
push ebx
call fcn.00414a74
call fcn.004128cf
mov dword [0x49bb98], eax
call fcn.004139e2
cmp dword [0x49bb98], 7
jmp 0x40821e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x408361
mov dword [0x4a0968], 1
jmp 0x40822e
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, 0x4a0890
push eax
mov ecx, ebx
call fcn.004090d3
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4a0894]
jne 0x4082aa
push dword [ebp + 8]
push dword [0x4a1824]
push 0x407f2a
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4082fb
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.00408d84
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
lea eax, [ebp + 8]
mov ebx, 0x4a0948
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.004090d3
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4a094c]
mov dword [ebp - 0x10], eax
jne 0x40833f
push dword [ebp + 8]
push dword [0x4a1824]
push 0x407d15
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x408322
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.00408890
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x40833f
call edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov ecx, 0x4a0958
mov dword [ebp - 0x20], edi
call fcn.004091de
mov eax, dword [eax]
mov dword [eax + 0x10], 2
jmp 0x408358
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4a0958
call fcn.004089bd
mov dword [eax], 3
xor edi, edi
jmp 0x408358
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4a0958
call fcn.004089bd
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