Function at 0x101c313
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 2
pop esi
xor edi, edi
cmp word [ebp + 0xc], si
je 0x101c33a
push edi
push dword [0x1039580]
call fcn.01021ea2
test eax, eax
je 0x101c86e
movzx eax, word [ebp + 0xc]
mov ecx, 0x5b4
cmp eax, ecx
jg 0x101c675
je 0x101c66a
mov ecx, 0x4b3
cmp eax, ecx
jg 0x101c5a6
je 0x101c488
sub eax, 0x44d
je 0x101c3f6
sub eax, esi
je 0x101c3e6
dec eax
je 0x101c3d9
dec eax
je 0x101c744
sub eax, 0x60
je 0x101c3c2
dec eax
jne 0x101c79f
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
mov edi, 0x4b2
push edi
push dword [0x10394c0]
call esi
call fcn.0100c715
push eax
call fcn.01025083
test eax, eax
je 0x101c86b
push 0
push edi
push dword [0x10394c0]
call esi
jmp 0x101c86b
call fcn.0101c19b
push dword [ebp + 8]
call fcn.01017c97
call fcn.0101c1c2
jmp 0x101c86b
push dword [ebp + 8]
call fcn.0102610c
jmp 0x101c660
call fcn.0100c715
push eax
call fcn.01025bc8
jmp 0x101c86b
push edi
push edi
push dword [ebp + 8]
call fcn.0100ba90
mov dword [ebp - 4], eax
call fcn.01026376
cmp dword [ebp - 4], edi
je 0x101c86b
call fcn.01026a2e
push dword [ebp - 4]
and byte [0x1037b78], 0
call fcn.0100d76d
mov dword [ebp + 8], eax
xor eax, eax
inc eax
push eax
mov dword [0x1039424], eax
push edi
lea eax, [ebp - 4]
push eax
push 0x1001737
call fcn.010223fe
test eax, eax
je 0x101c474
cmp dword [0x10392e4], edi
je 0x101c467
cmp dword [0x103944c], edi
je 0x101c467
push edi
push 0xb
push dword [ebp + 8]
mov dword [0x1036a9c], edi
call fcn.01008d52
jmp 0x101c474
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call fcn.01022ee7
lea eax, [ebp + 8]
push eax
mov dword [0x1039424], edi
call fcn.0100d754
jmp 0x101c86b
mov ecx, dword [0x1039560]
cmp ecx, edi
mov eax, dword [0x1039478]
push ebx
je 0x101c49c
mov ebx, ecx
jmp 0x101c4a8
lea edx, [eax + eax*4]
shl edx, 4
mov ebx, dword [edx + 0x1039584]
xor esi, esi
cmp ecx, edi
jne 0x101c4dc
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x1039588]
call fcn.0100c72a
mov edi, eax
test edi, edi
je 0x101c4dc
push 1
push esi
push edi
call fcn.010251a9
test eax, eax
je 0x101c4dc
push edi
call fcn.010147dd
test eax, eax
jne 0x101c500
push ebx
call fcn.0100c72a
mov edi, eax
test edi, edi
je 0x101c502
push 0
push 0
push edi
call fcn.010251a9
test eax, eax
je 0x101c502
push edi
call fcn.010147dd
test eax, eax
je 0x101c502
mov esi, edi
call fcn.0101c19b
xor edi, edi
cmp esi, edi
je 0x101c593
cmp dword [esi + 4], edi
jne 0x101c522
push ebx
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.01014889
mov ebx, eax
test ebx, ebx
je 0x101c57f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101c56e
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 0x101c57f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x82
call fcn.0101c283
test edi, edi
je 0x101c59b
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [esi + 4], 0
jmp 0x101c59b
push dword [ebp + 8]
call fcn.01017c97
call fcn.0101c1c2
pop ebx
jmp 0x101c86b
cmp eax, 0x515
je 0x101c64e
mov ecx, 0x516
cmp eax, ecx
je 0x101c629
jle 0x101c79f
cmp eax, 0x51f
jle 0x101c602
cmp eax, 0x5ab
je 0x101c7f8
cmp eax, 0x5ad
jne 0x101c79f
mov eax, dword [0x1039478]
push 1
push 3
lea eax, [eax + eax*4]
push 0x417
shl eax, 4
push dword [eax + 0x1039580]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x101c86b
add eax, 0xfffffae9
push eax
call fcn.0100c715
push eax
call fcn.0100648e
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 3
mov dword [ebp - 8], edx
call fcn.01022ee7
jmp 0x101c86b
push 0x10189c2
push dword [ebp + 8]
push 0x38a
call fcn.01021c39
mov esi, eax
call fcn.01026376
cmp esi, edi
je 0x101c86b
dec esi
push esi
jmp 0x101c608
push 0x1018bbe
push dword [ebp + 8]
push 0x387
call fcn.01021c39
call fcn.01026376
jmp 0x101c86b
mov dword [0x1039458], edi
jmp 0x101c758
mov ecx, 0x5c0
cmp eax, ecx
jg 0x101c786
je 0x101c776
sub eax, 0x5b5
je 0x101c76a
dec eax
je 0x101c74e
sub eax, 3
je 0x101c6ef
dec eax
je 0x101c6c8
sub eax, 4
je 0x101c6bd
dec eax
jne 0x101c79f
mov dword [0x1039444], 1
jmp 0x101c77c
mov dword [0x1039444], edi
jmp 0x101c77c
mov eax, dword [0x1039560]
cmp eax, edi
jne 0x101c6e2
mov eax, dword [0x1039478]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + 0x1039580]
push 0x102190c
push eax
push 0x7c
jmp 0x101c7dc
xor eax, eax
cmp dword [0x1039464], edi
sete al
mov dword [0x1039464], eax
mov eax, dword [0x1039554]
cmp eax, edi
je 0x101c70c
mov esi, eax
jmp 0x101c71d
mov eax, dword [0x1039478]
lea eax, [eax + eax*4]
shl eax, 4
mov esi, dword [eax + 0x1039580]
mov eax, dword [0x10394e4]
or eax, 4
push eax
push dword [0x1039304]
push 0x1f
call fcn.01021676
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x101c86b
call fcn.0101a0b4
jmp 0x101c86b
mov dword [0x1039458], 0xfffffffc
push edi
push 1
push 0x406
call fcn.0101c24b
jmp 0x101c86b
mov dword [0x1039458], 4
jmp 0x101c758
mov dword [0x1039444], esi
call fcn.01021580
jmp 0x101c86b
sub eax, 0x5dd
je 0x101c84f
dec eax
je 0x101c7f8
dec eax
je 0x101c7e6
dec eax
je 0x101c7b8
sub eax, 0x68
je 0x101c7ac
push dword [ebp + 0xc]
call fcn.0100afae
jmp 0x101c86b
xor dword [0x10392dc], 0x10
jmp 0x101c86b
cmp dword [0x1037748], esi
je 0x101c86b
mov eax, dword [0x1039478]
lea eax, [eax + eax*4]
push 0x100a8ee
shl eax, 4
push dword [eax + 0x1039580]
push 0x74
call fcn.01021c39
jmp 0x101c86b
push 0x1018f42
push dword [ebp + 8]
push 0x38b
jmp 0x101c65b
mov eax, dword [0x1039478]
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [eax + 0x10395cc]
mov edx, ecx
and edx, 0xf
cmp dl, 3
jne 0x101c818
and ecx, 0xfffffff0
jmp 0x101c81e
and ecx, 0xfffffff3
or ecx, 3
cmp dword [0x1039444], 1
mov dword [eax + 0x10395cc], ecx
je 0x101c837
test cl, 3
jne 0x101c837
push 0xfffffffffffffffe
pop ecx
jmp 0x101c83a
or ecx, 0xffffffff
push 0x13
push edi
push edi
push edi
push edi
push ecx
push dword [eax + 0x1039580]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x101c86b
mov eax, dword [0x1039478]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x1039584]
call fcn.0100c72a
push eax
call fcn.0102133a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc