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

Disassembly:
push 0xffffffffffffffff
push 0x5dd6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x6ade1c]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebp
push esi
push edi
mov eax, dword [0x6ade1c]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
fld dword [esp + 0x454]
mov ebp, dword [esp + 0x45c]
fadd qword [0x682378]
or edi, 0xffffffff
mov eax, ebp
mov dword [esp + 0x1c], edi
fstp dword [esp + 0x454]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041d3
sub eax, esi
je 0x4041fd
mov edi, edi
mov eax, ebp
mov byte [esp + ecx + 0x3c], 0x2a
inc ecx
lea esi, [eax + 1]
jmp 0x4041f0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041f0
sub eax, esi
cmp ecx, eax
jb 0x4041e0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404202
fld dword [esp + 0x458]
sub eax, edx
fadd qword [0x682370]
push ebp
mov byte [esp + eax + 0x40], cl
mov ecx, dword [0x759d64]
push 0x6806d0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x468]
fstp dword [esp]
push ecx
call fcn.00571c20
add esp, 0x18
cmp byte [esp + 0x460], 0
jne 0x404260
xor eax, eax
jmp 0x404544
test byte [0x75b970], 1
jne 0x404294
or dword [0x75b970], 1
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
test eax, eax
jge 0x404288
fadd dword [0x6822e4]
fdiv qword [0x682368]
fstp dword [0x75b96c]
mov eax, 2
test byte [0x75b970], al
jne 0x4042c4
or dword [0x75b970], eax
mov dword [esp + 0x44c], 0
call fcn.005680d0
fstp dword [0x75b968]
mov dword [esp + 0x44c], edi
call fcn.005680d0
fld dword [0x75b968]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4042f9
fadd dword [0x75b96c]
xor edx, edx
cmp dword [0x75b750], edx
sete dl
fstp dword [0x75b968]
mov dword [0x75b750], edx
jmp 0x4042fb
fstp st(0)
push ebp
lea eax, [esp + 0x240]
push 0x680878
push eax
call fcn.00405aa0
mov edi, dword [0x759d64]
lea ecx, [esp + 0x248]
add esp, 0xc
push ecx
call fcn.00403ee0
mov edi, dword [0x759d64]
add esp, 4
push 0x68087c
mov esi, eax
mov dword [esp + 0x18], edx
call fcn.00403ee0
add esp, 4
cmp dword [0x75b750], 0
mov dword [esp + 0x14], edx
je 0x4043ae
fld dword [0x682360]
push 0
push 0
lea edx, [esp + 0x20]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
sub esi, eax
fld1
mov dword [esp + 0x34], 0xff000000
fstp dword [esp + 8]
fld dword [esp + 0x474]
fadd qword [0x682358]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
fstp dword [esp + 4]
fild dword [esp + 0x2c]
fadd dword [esp + 0x470]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp]
call fcn.00575e60
add esp, 0x1c
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [0x6b4bdc]
jne 0x40448b
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x56
call esi
test al, al
jns 0x40448b
cmp byte [0x75b754], 0
jne 0x40448b
push 0x11
mov byte [0x75b754], 1
call esi
test al, al
jns 0x404492
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404492
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 0x40447c
push eax
lea ecx, [esp + 0x24]
call fcn.00406080
lea esi, [esp + 0x20]
mov dword [esp + 0x44c], 1
call fcn.00404070
mov esi, eax
call fcn.00403f70
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00405c90
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x404459
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x464]
test edx, edx
je 0x404473
cmp edx, 0x7fffffff
ja 0x404473
mov ecx, ebp
call fcn.00402cc0
lea ecx, [esp + 0x20]
call fcn.004060c0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x404492
mov byte [0x75b754], 0
mov eax, dword [0x6b049c]
mov ecx, dword [0x6b04a0]
cmp eax, ecx
je 0x404259
mov edx, dword [0x6b04a0]
mov esi, dword [edx]
add dword [0x6b04a0], 4
mov eax, dword [0x6b04a0]
cmp eax, 0x759cc8
jb 0x4044ca
mov dword [0x6b04a0], 0x759c48
test esi, esi
je 0x404259
cmp esi, 8
jne 0x4044ef
cmp byte [ebp], 0
je 0x4044ef
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044e2
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 0x4044f4
sub eax, edx
cmp eax, dword [esp + 0x464]
jae 0x404259
cmp esi, 0x20
jl 0x404542
cmp esi, 0x80
jge 0x404542
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404520
push esi
sub eax, edx
lea ecx, [esp + 0x14]
add eax, ebp
push 0x680880
push ecx
mov dword [esp + 0x1c], eax
call fcn.00405b60
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0058e447
add esp, 0x440
ret