Function at 0x10174520
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c9b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1023c014]
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, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x1017455d
mov edx, dword [edx + 0x5c]
mov eax, dword [edx + 0x88]
xor ebx, ebx
sub eax, dword [edx + 0x84]
mov edi, dword [edx + 0x94]
sub edi, dword [edx + 0x90]
mov ecx, dword [edx + 0x78]
mov esi, dword [edx + 0x7c]
sar eax, 2
mov dword [ebp - 0x44], eax
dec eax
sar edi, 2
dec edi
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
cmp ecx, esi
je 0x101745fc
nop dword [eax]
mov eax, dword [ecx]
cmp dword [eax + 0x14], 1
jne 0x101745ec
mov eax, dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x44]
cmp eax, dword [ebp - 0x34]
mov edi, eax
mov dword [ebp - 0x3c], edx
cmovge edi, dword [ebp - 0x34]
cmp dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
cmovge eax, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x30], edx
cmp edi, dword [ebp - 0x2c]
cmovge eax, dword [ebp - 0x2c]
cmp ebx, edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jge 0x101745ec
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x40]
add ecx, 4
cmp ecx, esi
jne 0x101745a0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor esi, esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], si
mov dword [ebp - 4], esi
cmp edi, eax
jg 0x101746aa
nop dword [eax]
mov esi, dword [ebp - 0x2c]
cmp esi, ebx
jg 0x10174685
push esi
push edi
mov ecx, edx
call fcn.1017bc00
test eax, eax
je 0x1017466a
cmp dword [eax + 0x14], 1
jne 0x1017466a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x44], edx
nop dword [eax]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10174650
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10029280
cmp esi, ebx
jge 0x1017467d
push 1
push 0x101d46fc
lea ecx, [ebp - 0x28]
call fcn.10029280
mov edx, dword [ebp - 0x38]
inc esi
cmp esi, ebx
jle 0x10174627
mov esi, dword [ebp - 0x30]
cmp edi, esi
jge 0x1017469b
push 2
push 0x101d4130
lea ecx, [ebp - 0x28]
call fcn.10029280
mov edx, dword [ebp - 0x38]
inc edi
cmp edi, esi
jle 0x10174620
mov ecx, dword [ebp - 0x18]
lea eax, [ecx*2 + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor edi, edi
test esi, esi
je 0x10174729
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x101746f1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10174704
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10174729
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edi, 1
lea ecx, [ebp - 0x28]
call fcn.100023a0
mov eax, edi
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.1008548c
mov esp, ebp
pop ebp
ret