Function at 0x450320
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578580
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5b6ef4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
cmp dword [edi + 0x18], 0xd
jne 0x4503c0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x4503c0
cmp byte [ebx + 0x566], 0
je 0x4505fd
cmp byte [ebx + 0x567], 0
je 0x450397
push 0x11
call esi
test ax, ax
js 0x4503a4
cmp byte [ebx + 0x567], 0
jne 0x4505fd
push 0x11
call esi
test ax, ax
js 0x4505fd
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x45062d
push 0
push 0
push 0x2f
push ebx
call fcn.00427220
jmp 0x45062d
cmp byte [ebx + 0x56c], 0
je 0x4505fd
cmp dword [edi + 0x18], 0x56
jne 0x4505fd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4505fd
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00452720
cmp dword [ebp - 0x18], 0
je 0x4505ac
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae esi, ecx
nop dword [eax + eax]
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
lea eax, [eax + ebx*2]
cmp esi, eax
je 0x450473
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x45046e
push edi
lea ecx, [ebp - 0x40]
call fcn.00404f30
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add esi, 2
jmp 0x450440
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x44]
test esi, esi
jne 0x4504fa
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4504bd
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4504ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45064b
push edx
push ecx
call fcn.005342bc
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x45062d
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4504eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450650
push edx
push ecx
call fcn.005342bc
add esp, 8
jmp 0x45062d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, dword [ebp - 0x40]
test eax, eax
je 0x45056e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x450568
lea eax, [esi + esi]
mov dword [ebp - 0x44], eax
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x450568
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x44]
cmovae ecx, edi
mov esi, eax
push ecx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x44]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4505a9
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x45059f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450655
push ecx
push edi
call fcn.005342bc
add esp, 8
mov edi, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4505e9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4505df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45065a
push edx
push ecx
call fcn.005342bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebx]
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov edi, dword [eax + 0x20c]
cmp eax, vtable.ui::RichEdit.0
jne 0x45065f
mov ecx, dword [ebx + 0x560]
test ecx, ecx
je 0x45062d
mov ecx, dword [ecx + 0xc]
push 0
push edx
push esi
mov eax, dword [ecx]
push 0x100
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005357eb
mov esp, ebp
pop ebp
ret 4
call fcn.00560610
call fcn.00560610
call fcn.00560610
call fcn.00560610
push 0
push edx
push esi
push 0x100
mov ecx, ebx
call edi
jmp 0x45062d