Function at 0x1001a400
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10138738
mov eax, dword fs:[0]
push eax
mov eax, 0x14b0
call fcn.100c55f0
mov eax, dword [0x10187468]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x14a4], eax
mov dword [ebp - 0x149c], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x1450
mov esi, eax
lea eax, [ebp - 0x1460]
push 0
push eax
call fcn.10109d00
add esp, 0xc
lea eax, [ebp - 0x1460]
push 0xa28
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetClipboardSequenceNumber]
call edi
mov ebx, eax
lea eax, [ebp - 0x1478]
push 0
push eax
mov dword [ebp - 0x14a0], ebx
call fcn.1001a2f0
add esp, 8
lea eax, [ebp - 0x14bc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1491]
call fcn.1001a260
mov ecx, 1
mov byte [ebp - 4], 1
push 0
mov dword [ebp - 0x1498], ecx
mov dword [ebp - 0x149c], ecx
lea ecx, [ebp - 0x1478]
push eax
call fcn.1001a7f0
cmp eax, 0xffffffff
jne 0x1001a50e
lea eax, [ebp - 0x1490]
push eax
lea ecx, [ebp - 0x1491]
call fcn.1001a1e0
push 0
push eax
lea ecx, [ebp - 0x1478]
mov dword [ebp - 0x1498], 3
call fcn.1001a7f0
mov byte [ebp - 0x1491], 0
cmp eax, 0xffffffff
je 0x1001a515
mov byte [ebp - 0x1491], 1
test byte [ebp - 0x1498], 2
je 0x1001a529
lea ecx, [ebp - 0x1490]
call fcn.100089e0
lea ecx, [ebp - 0x14bc]
mov dword [ebp - 4], 0
call fcn.100089e0
cmp byte [ebp - 0x1491], 0
push 0
je 0x1001a559
push 0x1000f
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1001a58b
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0xa2
call esi
push 0
push 0
push 0
push 0x43
call esi
push 0
push 2
push 0
push 0xa2
call esi
push 0
push 2
push 0
push 0x43
call esi
xor esi, esi
call edi
cmp eax, ebx
jne 0x1001a5ba
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
add esi, 0xa
cmp esi, 0x32
jg 0x1001a672
push 0xa
call ebx
call edi
cmp eax, dword [ebp - 0x14a0]
je 0x1001a5a0
lea eax, [ebp - 0x1490]
push 0
push eax
call fcn.1001a2f0
add esp, 8
cmp dword [ebp - 0x1480], 0
mov byte [ebp - 4], 2
je 0x1001a667
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001a656
mov eax, dword [ebp - 0x1468]
lea eax, [eax*2 + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1001a650
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp - 0x1464], 8
lea edx, [ebp - 0x1478]
mov ecx, dword [ebp - 0x1468]
mov esi, eax
cmovae edx, dword [ebp - 0x1478]
add ecx, ecx
push ecx
push edx
push esi
call fcn.10109200
mov eax, dword [ebp - 0x1468]
add esp, 0xc
xor ecx, ecx
push edi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14a4]
lea edx, [ebp - 0x1490]
push edx
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x1490]
call fcn.100089e0
mov edx, dword [ebp - 0x1464]
cmp edx, 8
jb 0x1001a6ae
mov ecx, dword [ebp - 0x1478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a6a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001a6ca
push edx
push ecx
call fcn.100c522c
add esp, 8
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.100c55ab
mov esp, ebp
pop ebp
ret
call fcn.1010d560
int3