Function at 0x42218c
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x493fa4
call fcn.00411508
sub esp, 0x20
mov eax, dword [0x4bbeac]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp eax, ebx
mov esi, 0x4bbf40
jne 0x4222e0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov dword [ebp - 0x14], esi
call edi
mov eax, dword [ebp + 8]
push str.User32.dll
mov dword [ebp - 4], ebx
mov dword [0x4bce34], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetLayeredWindowAttributes
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bce40], eax
call fcn.004285b8
test eax, eax
jne 0x42221f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4bbf68
call fcn.0042422f
mov eax, dword [eax]
mov dword [eax + 0x10], 1
jmp 0x4222ae
call fcn.0042eb01
test eax, eax
jne 0x42223d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
jmp 0x422206
call fcn.0042e351
mov ecx, eax
push ebx
mov dword [ebp - 0x10], ecx
call fcn.0042ef5c
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.0042f364
call fcn.0042d854
cmp eax, ebx
mov dword [0x4b751c], eax
jl 0x42226b
cmp eax, 3
jle 0x422275
call fcn.0042e738
mov eax, dword [0x4b751c]
cmp eax, 7
jmp 0x4222c9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x42240c
mov dword [0x4bbf78], 1
jmp 0x4222d9
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, 0x4bbea0
push eax
mov ecx, ebx
call fcn.00424124
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4bbea4]
jne 0x422355
push dword [ebp + 8]
push dword [0x4bce34]
push 0x421fcc
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4223a6
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.00423dd3
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
lea eax, [ebp + 8]
mov ebx, 0x4bbf58
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00424124
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4bbf5c]
mov dword [ebp - 0x10], eax
jne 0x4223ea
push dword [ebp + 8]
push dword [0x4bce34]
push 0x421db7
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4223cd
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004238c0
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x4223ea
call edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov ecx, 0x4bbf68
mov dword [ebp - 0x20], edi
call fcn.0042422f
mov eax, dword [eax]
mov dword [eax + 0x10], 2
jmp 0x422403
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4bbf68
call fcn.00423a1a
mov dword [eax], 3
xor edi, edi
jmp 0x422403
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4bbf68
call fcn.00423a1a
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