Function at 0x10016a1c
Capabilities:
Open clipboard

Disassembly:
push 0x4c
mov eax, 0x10034eaf
call fcn.10033558
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
movzx esi, word [ebp + 8]
lea eax, [esi - 0x9ca4]
cmp eax, 0xc
mov dword [ebp - 0x14], esi
ja case.0x10016a4c.40109
movzx eax, byte [eax + 0x10016d7c]
jmp dword [eax*4 + 0x10016d60]
or dword [ebp - 0x54], 0xffffffff
push 0x2c
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x58], 2
call fcn.1001a850
add esp, 0xc
or dword [ebp - 0x3c], 0xffffffff
push 2
push dword [ebp - 0x54]
lea ebx, [edi + 8]
push ebx
call fcn.1001384b
test eax, eax
mov dword [ebp - 0x54], eax
jl 0x10016aff
push eax
push ebx
call fcn.1001794a
mov esi, eax
test esi, esi
je 0x10016a71
cmp word [ebp + 8], 0x9ca6
jne 0x10016aad
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x3c]
xor ecx, ecx
test eax, eax
sete cl
push ecx
jmp 0x10016ab9
xor eax, eax
cmp word [ebp + 8], 0x9ca4
sete al
push eax
call fcn.100157dc
test al, al
pop ecx
je 0x10016a71
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x58]
push eax
push 0
push 0x104c
push dword [ebx]
call esi
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x54]
push 0x100e
push dword [ebx]
call esi
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x10016a71
push dword [edi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x10016d55
push ebx
push ebx
lea esi, [edi + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1004
push dword [esi]
call edi
mov dword [ebp + 8], eax
cmp ebx, dword [ebp + 8]
jge 0x10016d55
push 2
push ebx
push 0x102c
push dword [esi]
call edi
push 2
not eax
and eax, 2
push eax
push ebx
push esi
call fcn.1001368f
inc ebx
jmp 0x10016b24
push ebx
push ebx
lea esi, [edi + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1004
push dword [esi]
call edi
mov dword [ebp + 8], eax
cmp ebx, dword [ebp + 8]
jge 0x10016d55
push 2
push ebx
push 0x102c
push dword [esi]
call edi
test al, 2
jne 0x10016b86
push 2
push 2
push ebx
push esi
call fcn.1001368f
inc ebx
jmp 0x10016b62
cmp dword [edi + 0x30], ebx
je 0x10016d55
or dword [ebp + 8], 0xffffffff
push ebx
push dword [ebp + 8]
lea esi, [edi + 8]
push esi
call fcn.1001384b
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x10016d55
push eax
push esi
call fcn.1001794a
mov esi, eax
cmp esi, ebx
je 0x10016b96
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x3c]
cmp eax, ebx
je 0x10016b96
mov eax, dword [edi + 0x30]
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push esi
push eax
push ecx
call dword [edx + 0x24]
jmp 0x10016b96
push 3
push 0xffffffffffffffff
lea esi, [edi + 8]
push esi
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
call fcn.1001384b
push eax
push esi
call fcn.1001794a
mov esi, eax
cmp esi, ebx
je 0x10016d55
mov eax, dword [ebp - 0x14]
sub eax, 0x9caa
mov dword [ebp + 8], ebx
je 0x10016c39
dec eax
je 0x10016c30
dec eax
jne 0x10016c52
mov eax, dword [edi + 0x2c]
test byte [eax + 0x28], 0x20
mov dword [ebp + 8], 1
je 0x10016c52
mov dword [ebp + 8], 3
jmp 0x10016c52
mov dword [ebp + 8], 4
jmp 0x10016c52
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x28]
test al, 0x10
je 0x10016c4a
mov dword [ebp + 8], 1
test al, 0x20
je 0x10016c52
or dword [ebp + 8], 2
mov eax, dword [edi + 0x2c]
test byte [eax + 0x28], 1
je 0x10016ca3
mov ebx, edi
call fcn.10017338
test eax, eax
je 0x10016ca3
and dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
push edx
push esi
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10016c96
mov edi, dword [edi + 0x28]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
call fcn.10015315
pop ecx
pop ecx
push dword [ebp + 0xc]
jmp 0x10016d28
mov byte [ebp - 4], 0
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi]
mov ebx, dword [edi + 0x30]
push esi
call dword [eax + 0x48]
mov ecx, dword [ebx]
push esi
push eax
push ebx
call dword [ecx + 0x1c]
test eax, eax
jl 0x10016d55
mov eax, dword [ebp + 8]
mov dword [edi + 0x68], esi
mov dword [edi + 0x6c], eax
jmp 0x10016d55
push 3
push 0xffffffffffffffff
add edi, 8
push edi
call fcn.1001384b
push eax
push edi
call fcn.1001794a
cmp eax, ebx
je 0x10016d55
mov dword [ebp + 8], ebx
sub esi, 0x9cae
mov byte [ebp - 4], 2
je 0x10016d3c
dec esi
je 0x10016d30
dec esi
jne 0x10016d05
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x60]
cmp eax, ebx
jl 0x10016d25
push dword [edi]
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, ebx
je 0x10016d25
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.1001523f
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10016d55
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x5c]
jmp 0x10016d01
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x58]
jmp 0x10016d01
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
call fcn.100335fd
ret 8