Function at 0x10017430
Capabilities:
Get graphical window text
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp + 0x20], edi
mov esi, 1
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x30c]
mov ecx, dword [edi + 0x304]
cmp ecx, eax
cmovge ecx, eax
mov eax, dword [edi + 0x310]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x308]
cmp ecx, eax
cmovge ecx, eax
test dword [edi + 0x10], 0x800
mov dword [esp + 0x24], ecx
je 0x100177cf
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x100177cf
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100177cf
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [esp + 0x44], eax
test eax, eax
je 0x10017770
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x10017759
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100174e6
sub ecx, edx
xor edx, edx
test ecx, ecx
jle 0x100177cb
xor eax, eax
xor edi, edi
nop dword [eax]
mov al, byte [eax + ebx]
cmp al, 9
jne 0x10017690
inc edi
mov esi, dword [esp + 0x10]
inc edx
movzx eax, dx
cmp eax, ecx
jl 0x10017500
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x20]
test esi, esi
je 0x100177cb
mov eax, dword [esp + 0xc]
cdq
idiv esi
mov ecx, dword [esp + 0x24]
inc eax
dec ecx
add ecx, eax
mov dword [esp + 0xc], eax
movzx eax, word [edi + 0xe]
cmp ecx, eax
jge 0x100177cb
mov ecx, dword [esp + 0x28]
movzx eax, word [edi + 0xc]
dec ecx
add ecx, esi
cmp ecx, eax
jge 0x100177cb
push 0x1e
mov ecx, edi
call fcn.1001c180
mov eax, dword [esp + 0x28]
xor esi, esi
movzx ecx, ax
mov eax, dword [esp + 0x10]
mov edx, ecx
movzx eax, ax
mov edi, eax
add eax, ecx
cmp dx, ax
jae 0x1001774c
mov eax, dword [esp + 0x24]
movzx eax, ax
mov ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xc]
movzx ecx, cx
add eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, edx
mov edx, edi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x38], edx
cmp cx, di
jae 0x1001773a
mov edi, dword [esp + 0x20]
movzx eax, cx
mov dword [esp + 0x18], eax
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
movzx eax, ax
mov dword [esp + 0x2c], eax
nop dword [eax]
push 0x100
lea eax, [esp + 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, si
add esp, 0xc
xor edx, edx
mov al, byte [eax + ebx]
cmp al, 9
je 0x10017617
cmp al, 0xd
je 0x10017617
movzx ecx, dx
inc esi
inc edx
mov byte [esp + ecx + 0x58], al
movzx eax, si
mov al, byte [eax + ebx]
cmp al, 9
jne 0x10017600
movzx eax, si
xor ecx, ecx
mov dword [esp + 0x4c], 0x100
cmp byte [eax + ebx], 0xd
sete cl
inc ecx
add cx, si
mov esi, dword [esp + 0x18]
movzx eax, cx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x158]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
shl esi, 0x10
or esi, dword [esp + 0x14]
push eax
push esi
push 0x531
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x158]
lea eax, [esp + 0x58]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100176a6
test dl, dl
je 0x1001768c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100176a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x10017670
xor eax, eax
jmp 0x100176ab
cmp al, 0xa
jne 0x1001750c
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
jmp 0x10017510
sbb eax, eax
or eax, 1
test eax, eax
je 0x100176c1
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
add eax, dword [esp + 0x1c]
je 0x100176c1
or dword [eax], 4
lea eax, [esp + 0x58]
mov dword [esp + 0x54], 0x100
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push esi
push 0x530
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [edi + 0x1c]
or dword [edi + 0x14], 0x4000
or eax, 0x1c0000
push esi
push eax
push 0x111
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc dword [esp + 0x18]
add dword [esp + 0x1c], 0x14
sub dword [esp + 0x2c], 1
mov eax, dword [esp + 0x40]
movzx esi, ax
jne 0x100175e0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
movzx esi, ax
mov eax, dword [esp + 0x14]
inc eax
sub edx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
jne 0x100175b4
mov edi, dword [esp + 0x20]
mov ecx, edi
push 0x1f
call fcn.1001c180
mov esi, 1
test ebx, ebx
je 0x1001776c
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [esp + 0xc]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, 1
jne 0x100177b4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
mov dword [edi + 0x30c], edx
dec edx
lea ecx, [eax - 1]
mov dword [edi + 0x310], eax
add ecx, ebx
mov dword [edi + 0x308], ecx
mov ecx, dword [esp + 0x14]
push 0
push dword [edi + 0x18]
add ecx, edx
mov dword [edi + 0x304], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.100076a5
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x10017762
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x25c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100076a5
mov esp, ebp
pop ebp
ret