Function at 0x100218d0
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 - 0x1c], 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 - 0x1c]
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 - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 0x1c]
call edx
push 0
push 0
push 0x300
mov eax, dword [ebp + 8]
push eax
call fcn.1001e7f0
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x10021946
xor eax, eax
jmp 0x10021b36
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10021971
xor eax, eax
jmp 0x10021b36
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x10021991
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
test edx, edx
je 0x100219d1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0xd
jne 0x100219cf
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
mov eax, 0xa
mov ecx, dword [ebp - 0xc]
mov word [ecx], ax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x1002197f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x10]
lea ecx, [eax + eax + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100219fd
xor eax, eax
jmp 0x10021b36
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10021b1d
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.100652d0
add esp, 0xc
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov word [eax + edx*2], cx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 8]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10021b17
call fcn.100231b0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jne 0x10021aa0
mov dword [ebp - 0x38], 0
jmp 0x10021af1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1004ad4a
add esp, 4
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3fffffff
jle 0x10021ac4
mov dword [ebp - 0x34], 0
jmp 0x10021aeb
mov eax, dword [ebp - 0x28]
shl eax, 1
call fcn.10045760
mov dword [ebp - 0x40], esp
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x28]
shl edx, 1
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.10022f40
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.1004dfa0
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 1
push 5
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001f3f0
add esp, 4
mov ecx, eax
call fcn.1001edf0
xor eax, eax
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100454bc
mov esp, ebp
pop ebp
ret