Function at 0x1022be6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 2
pop edi
xor ebx, ebx
cmp word [ebp + 0xc], di
je 0x1022c0f
push ebx
push dword [0x10438c0]
call fcn.010289f3
test eax, eax
je 0x102313a
push esi
movzx esi, word [ebp + 0xc]
mov eax, 0x5b4
cmp esi, eax
jg 0x1022f55
je 0x1022f3d
mov eax, 0x4b3
cmp esi, eax
jg 0x1022e74
je 0x1022d61
sub esi, 0x44d
je 0x1022ccf
sub esi, edi
je 0x1022cbf
dec esi
je 0x1022cad
dec esi
je 0x1023026
sub esi, 0x60
je 0x1022c96
dec esi
jne 0x1023073
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
lea edi, [eax - 1]
push edi
push dword [0x1043800]
call esi
call fcn.01011d7f
push eax
call fcn.0102c6d5
test eax, eax
je 0x1023136
push ebx
push edi
push dword [0x1043800]
call esi
jmp 0x1023136
call fcn.01022a3c
push dword [ebp + 8]
call fcn.0101e091
call fcn.01022a68
jmp 0x1023136
push dword [ebp + 8]
call fcn.0102d96e
call fcn.0102d9ef
jmp 0x1023136
call fcn.01011d7f
push eax
call fcn.0102d413
jmp 0x1023136
push ebx
push ebx
push dword [ebp + 8]
call fcn.01010f53
mov dword [ebp - 4], eax
call fcn.0102d9ef
cmp dword [ebp - 4], ebx
je 0x1023136
call fcn.0102e30e
push dword [ebp - 4]
mov byte [0x1041b88], 0
call fcn.010134ed
mov dword [ebp + 8], eax
xor eax, eax
inc eax
push eax
mov dword [0x1043764], eax
push ebx
lea eax, [ebp - 4]
push eax
push 0x1004617
call fcn.01028b88
test eax, eax
je 0x1022d4d
cmp dword [0x1043624], ebx
je 0x1022d40
cmp dword [0x104378c], ebx
je 0x1022d40
push ebx
push 0xb
push dword [ebp + 8]
mov dword [0x1040a9c], ebx
call fcn.0100e18d
jmp 0x1022d4d
lea eax, [ebp + 0xc]
push eax
push edi
mov dword [ebp + 0xc], ebx
call fcn.0102a310
lea eax, [ebp + 8]
push eax
mov dword [0x1043764], ebx
call fcn.01012ee8
jmp 0x1023136
mov ecx, dword [0x10438a0]
mov eax, dword [0x10437b8]
cmp ecx, ebx
je 0x1022d75
mov dword [ebp + 0xc], ecx
jmp 0x1022d83
mov edx, eax
imul edx, edx, 0x50
mov edx, dword [edx + 0x10438c4]
mov dword [ebp + 0xc], edx
xor esi, esi
cmp ecx, ebx
jne 0x1022db4
imul eax, eax, 0x50
push dword [eax + 0x10438c8]
call fcn.01011d99
mov edi, eax
cmp edi, ebx
je 0x1022db4
push 1
push ebx
push edi
call fcn.0102c81e
test eax, eax
je 0x1022db4
push edi
call fcn.0101a93a
test eax, eax
jne 0x1022dd8
push dword [ebp + 0xc]
call fcn.01011d99
mov edi, eax
cmp edi, ebx
je 0x1022dda
push ebx
push ebx
push edi
call fcn.0102c81e
test eax, eax
je 0x1022dda
push edi
call fcn.0101a93a
test eax, eax
je 0x1022dda
mov esi, edi
call fcn.01022a3c
cmp esi, ebx
je 0x1022c9b
xor edi, edi
cmp dword [esi + 4], ebx
jne 0x1022dfc
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esi + 4], edi
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x126]
push dword [esi + 0x122]
push dword [esi + 0x11e]
push dword [esi + 0x11a]
push esi
call fcn.0101a9f4
mov ebx, eax
test ebx, ebx
je 0x1022e59
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1022e48
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1022e59
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x82
call fcn.01022b3c
test edi, edi
je 0x1022ca3
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [esi + 4], 0
jmp 0x1022ca3
cmp esi, 0x515
je 0x1022f2b
mov eax, 0x516
cmp esi, eax
je 0x1022ee7
jle 0x1023073
cmp esi, 0x51f
jle 0x1022ed1
cmp esi, 0x5ab
je 0x10230c9
cmp esi, 0x5ad
jne 0x1023073
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
push 1
push 3
push 0x417
push dword [eax + 0x10438c0]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1023136
call fcn.01011d7f
cmp eax, ebx
je 0x1023136
add esi, 0xfffffae9
push esi
jmp 0x1022f0f
push 0x101ef94
push dword [ebp + 8]
push 0x38a
call fcn.0102877f
mov esi, eax
call fcn.0102d9ef
cmp esi, ebx
je 0x1023136
dec esi
push esi
call fcn.01011d7f
push eax
call fcn.0100ab15
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 3
mov dword [ebp - 8], edx
call fcn.0102a310
jmp 0x1023136
push 0x101f192
push dword [ebp + 8]
push 0x387
jmp 0x10230bf
mov dword [0x1043798], ebx
push ebx
push 1
push 0x406
call fcn.01022b00
jmp 0x1023136
mov eax, 0x5c0
cmp esi, eax
jg 0x1023059
je 0x102304e
sub esi, 0x5b5
je 0x102303f
dec esi
je 0x1023030
sub esi, 3
je 0x1022fd4
dec esi
je 0x1022fab
sub esi, 4
je 0x1022f9b
dec esi
jne 0x1023073
mov dword [0x1043784], 1
jmp 0x1022fa1
mov dword [0x1043784], ebx
call fcn.010280f0
jmp 0x1023136
mov eax, dword [0x10438a0]
cmp eax, ebx
jne 0x1022fc2
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
mov eax, dword [eax + 0x10438c0]
push 0x10292eb
push eax
push 0x7c
call fcn.0102877f
jmp 0x1023136
xor eax, eax
cmp dword [0x10437a4], ebx
sete al
mov dword [0x10437a4], eax
mov eax, dword [0x1043894]
cmp eax, ebx
je 0x1022ff1
mov esi, eax
jmp 0x1022fff
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
mov esi, dword [eax + 0x10438c0]
mov eax, dword [0x1043824]
or eax, 4
push eax
push dword [0x1043644]
push 0x1f
call fcn.010281fa
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x1023136
call fcn.01020814
jmp 0x1023136
mov dword [0x1043798], 0xfffffffc
jmp 0x1022f43
mov dword [0x1043798], 4
jmp 0x1022f43
mov dword [0x1043784], edi
jmp 0x1022fa1
sub esi, 0x5dd
je 0x102311d
dec esi
je 0x10230c9
dec esi
je 0x10230b2
dec esi
je 0x102308c
sub esi, 0x68
je 0x1023080
push dword [ebp + 0xc]
call fcn.0100fa8a
jmp 0x1023136
xor dword [0x104361c], 0x10
jmp 0x1023136
cmp dword [0x1041760], edi
je 0x1023136
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
push 0x101033c
push dword [eax + 0x10438c0]
push 0x74
jmp 0x1022fca
push 0x101f5d1
push dword [ebp + 8]
push 0x38b
call fcn.0102877f
jmp 0x1022cb5
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
mov ecx, dword [eax + 0x104390c]
mov edx, ecx
and edx, 0xf
cmp dl, 3
jne 0x10230e6
and ecx, 0xfffffff0
jmp 0x10230ec
and ecx, 0xfffffff3
or ecx, 3
cmp dword [0x1043784], 1
mov dword [eax + 0x104390c], ecx
je 0x1023105
test cl, 3
jne 0x1023105
push 0xfffffffffffffffe
pop ecx
jmp 0x1023108
or ecx, 0xffffffff
push 0x13
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [eax + 0x10438c0]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1023136
mov eax, dword [0x10437b8]
imul eax, eax, 0x50
push dword [eax + 0x10438c4]
call fcn.01011d99
push eax
call fcn.01027e5a
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 0xc