Function at 0x402202
Capabilities:
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x74], sym.___gxx_personality_sj0
mov dword [ebp - 0x70], 0x47cb60
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x402677
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x88], 0xffffffff
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
mov dword [ebp - 0x88], 2
call sym._timeGetTime_0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 1
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x4e20
mov dword [ebp - 0x3c], 1
jmp 0x402595
mov al, byte [ebp - 0x25]
xor eax, 1
test al, al
je 0x4022c1
mov dword [ebp - 0x88], 2
call sym._timeGetTime_0
mov dword [ebp - 0x20], eax
mov dword [esp], 0
mov dword [ebp - 0x88], 2
call sym._OpenClipboard_4
sub esp, 4
test eax, eax
setne al
test al, al
je 0x402401
mov dword [esp], 1
call sym._GetClipboardData_4
sub esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x4023f2
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.004560d4
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call method.std::string.compare_std::string_const__const
test eax, eax
setne al
test al, al
je 0x4023f2
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call method.std::string.operator_std::string_const_
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 4], str._copied_
mov dword [esp], eax
call method.std::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
lea eax, [ebp - 0x48]
mov dword [esp + 8], str.__copied_
lea edx, [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x88], 3
call method.std::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
sub esp, 4
mov eax, dword [ebp + 8]
lea edx, [eax + 0xc]
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x88], 4
call fcn.004561d4
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x88], 3
call fcn.00456010
lea eax, [ebp - 0x44]
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call fcn.00456010
inc dword [ebp - 0x2c]
mov al, byte [ebp - 0x25]
xor eax, 1
test al, al
je 0x4023f2
cmp dword [ebp - 0x2c], 2
jne 0x4023f2
call sym._timeGetTime_0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x88], 2
call sym._CloseClipboard_0
mov dword [ebp - 0x30], 1
jmp 0x402583
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call sym._GetAsyncKeyState_4
sub esp, 4
cmp ax, 0x8001
sete al
test al, al
je 0x402580
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.TData.GetKeyFromKeyboard_int_
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 0x25]
xor eax, 1
test al, al
je 0x402465
cmp dword [ebp - 0x34], 1
jne 0x402465
call sym._timeGetTime_0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x25], 1
cmp byte [ebp - 0x25], 0
je 0x402580
mov eax, dword [ebp + 8]
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call fcn.004561d4
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esp + 4], 0x480107
mov dword [esp], eax
call method.bool_std::operator_char__std::char_traits_char___std.allocator_char____std::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
test al, al
je 0x4024db
cmp dword [ebp - 0x24], 2
jne 0x4024c5
call sym._timeGetTime_0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 3
jmp 0x402580
cmp dword [ebp - 0x24], 4
jne 0x402580
mov dword [ebp - 0x24], 5
jmp 0x402580
cmp dword [ebp - 0x24], 1
je 0x4024e7
cmp dword [ebp - 0x24], 2
jne 0x402512
mov eax, dword [ebp + 8]
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call fcn.004561d4
mov dword [ebp - 0x24], 2
jmp 0x402580
cmp dword [ebp - 0x24], 3
je 0x40251e
cmp dword [ebp - 0x24], 4
jne 0x402580
mov dword [ebp - 0x88], 2
call sym._timeGetTime_0
sub eax, dword [ebp - 0x1c]
cmp eax, 0xbb8
seta al
test al, al
je 0x402545
mov dword [ebp - 0x24], 5
jmp 0x40256e
mov dword [ebp - 0x24], 4
mov eax, dword [ebp + 8]
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x88], 2
call fcn.004561d4
mov dword [ebp - 0x88], 2
call sym._timeGetTime_0
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xff
setle al
test al, al
jne 0x40240d
mov dword [ebp - 0x88], 2
call sym._timeGetTime_0
mov edx, eax
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
cmp edx, eax
setb al
test al, al
jne 0x4022a5
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov dword [ebp - 0x88], 1
call fcn.00456010
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x88], 0xffffffff
call fcn.00456010
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret