Function at 0x100177f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x10060008]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 0x100
xor esi, esi
lea eax, [esp + 0x44]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x30], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10017b9d
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebx + 0x304]
mov ecx, dword [ebx + 0x30c]
cmp eax, ecx
jge 0x10017853
mov edx, eax
jmp 0x10017857
mov edx, ecx
jg 0x10017859
mov eax, ecx
mov edi, dword [ebx + 0x308]
mov ecx, dword [ebx + 0x310]
mov dword [esp + 0x1c], edi
cmp edi, ecx
jge 0x100178f7
mov ebx, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
movzx ecx, dx
movzx edi, cx
movzx eax, ax
mov dword [esp + 0x20], ecx
mov ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], ecx
cmp di, ax
ja 0x10017b97
mov ecx, dword [esp + 0x1c]
nop
add esi, 2
movzx eax, bx
mov dword [esp + 0x14], esi
mov edx, eax
movzx esi, cx
mov dword [esp + 0x30], edx
cmp ax, si
ja 0x1001790c
mov eax, dword [esp + 0x24]
movzx ecx, di
mov edi, dword [esp + 0x14]
mov eax, dword [eax]
mov ebx, dword [eax + ecx*4]
movzx eax, dx
xor ecx, ecx
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
test eax, eax
je 0x100178da
mov ecx, dword [eax + 0x10]
inc edi
inc edx
add edi, ecx
mov eax, esi
cmp dx, si
jbe 0x100178c8
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
jmp 0x1001790f
mov ebx, ecx
mov dword [esp + 0x10], ebx
jle 0x10017877
mov dword [esp + 0x10], ebx
jmp 0x1001787b
movzx eax, cx
mov esi, dword [esp + 0x14]
inc edi
movzx eax, ax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
cmp di, word [esp + 0x2c]
jbe 0x100178a0
mov ebx, esi
test ebx, ebx
je 0x10017b97
inc ebx
push ebx
mov dword [esp + 0x18], ebx
call fcn.10007b55
mov ecx, dword [esp + 0x24]
mov edi, eax
movzx ecx, cx
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov byte [edi], 0
nop word [eax + eax]
mov edx, dword [esp + 0x30]
movzx eax, dx
mov dword [esp + 0x20], eax
cmp dx, word [esp + 0x28]
ja 0x10017a8e
movzx ecx, cx
mov dword [esp + 0x34], ecx
nop dword [eax]
movzx esi, ax
lea edx, [esp + 0x40]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edx
push eax
mov eax, esi
mov dword [esp + 0x40], 0x100
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push 0x531
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, dword [esp + 0x1c]
je 0x10017a05
mov eax, 0x100
lea ecx, [esp + 0x40]
cmp byte [ecx], 0
je 0x100179ce
inc ecx
sub eax, 1
jne 0x100179c1
jmp 0x10017a05
lea ecx, [esp + 0x140]
mov edi, 0x10058200
sub ecx, eax
mov esi, 0x7ffffffe
sub edi, ecx
test esi, esi
je 0x100179fe
mov dl, byte [edi + ecx]
test dl, dl
je 0x100179f9
mov byte [ecx], dl
dec esi
inc ecx
sub eax, 1
jne 0x100179e3
jmp 0x100179fd
test eax, eax
jne 0x100179fe
dec ecx
mov edi, dword [esp + 0x18]
mov byte [ecx], 0
test ebx, ebx
je 0x10017a6e
cmp ebx, 0x7fffffff
ja 0x10017a6e
mov ecx, ebx
mov eax, edi
xor esi, esi
cmp byte [eax], 0
je 0x10017a2b
inc eax
sub ecx, 1
jne 0x10017a17
mov esi, 0x80070057
xor edx, edx
jmp 0x10017a2f
mov edx, ebx
sub edx, ecx
test esi, esi
js 0x10017a6e
mov ecx, ebx
lea eax, [edx + edi]
sub ecx, edx
je 0x10017a6a
sub edx, ebx
lea esi, [ecx + 0x7ffffffe]
lea edi, [esp + 0x40]
add esi, edx
sub edi, eax
nop dword [eax]
test esi, esi
je 0x10017a6b
mov dl, byte [edi + eax]
test dl, dl
je 0x10017a66
mov byte [eax], dl
dec esi
inc eax
sub ecx, 1
jne 0x10017a50
jmp 0x10017a6a
test ecx, ecx
jne 0x10017a6b
dec eax
mov byte [eax], 0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
inc eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
cmp ax, word [esp + 0x28]
jbe 0x10017980
mov ecx, dword [esp + 0x10]
test ebx, ebx
je 0x10017afc
cmp ebx, 0x7fffffff
ja 0x10017afc
mov ecx, ebx
mov eax, edi
xor esi, esi
cmp byte [eax], 0
je 0x10017ab4
inc eax
sub ecx, 1
jne 0x10017aa0
mov esi, 0x80070057
xor edx, edx
jmp 0x10017ab8
mov edx, ebx
sub edx, ecx
test esi, esi
js 0x10017af8
mov ecx, ebx
lea eax, [edx + edi]
sub ecx, edx
je 0x10017af0
sub edx, ebx
mov esi, 0x10058204
add edx, 0x7ffffffe
add edx, ecx
sub esi, eax
test edx, edx
je 0x10017af1
mov bl, byte [esi + eax]
test bl, bl
je 0x10017aec
mov byte [eax], bl
dec edx
inc eax
sub ecx, 1
jne 0x10017ad6
jmp 0x10017af0
test ecx, ecx
jne 0x10017af1
dec eax
mov ebx, dword [esp + 0x14]
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp cx, word [esp + 0x2c]
jbe 0x10017960
cmp ebx, 0x7fffffff
ja 0x10017b35
xor edx, edx
mov ecx, ebx
mov eax, edi
test ebx, ebx
je 0x10017b2a
nop
cmp byte [eax], dl
je 0x10017b91
inc eax
sub ecx, 1
jne 0x10017b20
mov edx, 0x80070057
xor eax, eax
test edx, edx
jns 0x10017b37
xor eax, eax
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10017b97
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov edx, ebx
mov ecx, eax
call fcn.10003270
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call fcn.10007a2e
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.100076a5
mov esp, ebp
pop ebp
ret
mov eax, ebx
sub eax, ecx
jmp 0x10017b31
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x144]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100076a5
mov esp, ebp
pop ebp
ret