Function at 0x422470
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50868c
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
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 edi, ecx
mov dword [ebp - 0x84c], edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1032
push dword [edi + 0x24]
call ebx
mov esi, eax
mov dword [ebp - 0x818], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x848], esi
push esi
lea ecx, [ebp - 0x820]
movq qword [ebp - 0x820], xmm0
call fcn.00423e00
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x82c]
xorps xmm0, xmm0
mov dword [ebp - 0x824], 0
push esi
movq qword [ebp - 0x82c], xmm0
call fcn.00423e00
push ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x838]
xorps xmm0, xmm0
mov dword [ebp - 0x830], 0
push esi
movq qword [ebp - 0x838], xmm0
call fcn.00423e00
push 0
push 0
push 0x1004
mov byte [ebp - 4], 2
push dword [edi + 0x24]
call ebx
mov edi, dword [ebp - 0x820]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], ebx
mov dword [ebp - 0x850], edi
test eax, eax
jle 0x42259a
mov eax, dword [ebp - 0x84c]
push 2
push esi
push 0x102c
push dword [eax + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 2
jne 0x42258b
mov dword [edi], esi
add edi, 4
cmp esi, ebx
cmovg ebx, esi
inc esi
cmp esi, dword [ebp - 0x844]
jl 0x422565
mov dword [ebp - 0x840], ebx
imul ebx, dword [ebp - 0x848], 0x104
mov dword [ebp - 0x814], 0
lea ecx, [ebx + 0x11]
call fcn.00425b20
mov edx, eax
lea ecx, [ebx*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
lea eax, [ebx + 1]
mov dword [edx + 4], 1
mov dword [edx + 0xc], eax
lea eax, [edx + 0x10]
mov dword [edx + 8], eax
mov dword [ebp - 0x814], edx
mov dword [edx], ebx
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x4225f9
mov dword [eax], 0
push dword [ebp - 0x840]
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
push 0x51c1c8
push eax
call fcn.00425340
mov ecx, dword [ebp - 0x81c]
add esp, 0xc
mov edi, dword [ebp - 0x82c]
mov ebx, dword [ebp - 0x838]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp - 0x820]
mov esi, eax
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0
cmp esi, ecx
je 0x4226f3
mov eax, dword [ebp - 0x82c]
mov edi, ebx
sub eax, edi
mov dword [ebp - 0x848], eax
mov eax, dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x84c]
shl ecx, 5
add ecx, dword [eax + 0x370]
mov edx, dword [ecx]
lea ebx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x422680
mov eax, dword [ecx + 0x44]
sub edx, ebx
sar edx, 1
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422695
mov ecx, dword [ebp - 0x848]
sub eax, ebx
sar eax, 1
mov dword [ecx + edi], edx
mov ecx, dword [ebp - 0x844]
cmp edx, ecx
mov dword [edi], eax
cmovg ecx, edx
mov dword [ebp - 0x844], ecx
mov ecx, dword [ebp - 0x840]
cmp eax, ecx
cmovg ecx, eax
add esi, 4
mov dword [ebp - 0x840], ecx
add edi, 4
mov ecx, dword [ebp - 0x81c]
cmp esi, ecx
jne 0x422663
mov eax, dword [ebp - 0x820]
mov ebx, dword [ebp - 0x838]
mov edi, dword [ebp - 0x82c]
cmp eax, ecx
je 0x42294a
sub edi, ebx
mov dword [ebp - 0x868], edi
mov eax, dword [eax]
mov ecx, dword [ebp - 0x84c]
lea esi, [eax + eax*2]
inc eax
push eax
lea eax, [ebp - 0x810]
shl esi, 5
add esi, dword [ecx + 0x370]
push 0x51c1c8
push eax
call fcn.00425340
mov edi, dword [ebx + edi]
add esp, 0xc
mov ecx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x864], ebx
mov ebx, dword [ebp - 0x854]
sub ebx, eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x860], ecx
test ebx, ebx
jle 0x4227bf
mov ecx, ebx
call fcn.00425b20
mov edx, eax
lea ecx, [ebx*2 + 2]
shr ecx, 1
mov eax, 0x200020
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
mov dword [ebp - 0x848], edx
rep stosw word es:[edi], ax
mov dword [ebp - 0x83c], edx
push ebx
push edx
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 4
call fcn.00424170
mov eax, dword [ebp - 0x848]
mov byte [ebp - 4], 5
test eax, eax
je 0x4227af
push eax
call fcn.004eb01a
add esp, 4
mov edi, dword [ebp - 0x858]
mov eax, dword [ebp - 0x85c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
push edi
push dword [esi]
lea ecx, [ebp - 0x814]
call fcn.00424170
mov edx, dword [ebp - 0x844]
sub edx, edi
test edx, edx
jle 0x422823
mov ecx, edx
lea edi, [ebp - 0x810]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push dword [esi + 0x40]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
push 0
push dword [esi + 0x48]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
push 0
push dword [esi + 0x4c]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
mov edx, dword [ebp - 0x840]
mov ebx, dword [ebp - 0x860]
sub edx, ebx
test edx, edx
jle 0x4228ca
mov ecx, edx
lea edi, [ebp - 0x810]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00424170
push ebx
push dword [esi + 0x44]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
push 0
push dword [esi + 0x50]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5d0
mov ecx, eax
call fcn.00424170
push 0
push dword [esi + 0x54]
lea ecx, [ebp - 0x814]
call fcn.00424170
push 0
push 0x51c5c8
mov ecx, eax
call fcn.00424170
mov eax, dword [ebp - 0x850]
mov ebx, dword [ebp - 0x864]
add eax, 4
mov edi, dword [ebp - 0x868]
mov dword [ebp - 0x850], eax
cmp eax, dword [ebp - 0x81c]
jne 0x422703
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x4229c5
mov edi, dword [eax + 8]
test edi, edi
je 0x4229c5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422960
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 2]
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4229bf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4229bf
push ebx
push edi
push eax
call fcn.004def30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
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 eax, dword [ebp - 0x814]
mov byte [ebp - 4], 6
test eax, eax
je 0x4229e6
add dword [eax + 4], 0xffffffff
jne 0x4229e6
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x4229e6
push eax
call fcn.004eb01a
add esp, 4
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x814], 0
call fcn.00423ea0
lea ecx, [ebp - 0x82c]
call fcn.00423ea0
lea ecx, [ebp - 0x820]
call fcn.00423ea0
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