Function at 0x417aa0
Capabilities:
Check for foreground window switch
Get graphical window text
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f796
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x473b80]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov edi, dword [0x477bfc]
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x417ee1
mov esi, dword [sym.imp.USER32.dll_OpenClipboard]
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call esi
test eax, eax
jne 0x417b21
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call esi
test eax, eax
je 0x417ee1
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
je 0x417bd8
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x417c8e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x20], eax
test eax, eax
je 0x417c8e
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417b60
sub eax, edx
sar eax, 1
lea ecx, [edi + 0x20]
mov dword [esp + 0x24], eax
cmp eax, dword [ecx]
jae 0x417b7e
lea ecx, [esp + 0x24]
mov esi, dword [ecx]
test esi, esi
je 0x417bd2
xor ecx, ecx
lea edi, [esi + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ffe1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x417bd2
mov ebx, dword [esp + 0x18]
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.00449a10
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push esi
push ecx
push edi
push ebx
call fcn.0044576a
mov ebx, dword [esp + 0x24]
add esp, 0x10
push ebx
jmp 0x417c88
push 1
call esi
test eax, eax
je 0x417c8e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x417c8e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x417c8e
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417c10
mov ecx, dword [esp + 0x28]
sub eax, edx
add ecx, 0x20
mov dword [esp + 0x14], eax
cmp eax, dword [ecx]
jae 0x417c2c
lea ecx, [esp + 0x14]
mov esi, dword [ecx]
test esi, esi
je 0x417c87
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ffe1
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x417c83
mov edi, dword [esp + 0x18]
lea eax, [esi + esi + 2]
push eax
push 0
push edi
call fcn.00449a10
add esp, 0xc
push esi
push ebx
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
mov dword [esp + 0x28], 0
call fcn.00445a99
add esp, 0x14
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 2
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x417cd3
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x417cd3
push 0x34
call fcn.00444804
add esp, 4
test eax, eax
je 0x417f05
mov esi, eax
call fcn.004171d0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x417cd3
mov esi, eax
mov dword [esi + 4], ebx
call fcn.004172e0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor edi, edi
cmp dword [esp + 0x18], edi
jne 0x417ceb
cmp dword [esp + 0x1c], edi
je 0x417ee1
xor eax, eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
lea eax, [esp + 0x30]
xor edx, edx
push eax
mov word [esp + 0x34], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x206
lea edx, [esp + 0x26a]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x270], cx
call fcn.00449a10
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0xc
push 0x104
lea eax, [esp + 0x268]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x2c]
push edx
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x206
mov esi, eax
lea ecx, [esp + 0x62]
xor eax, eax
push edi
push ecx
mov word [esp + 0x68], ax
call fcn.00449a10
add esp, 0xc
cmp esi, edi
je 0x417da8
push 0x104
lea edx, [esp + 0x60]
push edx
push edi
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x5c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x417dc2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x48]
call fcn.00403570
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x484], edi
call fcn.004105d0
mov byte [esp + 0x480], 1
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x40]
mov edx, edi
cmp esi, 8
jae 0x417f12
lea edx, [esp + 0x40]
mov ecx, edx
mov ebx, dword [esp + 0x50]
lea ebx, [ecx + ebx*2]
mov ecx, edi
cmp esi, 8
jae 0x417e24
lea ecx, [esp + 0x40]
cmp ecx, ebx
je 0x417e39
push eax
push edx
lea eax, [esp + 0x28]
push eax
mov eax, ecx
call fcn.0040f160
add esp, 0xc
mov byte [esp + 0x480], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x417e84
push 0
lea ecx, [esp + 0x24]
call fcn.004303e1
mov eax, dword [ebx + 4]
test eax, eax
je 0x417e64
cmp eax, 0xffffffff
jae 0x417e64
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x20]
not esi
call fcn.00430409
and esi, ebx
je 0x417e84
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x417eb0
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x78], 8
lea eax, [ecx + 0x64]
jb 0x417e9b
mov eax, dword [eax]
push eax
lea edx, [esp + 0x34]
push edx
push ecx
mov edx, esi
lea ecx, [esp + 0x270]
call fcn.00417f20
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x417ec0
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
test esi, esi
je 0x417ecd
push esi
call fcn.00444f30
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x417ee1
mov eax, dword [esp + 0x40]
push eax
call fcn.00444884
add esp, 4
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00444627
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], 0
jmp 0x417cd3
mov ecx, edi
jmp 0x417e12