Function at 0x418f40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477a28
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [0x4a2004]
test al, 1
jne 0x418f91
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 0x20
lea eax, [ebp - 0x5c]
mov ecx, 0x4a2008
push eax
call fcn.00410310
mov dword [ebp - 4], 0
mov eax, dword [0x4a2004]
test al, 1
jne 0x418fcb
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 0x860
lea eax, [ebp - 0x58]
mov ecx, 0x4a2008
push eax
call fcn.00410310
mov byte [ebp - 4], 1
mov eax, dword [0x4a2004]
test al, 1
jne 0x419005
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 0x967
lea eax, [ebp - 0x54]
mov ecx, 0x4a2008
push eax
call fcn.00410310
mov byte [ebp - 4], 2
mov eax, dword [0x4a2004]
test al, 1
jne 0x41903f
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 1
lea eax, [ebp - 0x64]
mov ecx, 0x4a2008
push eax
call fcn.00410450
mov byte [ebp - 4], 3
mov eax, dword [0x4a2004]
test al, 1
jne 0x419076
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
push 2
lea eax, [ebp - 0x68]
mov ecx, 0x4a2008
push eax
call fcn.00410450
mov byte [ebp - 4], 4
mov eax, dword [0x4a2004]
test al, 1
jne 0x4190ad
or eax, 1
mov dword [0x4a2004], eax
call fcn.00409740
push 0x47b450
call fcn.0044e3dd
add esp, 4
lea eax, [ebp - 0x50]
mov ecx, 0x4a2008
push eax
call fcn.00410d60
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x64]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test esi, esi
jne 0x41939d
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x68]
test edi, edi
jne 0x4193b5
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4193cf
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x4193e9
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x419403
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xa
mov ebx, dword [ebp - 0x50]
test ebx, ebx
jne 0x41941b
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x60]
push 0x3f2
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x38], 0
push dword [eax + 4]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4196f0
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4196f0
nop word [eax + eax]
push 0x30
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00451eb0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xac], 4
push eax
push 0
push 0x104b
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x419302
push eax
lea ecx, [ebp - 0x18]
call fcn.00407540
mov byte [ebp - 4], 0xc
test esi, esi
je 0x419437
push esi
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x38]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x38], ecx
test edi, edi
je 0x419437
push edi
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x3c]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x419437
push eax
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x40]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], ecx
test eax, eax
je 0x419437
push eax
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x4c]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x419437
push eax
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x44]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x44], ecx
test ebx, ebx
je 0x419437
push ebx
push dword [ebp - 0x18]
call fcn.00460bcb
mov ecx, dword [ebp - 0x48]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x18]
mov eax, 1
cmove ecx, eax
add edx, 0xfffffff0
mov dword [ebp - 0x48], ecx
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419302
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 2
push dword [ebp - 0x14]
push 0x100c
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x4191a0
cmp dword [ebp - 0x38], 0
jne 0x419349
cmp dword [ebp - 0x40], 0
jne 0x419349
cmp dword [ebp - 0x44], 0
jne 0x419349
cmp dword [ebp - 0x48], 0
jne 0x419349
cmp dword [ebp - 0x3c], 0
jne 0x419349
cmp dword [ebp - 0x4c], 0
je 0x4196f0
push str.Preferred_DropEffect
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x419441
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
push 0x48b300
call fcn.00430910
add esp, 0xc
xor eax, eax
jmp 0x4196c5
push esi
call ebx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4190d7
push 0x8007000e
call fcn.004064f0
push edi
call ebx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x4190e9
push 0x8007000e
call fcn.004064f0
push eax
call ebx
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
jne 0x4190fb
push 0x8007000e
call fcn.004064f0
push eax
call ebx
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x41910d
push 0x8007000e
call fcn.004064f0
push eax
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x41911f
push 0x8007000e
call fcn.004064f0
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x419131
push 0x8007000e
call fcn.004064f0
push 0x80004005
call fcn.004064f0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x34]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x28]
mov dword [ebp - 0x70], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x74]
lea eax, [eax*2 + 0x34]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4194e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
push 0x48b300
call fcn.00430910
add esp, 0xc
xor eax, eax
jmp 0x4196c5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [eax], 0x14
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 1
add eax, 0x14
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x10], eax
je 0x41954e
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x3c], 0
je 0x419588
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x40], 0
je 0x4195c2
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x44], 0
je 0x4195fc
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x48], 0
je 0x419636
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x4c], 0
je 0x419664
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00452490
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x60]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41969a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
push 0x48b300
call fcn.00430910
add esp, 0xc
xor eax, eax
jmp 0x4196c5
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp - 0x14]
push 0xf
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0x34]
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov dword [ebp - 0x50], eax
push eax
push str.On_Copy__d
push 0x48b300
call fcn.00430910
add esp, 0xc
cmp dword [ebp - 0x50], 0
jne 0x4196f0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x30]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419744
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41975f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41977a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x419798
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4197b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4197d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret