Function at 0x407eb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415c18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x42001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004010b0
mov ecx, eax
xor eax, eax
lea esi, [ebp - 0x30]
call fcn.004043f0
lea eax, [ebp - 0x2c]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004010b0
mov ecx, eax
call fcn.00404420
lea ecx, [ebp - 0x28]
push 2
push ecx
mov byte [ebp - 4], 1
call fcn.004010b0
mov ecx, eax
call fcn.00404420
mov byte [ebp - 4], 2
call fcn.004010b0
push eax
lea esi, [ebp - 0x24]
call fcn.00404a80
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
push edx
lea ecx, [ebp - 0x18]
call esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call esi
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call esi
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov ecx, dword [eax + 4]
push 0x3f2
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
cmp edi, ebx
je 0x408231
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x408231
jmp 0x407fb0
push 0x30
lea edx, [ebp - 0x78]
push 0
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x104b
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], 4
call ebx
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x408075
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
test eax, eax
jne 0x408012
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
test eax, eax
jne 0x408030
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
test eax, eax
jne 0x40804e
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::CompareNoCase_wchar_t_const__const]
test eax, eax
jne 0x40806c
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push 2
push esi
push 0x100c
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x407fb0
cmp dword [ebp - 0x34], 0
jne 0x4080a7
cmp dword [ebp - 0x3c], 0
jne 0x4080a7
cmp dword [ebp - 0x40], 0
jne 0x4080a7
cmp dword [ebp - 0x38], 0
je 0x408231
push str.Preferred_DropEffect
xor edi, edi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x44], ebx
je 0x408225
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [sym.imp.Common.dll_public:_unsigned_int___thiscall_CTXBSTR::Length_void_const]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
mov edi, eax
call esi
lea ecx, [ebp - 0x18]
add edi, eax
call esi
add eax, edi
lea eax, [eax + eax + 0x28]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x408225
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
mov dword [eax], 0x14
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 1
lea ebx, [eax + 0x14]
je 0x408167
lea ecx, [ebp - 0x18]
call esi
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x18]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [ebp - 0x38], 0
je 0x408193
lea ecx, [ebp - 0x1c]
call esi
lea edx, [eax + eax + 2]
push edx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x1c]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [ebp - 0x3c], 0
je 0x4081bf
lea ecx, [ebp - 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x14]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [ebp - 0x40], 0
je 0x4081e7
lea ecx, [ebp - 0x10]
call esi
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x10]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408222
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 0xf
call esi
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push ecx
push edx
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x408231
mov ebx, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call esi
push ebx
call esi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x18]
call esi
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4