Function at 0x4220f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50861d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x542040]
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 ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1032
mov dword [ebp - 0x18], ecx
push dword [ecx + 0x24]
call ebx
mov esi, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x51b3ac
cmp esi, 1
jle 0x4222d6
push 0
push 0
push 0x1004
push dword [eax + 0x24]
call ebx
mov ecx, dword [ebp - 0x14]
mov edi, eax
imul esi, esi, 0x64
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], 0
test ecx, ecx
je 0x422234
mov eax, dword [ecx]
mov dword [ebp - 0x24], eax
cmp esi, eax
jb 0x42227c
mov eax, dword [ecx + 0xc]
cmp eax, esi
jae 0x422224
lea edx, [eax + 0x1001]
lea edi, [eax + 0x1011]
add edx, esi
add edi, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], edi
cmp edx, eax
jbe 0x422224
mov ecx, edi
call fcn.00425b20
mov ecx, dword [ebp - 0x28]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x2c], edi
lea ecx, [ecx*2 + 2]
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx*2 + 0x20]
push ecx
push eax
push edi
call fcn.004def30
lea eax, [edi + 0x10]
add esp, 0xc
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x422218
push eax
call fcn.004eb01a
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov word [eax + esi*2], cx
jmp 0x42226e
lea ecx, [esi + 0x11]
call fcn.00425b20
mov edx, eax
lea ecx, [esi*2 + 0x24]
shr ecx, 1
xor eax, eax
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, esi
mov dword [edx + 4], 1
lea eax, [ecx + 1]
mov dword [edx + 0xc], eax
lea eax, [edx + 0x10]
mov dword [edx + 8], eax
mov dword [ebp - 0x14], edx
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
xor esi, esi
test edi, edi
jle 0x4222c3
mov eax, dword [ebp - 0x18]
push 2
push esi
push 0x102c
push dword [eax + 0x24]
call ebx
cmp eax, 2
jne 0x4222bb
push esi
lea ecx, [ebp - 0x38]
call fcn.004223d0
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.00424170
push 0
push 0x51c5c8
mov ecx, eax
call fcn.00424170
inc esi
cmp esi, edi
jl 0x422282
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4222cf
mov esi, dword [ecx + 8]
mov dword [ebp - 0x1c], esi
jmp 0x42231d
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x42231d
push 3
push 0xffffffffffffffff
push 0x100c
push dword [eax + 0x24]
call ebx
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 0x374]
sub edx, dword [ecx + 0x370]
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
test esi, esi
js 0x422385
cmp esi, eax
jge 0x422385
push esi
lea ecx, [ebp - 0x38]
call fcn.004223d0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x422388
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422326
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 2]
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x422385
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x422385
push ebx
push esi
push eax
call fcn.004def30
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4223a9
add dword [ecx + 4], 0xffffffff
jne 0x4223a9
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4223a9
push eax
call fcn.004eb01a
add esp, 4
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.004dadd7
mov esp, ebp
pop ebp
ret