Function at 0x10021b50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100a71bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001f3f0
add esp, 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 8]
call eax
push 0
push 0
push 0x301
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001e7f0
add esp, 0x10
cmp dword [ebp - 0x1c], 0
jne 0x10021bd4
xor eax, eax
jmp 0x10021dad
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10021bff
xor eax, eax
jmp 0x10021dad
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
jmp 0x10021c1f
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x10021c5f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0xd
jne 0x10021c5d
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, 0xa
mov edx, dword [ebp - 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10021c0d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10021c8b
xor eax, eax
jmp 0x10021dad
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10021dab
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.100652d0
add esp, 0xc
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10021da5
call fcn.100231b0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10021d2e
mov dword [ebp - 0x38], 0
jmp 0x10021d7f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1004ad4a
add esp, 4
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3fffffff
jle 0x10021d52
mov dword [ebp - 0x34], 0
jmp 0x10021d79
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.10045760
mov dword [ebp - 0x40], esp
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x28]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.10022f40
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.1004dfa0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 8]
push ecx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100454bc
mov esp, ebp
pop ebp
ret