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

Disassembly:
push 0xffffffffffffffff
push 0x611be9
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x6eff0c]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6eff0c]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov edi, dword [esp + 0x478]
fld dword [esp + 0x468]
mov ebp, dword [esp + 0x470]
fadd qword [0x6c2f60]
mov eax, ebp
mov dword [esp + 0x34], 0xff000000
xor ecx, ecx
fstp dword [esp + 0x468]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404210
sub eax, esi
je 0x40423d
mov bl, 0x2a
lea ecx, [ecx]
mov eax, ebp
mov byte [esp + ecx + 0x54], bl
inc ecx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404230
sub eax, esi
cmp ecx, eax
jb 0x404220
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404242
sub eax, edx
mov byte [esp + eax + 0x54], cl
lea esi, [esp + 0x54]
cmp edi, 1
je 0x40425a
mov esi, ebp
mov ecx, dword [0x8d6a88]
dec edi
neg edi
sbb edi, edi
and edi, 0xfffffffc
add edi, 4
mov dword [esp + 0x1c], edi
fild dword [esp + 0x1c]
push esi
push 0x6b6204
fadd dword [esp + 0x474]
lea eax, [esp + 0x3c]
push eax
sub esp, 8
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esp + 0x47c]
fstp dword [esp]
push ecx
call fcn.005c2460
add esp, 0x18
cmp byte [esp + 0x474], 0
je 0x404694
test byte [0x8e5ab8], 1
jne 0x4042e9
or dword [0x8e5ab8], 1
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
test eax, eax
jge 0x4042dd
fadd dword [0x6c2e70]
fdiv qword [0x6c2f38]
fstp dword [0x8e5ab4]
mov ebx, 2
test byte [0x8e5ab8], bl
jne 0x40431d
or dword [0x8e5ab8], ebx
mov dword [esp + 0x460], 0
call fcn.005b8a00
fstp dword [0x8e5ab0]
mov dword [esp + 0x460], 0xffffffff
call fcn.005b8a00
fld dword [0x8e5ab0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x404352
fadd dword [0x8e5ab4]
xor edx, edx
cmp dword [0x8e508c], edx
sete dl
fstp dword [0x8e5ab0]
mov dword [0x8e508c], edx
jmp 0x404354
fstp st(0)
push esi
lea eax, [esp + 0x258]
push 0x6c0258
push eax
call fcn.00406ca0
mov edi, dword [0x8d6a88]
lea ecx, [esp + 0x260]
add esp, 0xc
push ecx
call fcn.00403f10
mov edi, dword [0x8d6a88]
add esp, 4
push 0x6c025c
mov esi, eax
mov dword [esp + 0x28], edx
call fcn.00403f10
add esp, 4
cmp dword [0x8e508c], 0
mov dword [esp + 0x24], edx
je 0x404407
fld dword [0x6c2f5c]
push 0
push 0
lea edx, [esp + 0x24]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
sub esi, eax
fld1
mov dword [esp + 0x38], 0xff000000
fstp dword [esp + 8]
fld dword [esp + 0x488]
fadd qword [0x6c2e98]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
mov dword [esp + 0x34], esi
fstp dword [esp + 4]
fild dword [esp + 0x34]
fadd dword [esp + 0x484]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.005c66e0
add esp, 0x1c
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [0x8318d0]
jne 0x4044e4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x56
call esi
test al, al
jns 0x4044e4
cmp byte [0x8e5090], 0
jne 0x4044e4
push 0x11
mov byte [0x8e5090], 1
call esi
test al, al
jns 0x4044eb
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4044eb
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4044d5
push eax
lea ecx, [esp + 0x3c]
call fcn.004071b0
lea esi, [esp + 0x38]
mov dword [esp + 0x460], 1
call fcn.004040a0
mov esi, eax
call fcn.00403fa0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.00406df0
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x4044b2
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x47c]
test edx, edx
je 0x4044cc
cmp edx, 0x7fffffff
ja 0x4044cc
mov ecx, ebp
call fcn.00402810
lea ecx, [esp + 0x38]
call fcn.004071f0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4044eb
mov byte [0x8e5090], 0
mov eax, dword [0x82cf40]
mov ecx, dword [0x82cf44]
cmp eax, ecx
je 0x404694
mov edx, dword [0x82cf44]
mov esi, dword [edx]
add dword [0x82cf44], 4
mov eax, dword [0x82cf44]
cmp eax, 0x8d65a8
jb 0x404523
mov dword [0x82cf44], 0x8d6528
test esi, esi
je 0x404694
cmp esi, 8
jne 0x40454d
cmp byte [ebp], 0
je 0x40454d
mov eax, ebp
lea edx, [eax + 1]
jmp 0x404540
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404540
sub eax, edx
mov byte [eax + ebp - 1], cl
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404552
sub eax, edx
cmp eax, dword [esp + 0x47c]
jae 0x404694
cmp dword [esp + 0x478], ebx
jne 0x404698
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404580
sub eax, edx
cmp eax, 0x13
jge 0x404694
cmp eax, 4
je 0x404667
cmp eax, 9
je 0x404667
cmp eax, 0xe
je 0x404667
cmp esi, 0x30
jl 0x4045e9
cmp esi, 0x39
jg 0x4045e9
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045c0
push esi
sub eax, edx
lea ecx, [esp + 0x1c]
add eax, ebp
push 0x6c0260
push ecx
mov dword [esp + 0x24], eax
call fcn.0040e850
add esp, 0xc
xor eax, eax
jmp 0x4046d4
cmp esi, 0x61
jl 0x404624
cmp esi, 0x7a
jg 0x404624
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045f8
add esi, 0xffffffe0
sub eax, edx
push esi
lea edx, [esp + 0x30]
add eax, ebp
push 0x6c0260
push edx
mov dword [esp + 0x38], eax
call fcn.0040e850
add esp, 0xc
xor eax, eax
jmp 0x4046d4
cmp esi, 0x41
jl 0x404659
cmp esi, 0x5a
jg 0x404659
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404633
sub eax, edx
add eax, ebp
push esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 0x6c0260
push eax
call fcn.0040e850
add esp, 0xc
xor eax, eax
jmp 0x4046d4
cmp esi, 9
je 0x4046d2
cmp esi, 0xd
je 0x4046d2
xor eax, eax
jmp 0x4046d4
cmp esi, 0x2d
jne 0x404694
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404671
push 0x2d
sub eax, edx
lea ecx, [esp + 0x34]
add eax, ebp
push 0x6c0260
push ecx
mov dword [esp + 0x3c], eax
call fcn.0040e850
add esp, 0xc
xor eax, eax
jmp 0x4046d4
cmp esi, 0x20
jl 0x4046d2
cmp esi, 0x80
jge 0x4046d2
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046b0
sub eax, edx
push esi
lea edx, [esp + 0x24]
add eax, ebp
push 0x6c0260
push edx
mov dword [esp + 0x2c], eax
call fcn.0040e850
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.005de867
add esp, 0x450
ret