Function at 0x410350
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
add eax, 0xffff63bf
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp eax, 5
ja case.default.0x41036b
jmp dword [eax*4 + 0x410c68]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
je 0x410c5c
mov eax, dword [esi + 0x990]
cmp dword [eax + 0xc], 0
jne 0x410c5c
cmp dword [esi + 0x4c], 0
jne 0x410c5c
push 0x4526cc
lea ecx, [esi + 0x998]
call fcn.004017a0
inc dword [esi + 0xa9c]
push 0
push 0x9c42
push 0x111
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
dec dword [esi + 0xa9c]
call dword [eax + 0x60]
mov ecx, dword [esi + 0x990]
mov edi, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
call fcn.004039d0
push eax
mov ecx, esi
call dword [edi + 0x70]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
je 0x410c5c
push str.copy
lea ecx, [esi + 0x998]
call fcn.004017a0
cmp dword [esi + 0x934], 0
jne 0x4104af
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
cmp ecx, edx
mov eax, dword [esi + 0x48]
cmovl edx, ecx
cmp ecx, eax
mov dword [esp + 0x14], edx
cmovg eax, ecx
mov dword [esp + 0x10], eax
sub eax, edx
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x990]
mov ecx, dword [ecx + 8]
add ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.00441410
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410c5c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a4]
inc eax
push eax
push 0x42
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x978]
xor ebp, ebp
mov ebx, eax
cmp dword [ecx], 0xffffffff
je 0x41053a
xor edx, edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x978]
mov ecx, dword [edx + eax + 4]
mov edi, dword [edx + eax + 8]
mov eax, dword [esi + 0x990]
sub edi, ecx
push edi
mov eax, dword [eax + 8]
add eax, ecx
push eax
push ebx
call fcn.00441410
inc ebp
mov word [ebx + edi], 0xa0d
mov eax, dword [esi + 0x978]
add ebx, edi
add esp, 0xc
add ebx, 2
lea edx, [ebp*2]
add edx, ebp
shl edx, 2
cmp dword [edx + eax], 0xffffffff
jne 0x4104f0
push dword [esp + 0x28]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x18]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x978]
xor ebp, ebp
mov ebx, eax
cmp dword [ecx], 0xffffffff
je 0x4105bb
xor edx, edx
mov eax, dword [esi + 0x978]
mov ecx, dword [edx + eax + 4]
mov edi, dword [edx + eax + 8]
mov eax, dword [esi + 0x990]
sub edi, ecx
push edi
mov eax, dword [eax + 8]
add eax, ecx
push eax
push ebx
call fcn.00441410
inc ebp
mov byte [ebx + edi], 0
mov eax, dword [esi + 0x978]
add ebx, edi
add esp, 0xc
inc ebx
lea edx, [ebp*2]
add edx, ebp
shl edx, 2
cmp dword [edx + eax], 0xffffffff
jne 0x410571
mov edi, dword [esp + 0x18]
push edi
mov byte [ebx], 0xff
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a8]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410c5c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0x28]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 1
call esi
push edi
push dword [0x464c30]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call edi
test eax, eax
je 0x410c5c
mov eax, dword [esi + 0x990]
cmp dword [eax + 0xc], 0
jne 0x410c5c
cmp dword [esi + 0x4c], 0
jne 0x410c5c
push str.paste
lea ecx, [esi + 0x998]
call fcn.004017a0
push dword [0x464c30]
call edi
test eax, eax
je 0x4106ea
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
push dword [0x464c30]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x990]
mov edi, eax
push 0
push 0x11
call fcn.00405e50
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [esi + 0x92c]
push dword [esi + 0xc]
call dword [eax + 0x1ac]
mov ecx, dword [esi + 0x990]
call fcn.00403870
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esi + 0x990]
mov edi, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
call fcn.004039d0
push eax
mov ecx, esi
call dword [edi + 0x70]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi]
lea ebp, [esi + 0xc]
push ebp
mov ecx, esi
call dword [eax + 0x194]
mov ecx, dword [esi + 0x990]
test dword [ecx + 0xd8], 0x800000
je 0x41071c
cmp dword [esi + 0x994], 1
je 0x41071c
push 0
push 0x19
call fcn.00405e50
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
je 0x410733
mov ecx, dword [esi + 0x990]
push 0
push 2
call fcn.00405e50
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
push dword [esp + 0x24]
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esi]
push 1
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [esp + 0x2c]
mov ecx, esi
push dword [ebp]
call dword [edi + 0x10]
test ebx, ebx
je 0x410784
mov ecx, dword [esi + 0x990]
call fcn.00403870
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esi + 0x990]
mov edi, dword [esi]
push 0xffffffffffffffff
push dword [ebp]
call fcn.004039d0
push eax
mov ecx, esi
call dword [edi + 0x70]
mov eax, dword [ebp]
push dword [esp + 0x24]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp], eax
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x990]
test dword [eax + 0xd8], 0x800000
je 0x410808
cmp dword [esi + 0x994], 1
je 0x410808
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x200]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x990]
mov dword [ebp], eax
call fcn.00403870
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
push str.select_doc
lea ecx, [esi + 0x998]
call fcn.004017a0
cmp dword [esi + 0x934], 0
je 0x410842
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x19c]
mov eax, dword [esi + 0x990]
mov ecx, esi
mov dword [esi + 0x44], 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [eax + 0x14]
mov dword [esi + 0x48], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi]
call dword [eax + 0x70]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
push str.cutapp
lea ecx, [esi + 0x998]
call fcn.004017a0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4108b3
push eax
push 0x9c41
push 0x111
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
je 0x410c5c
mov eax, dword [esi + 0x990]
cmp dword [eax + 0xc], 0
jne 0x410c5c
cmp dword [esi + 0x4c], 0
jne 0x410c5c
inc dword [esi + 0xa9c]
push 0
push 0x9c45
push 0x111
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi]
mov ecx, esi
dec dword [esi + 0xa9c]
call dword [eax + 0x60]
mov ecx, dword [esi + 0x990]
mov edi, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
call fcn.004039d0
push eax
mov ecx, esi
call dword [edi + 0x70]
mov eax, dword [esi]
mov ecx, esi
push 1
push 1
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
push str.copyapp
lea ecx, [esi + 0x998]
call fcn.004017a0
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x41096a
push eax
push 0x9c42
push 0x111
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
je case.default.0x41036b
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call ebx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, dword [sym.imp.USER32.dll_CloseClipboard]
call ebp
cmp dword [esi + 0x934], 0
jne 0x410a63
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
cmp edx, ecx
mov eax, dword [esi + 0x48]
push dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmovl ecx, edx
cmp edx, eax
mov dword [esp + 0x18], ecx
cmovg eax, edx
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
inc ecx
add eax, ecx
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x20], eax
call ecx
push dword [esp + 0x18]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x990]
mov ecx, dword [ecx + 8]
add ecx, dword [esp + 0x18]
push ecx
push edi
call ebx
add eax, edi
push eax
call fcn.00441410
mov edi, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
test eax, eax
je case.default.0x41036b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call ebp
jmp case.default.0x41036b
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x1a4]
mov dword [esp + 0x1c], eax
lea ecx, [eax + 1]
add ecx, edi
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0x978]
add ebx, edi
xor ebp, ebp
cmp dword [ecx], 0xffffffff
je 0x410afa
xor edx, edx
nop
mov eax, dword [esi + 0x978]
mov ecx, dword [edx + eax + 4]
mov edi, dword [edx + eax + 8]
mov eax, dword [esi + 0x990]
sub edi, ecx
push edi
mov eax, dword [eax + 8]
add eax, ecx
push eax
push ebx
call fcn.00441410
inc ebp
mov word [ebx + edi], 0xa0d
mov eax, dword [esi + 0x978]
add ebx, edi
add esp, 0xc
add ebx, 2
lea edx, [ebp*2]
add edx, ebp
shl edx, 2
cmp dword [edx + eax], 0xffffffff
jne 0x410ab0
mov ebp, dword [esp + 0x18]
mov byte [ebx], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call ebx
push dword [0x464c30]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x410bfb
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
push dword [0x464c30]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
call ecx
push edi
mov ebp, eax
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
xor edi, edi
cmp byte [ebp], 0xff
je 0x410b5b
inc edi
cmp byte [edi + ebp], 0xff
jne 0x410b54
mov eax, dword [esp + 0x1c]
inc eax
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
push ebp
push ebx
call fcn.00441410
mov ecx, dword [esi + 0x978]
add esp, 0xc
add ebx, edi
xor ebp, ebp
cmp dword [ecx], 0xffffffff
je 0x410be6
xor edx, edx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0x978]
mov ecx, dword [edx + eax + 4]
mov edi, dword [edx + eax + 8]
mov eax, dword [esi + 0x990]
sub edi, ecx
push edi
mov eax, dword [eax + 8]
add eax, ecx
push eax
push ebx
call fcn.00441410
inc ebp
mov byte [ebx + edi], 0
mov eax, dword [esi + 0x978]
add ebx, edi
add esp, 0xc
inc ebx
lea edx, [ebp*2]
add edx, ebp
shl edx, 2
cmp dword [edx + eax], 0xffffffff
jne 0x410ba0
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ebx], 0xff
mov ebx, dword [esp + 0x1c]
push ebx
call eax
mov ebp, dword [esp + 0x18]
jmp 0x410bfd
xor ebx, ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1a8]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.default.0x41036b
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 1
call edi
test ebx, ebx
je 0x410c33
push ebx
push dword [0x464c30]
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esi + 0x990]
push 0
push dword [esp + 0x2c]
mov eax, dword [ecx + 0x58]
add eax, 5
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10