Function at 0x45cec0
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [esp + 0x48]
mov ebx, ecx
push 0x10
mov dword [esi], 1
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
mov eax, dword [esp + 0x40]
setl cl
and eax, 0xffff
cmp eax, 9
je 0x45d14e
cmp eax, 0xd
je 0x45d124
cmp eax, 0x1b
je 0x45d102
mov dword [esi], 0
mov eax, dword [0x546560]
push ebp
mov dword [esp + 0x4c], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
push edi
mov ecx, 0x400
jg 0x45cf2b
cmp dword [eax - 4], ecx
jge 0x45cf74
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x48], esi
jle 0x45cf38
mov ecx, esi
push ecx
lea ecx, [esp + 0x54]
call fcn.00405530
test eax, eax
je 0x45cf74
mov edi, dword [esp + 0x50]
lea ecx, [esi + esi + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x48]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x54]
mov dword [ecx - 8], edx
call fcn.00405590
mov eax, dword [esp + 0x50]
push 0x400
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x50]
call fcn.004055c0
mov ecx, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call ebp
mov edx, dword [esp + 0x50]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x50]
mov word [ecx + eax*2], 0
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push edx
mov esi, eax
call edi
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x4c], eax
call ebp
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
add ecx, 5
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
mov eax, dword [ebx + 4]
push eax
call edi
lea ecx, [esp + 0x30]
push ecx
push eax
call ebp
mov edx, dword [ebx + 4]
push edx
call edi
mov ecx, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_ClientToScreen]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
test eax, eax
je 0x45d05b
mov eax, dword [ebx + 4]
lea edx, [esp + 0x28]
push edx
push eax
call ebp
mov ebp, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x20]
push ecx
push edi
call ebp
test eax, eax
je 0x45d075
lea edx, [esp + 0x28]
push edx
push edi
call ebp
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub edx, ecx
cmp eax, edx
jle 0x45d0b3
mov edx, dword [esp + 0x38]
add eax, ecx
cmp eax, edx
jl 0x45d093
mov eax, edx
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
sub edi, edx
push 1
sub eax, ecx
push edi
push eax
mov eax, dword [ebx + 4]
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x50]
mov ecx, dword [0x546564]
pop edi
pop ebp
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x45d16e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45d16e
mov eax, dword [esp + 0x48]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0x30
ret 0x10
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x30], 1
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10
test ecx, ecx
je 0x45d13b
push 1
mov ecx, ebx
call fcn.0045d6d0
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10
push 0
mov ecx, ebx
call fcn.0045d6d0
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10
test ecx, ecx
je 0x45d165
push 1
mov ecx, ebx
call fcn.0045d720
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10
push 0
mov ecx, ebx
call fcn.0045d720
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret 0x10