Function at 0x4c6a30
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x4c6a6b
mov eax, dword [0x641c50]
test eax, eax
je 0x4c6a5c
mov ebx, dword [eax + 4]
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x4c6a6b
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x4c6a90
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x4c6a90
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4c6a90
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0xc]
mov ecx, edi
push esi
push ebx
mov dword [edi + 0x2fc], 0
call fcn.004c64b0
mov ebx, eax
test ebx, ebx
jne 0x4c6ac3
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [ebp + 8]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x641c50]
mov dword [ebp - 8], 0
test eax, eax
je 0x4c6adc
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [eax + 4], ebx
test esi, esi
jne 0x4c6aeb
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0044d0b0
cmp dword [edi + 0x2f8], 0
je 0x4c6b63
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 0
push 0x2001
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x4c6b5c
push 1
push esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp - 0xc]
push eax
call esi
jmp 0x4c6b63
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
lea esp, [esp]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4c6b90
cmp dword [ebp - 0x24], 0x12
je 0x4c6c70
cmp dword [edi + 0x2fc], 0
jne 0x4c6c70
mov eax, dword [edi + 4]
test eax, eax
je 0x4c6c70
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c6c70
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4c6b70
test eax, eax
je 0x4c6c70
mov eax, dword [ebp - 0x24]
cmp eax, 0x100
jb 0x4c6be5
cmp eax, 0x109
jbe 0x4c6bef
add eax, 0xfffffe00
cmp eax, 0xe
ja 0x4c6c57
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4c6c23
cmp esi, dword [edi + 0x30]
je 0x4c6c23
cmp esi, dword [edi + 4]
je 0x4c6c23
test esi, esi
je 0x4c6c42
push esi
call ebx
cmp dword [edi + 0x30], eax
je 0x4c6c27
mov esi, eax
test eax, eax
jne 0x4c6c13
jmp 0x4c6c42
test esi, esi
je 0x4c6c42
lea eax, [ebp - 0x28]
push eax
push 0
push 0x37f
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x4c6b70
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4c6b70
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4c6b70
push 0x97
push 0
push 0
push 0
push 0
push 0
mov dword [edi + 0x2fc], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 4], 0
je 0x4c6cbb
mov ebx, dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push ebx
call eax
test ebx, ebx
je 0x4c6cbb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 4]
jne 0x4c6cbb
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x641c50]
test eax, eax
je 0x4c6cca
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8