Function at 0x4a2650
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x44]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_BeginPaint]
lea edx, [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 4]
push edx
push eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x88]
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.004a0da0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x98]
push eax
push ecx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
test eax, eax
jne 0x4a2711
lea ecx, [ebp - 0xb8]
call fcn.004a0e30
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [ebp - 0xb8]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [ebp - 0x78], eax
lea eax, [edi + 0x54]
push eax
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4a279d
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a279d
mov ecx, dword [ebp - 0x50]
mov edx, dword [edi + 4]
push 1
lea eax, [ebp - 0x60]
push eax
push ecx
push edx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x60]
push eax
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_OffsetWindowOrgEx]
mov eax, dword [ebp - 0x50]
push ebx
push esi
push 0xf
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
push ebx
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [ebp - 0x6c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [edi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x54], eax
cmp dword [edi + 0x3c], ebx
je 0x4a2940
mov ecx, dword [ebp - 0x70]
and eax, 3
cmp al, 3
mov eax, dword [ebp - 0x6c]
push eax
push ecx
lea edx, [ebp - 0x88]
je 0x4a27f0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
cmp eax, ebx
je 0x4a2940
xor eax, eax
cmp dword [edi + 0x40], ebx
mov dword [ebp - 0x74], 1
setne al
inc eax
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x4a2820
mov ebx, 1
mov ecx, dword [ebp - 0x54]
and ecx, 3
mov dword [ebp - 0x50], ebx
cmp cl, 3
jne 0x4a2928
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4a2928
mov ecx, dword [edi + 0x64]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x44]
push 0
push 0
push 0x52a4dc
lea ebx, [edi + 0x44]
push ebx
push 2
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [edi + 4]
push 0
push 0
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x4a2925
mov eax, dword [0x5427f0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5427f0
call edx
mov ecx, dword [ebp - 0x5c]
add eax, 0x10
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push ecx
lea ecx, [edi + 4]
call fcn.004a1630
mov edx, dword [ebp - 0x54]
cmp dword [edx - 0xc], 0
je 0x4a291d
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
push 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0xc]
push 1
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [edi + 0x70]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x68]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax - 0xc]
push 0x824
lea ecx, [ebp - 0x68]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
lea ecx, [ebp - 0x54]
call fcn.00492ef0
mov ebx, dword [ebp - 0x50]
cmp dword [edi + 0x34], 0
je 0x4a2964
mov edi, dword [edi + 0x6c]
test edi, edi
je 0x4a2964
test ebx, ebx
je 0x4a2948
mov eax, 3
jmp 0x4a2951
mov dword [ebp - 0x74], ebx
jmp 0x4a2820
xor eax, eax
cmp dword [ebp - 0x74], eax
setne al
inc eax
mov ecx, dword [ebp - 0x58]
push 0
push ecx
push eax
push 1
push esi
push edi
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x4a297f
mov edx, dword [ebp - 0x58]
neg ebx
sbb ebx, ebx
and ebx, 0x4200
or ebx, 1
push ebx
push 3
push edx
push esi
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [ebp - 0x78]
push eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
lea ecx, [ebp - 0xb8]
call fcn.004a0e30
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4