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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5770b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5b5ef4]
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 0x450110
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
js 0x450110
cmp byte [ebx + 0x566], 0
je 0x45034d
cmp byte [ebx + 0x567], 0
je 0x4500e7
push 0x11
call esi
test ax, ax
js 0x4500f4
cmp byte [ebx + 0x567], 0
jne 0x45034d
push 0x11
call esi
test ax, ax
js 0x45034d
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x45037d
push 0
push 0
push 0x2f
push ebx
call fcn.00427160
jmp 0x45037d
cmp byte [ebx + 0x56c], 0
je 0x45034d
cmp dword [edi + 0x18], 0x56
jne 0x45034d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45034d
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.00452470
cmp dword [ebp - 0x18], 0
je 0x4502fc
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 0x4501c3
movzx edi, word [esi]
lea eax, [edi - 0x30]
cmp ax, 9
ja 0x4501be
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 0x450190
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x44]
test esi, esi
jne 0x45024a
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45020d
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4501fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45039b
push edx
push ecx
call fcn.00532e3c
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jb 0x45037d
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45023b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4503a0
push edx
push ecx
call fcn.00532e3c
add esp, 8
jmp 0x45037d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, dword [ebp - 0x40]
test eax, eax
je 0x4502be
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4502b8
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 0x4502b8
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 0x4502f9
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4502ef
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4503a5
push ecx
push edi
call fcn.00532e3c
add esp, 8
mov edi, dword [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x450339
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45032f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4503aa
push edx
push ecx
call fcn.00532e3c
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 0x4503af
mov ecx, dword [ebx + 0x560]
test ecx, ecx
je 0x45037d
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.0053436b
mov esp, ebp
pop ebp
ret 4
call fcn.0055f150
call fcn.0055f150
call fcn.0055f150
call fcn.0055f150
push 0
push edx
push esi
push 0x100
mov ecx, ebx
call edi
jmp 0x45037d