Function at 0x10021e10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100a71bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001f3f0
add esp, 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
push ecx
push 5
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x68]
call edx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
push 0
push 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x64]
call edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1002204e
mov dword [ebp - 0x14], 0
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10021eea
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10021ee5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10021f99
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10021f99
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10021f99
call fcn.100231b0
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x10021f33
mov dword [ebp - 0x38], 0
jmp 0x10021f82
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1004b6b0
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3fffffff
jle 0x10021f57
mov dword [ebp - 0x34], 0
jmp 0x10021f7c
mov eax, dword [ebp - 0x18]
shl eax, 1
call fcn.10045760
mov dword [ebp - 0x48], esp
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10022ec0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x14], 0
je 0x10022048
mov edx, dword [ebp - 0x14]
push edx
call fcn.10021dc0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x38]
call ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 0x40]
call eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x38]
call edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x40]
call ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x10c]
call eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x38]
call edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x40]
call ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
push 5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x68]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x40]
je 0x1002209a
push 4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001f3f0
add esp, 4
mov ecx, eax
call fcn.1001eca0
jmp 0x100220bd
push 1
push 5
mov eax, dword [ebp + 8]
push eax
call fcn.1001f3f0
add esp, 4
mov ecx, eax
call fcn.1001edf0
mov ecx, dword [ebp + 8]
push ecx
call fcn.100200e0
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 8]
call edx
xor eax, eax
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100454bc
mov esp, ebp
pop ebp
ret