Function at 0x408da7
Capabilities:
Open clipboard
Resolve function by parsing pe exports
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42134e
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x432034]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
push 0x20
push eax
call fcn.004010c5
call fcn.004046b5
lea eax, [esp + 0x34]
push 0x60
xor edi, edi
push eax
mov dword [esp + 0xd0], edi
call fcn.004010c5
call fcn.004046b5
lea eax, [esp + 0x40]
push 0x167
push eax
mov byte [esp + 0xd0], 1
call fcn.004010c5
call fcn.004046b5
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xcc], 2
call fcn.004010c5
call fcn.004046da
lea eax, [esp + 0x38]
push 1
push eax
mov byte [esp + 0xd0], 3
call fcn.004010c5
mov ebx, eax
call fcn.0040471c
lea eax, [esp + 0x30]
push 2
push eax
mov byte [esp + 0xd0], 4
call fcn.004010c5
mov ebx, eax
call fcn.0040471c
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xcc], 5
call fcn.004010c5
mov ecx, eax
call fcn.00404c17
mov byte [esp + 0xc8], 6
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp dword [esp + 0x38], edi
jne 0x408eb2
mov dword [esp + 0x14], edi
mov byte [esp + 0xc8], 7
cmp dword [esp + 0x30], edi
jne 0x408eca
mov dword [esp + 0x24], edi
jmp 0x408ed8
push dword [esp + 0x38]
call esi
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x408e9e
push 0x8007000e
call fcn.004015fb
push dword [esp + 0x30]
call esi
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x408ec0
mov byte [esp + 0xc8], 8
cmp dword [esp + 0x3c], edi
jne 0x408eec
mov dword [esp + 0x1c], edi
jmp 0x408efa
push dword [esp + 0x3c]
call esi
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x408ec0
mov byte [esp + 0xc8], 9
cmp dword [esp + 0x34], edi
jne 0x408f0e
mov dword [esp + 0x18], edi
jmp 0x408f1c
push dword [esp + 0x34]
call esi
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x408ec0
mov byte [esp + 0xc8], 0xa
cmp dword [esp + 0x48], edi
jne 0x408f30
mov dword [esp + 0x20], edi
jmp 0x408f3e
push dword [esp + 0x48]
call esi
mov dword [esp + 0x20], eax
cmp eax, edi
je 0x408ec0
mov byte [esp + 0xc8], 0xb
cmp dword [esp + 0x40], edi
jne 0x408f52
mov dword [esp + 0x2c], edi
jmp 0x408f64
push dword [esp + 0x40]
call esi
mov dword [esp + 0x2c], eax
cmp eax, edi
je 0x408ec0
mov byte [esp + 0xc8], 0xc
mov ebx, dword [esp + 0x4c]
cmp ebx, edi
jne 0x408f7a
mov dword [esp + 0x28], edi
jmp 0x408f89
push ebx
call esi
mov dword [esp + 0x28], eax
cmp eax, edi
je 0x408ec0
mov eax, dword [ebp + 8]
push 0x3f2
mov byte [esp + 0xcc], 0xd
push dword [eax + 4]
mov dword [esp + 0x58], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x44], eax
cmp eax, edi
jne 0x408ffe
push dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x14]
call esi
lea eax, [ebx - 0x10]
jmp 0x40946a
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
mov edi, 0x100c
push edi
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409433
push 0x30
lea eax, [esp + 0x90]
push 0
push eax
call sub.MSVCR100.dll_memset
and dword [esp + 0x9c], 0
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0
push 0x104b
push dword [esp + 0x50]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], 4
call esi
mov ecx, dword [esp + 0xa8]
test ecx, ecx
je 0x40914a
lea eax, [esp + 0x10]
push eax
call fcn.00405495
mov byte [esp + 0xc8], 0xe
push dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x40909a
mov dword [esp + 0x50], 1
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x4090b4
mov dword [esp + 0x68], 1
push dword [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x4090ce
mov dword [esp + 0x64], 1
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x4090e8
mov dword [esp + 0x58], 1
push dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x409102
mov dword [esp + 0x5c], 1
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x40911c
mov dword [esp + 0x54], 1
push dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
call fcn.0040a9d2
test eax, eax
jne 0x409136
mov dword [esp + 0x60], 1
mov byte [esp + 0xc8], 0xd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00401613
push 2
push ebx
push edi
push dword [esp + 0x50]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40901c
xor eax, eax
cmp dword [esp + 0x50], eax
jne 0x40918f
cmp dword [esp + 0x64], eax
jne 0x40918f
cmp dword [esp + 0x5c], eax
jne 0x40918f
cmp dword [esp + 0x54], eax
jne 0x40918f
cmp dword [esp + 0x68], eax
jne 0x40918f
cmp dword [esp + 0x58], eax
jne 0x40918f
cmp dword [esp + 0x60], eax
je 0x409433
push str.Preferred_DropEffect
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
mov edi, 0x2042
push edi
mov dword [esp + 0x88], eax
call ebx
mov esi, eax
mov dword [esp + 0x6c], esi
test esi, esi
jne 0x4091e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_1_fail__err__lu
mov ecx, 0x427118
call fcn.00416d9e
pop ecx
pop ecx
jmp 0x409405
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
push dword [esp + 0x24]
mov dword [esp + 0x7c], eax
call esi
push dword [esp + 0x1c]
mov dword [esp + 0x74], eax
call esi
push dword [esp + 0x2c]
mov dword [esp + 0x80], eax
call esi
push dword [esp + 0x28]
mov dword [esp + 0x88], eax
call esi
push dword [esp + 0x20]
mov dword [esp + 0x78], eax
call esi
push dword [esp + 0x18]
mov dword [esp + 0x14], eax
call esi
add eax, dword [esp + 0x10]
add eax, dword [esp + 0x74]
add eax, dword [esp + 0x84]
add eax, dword [esp + 0x7c]
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x78]
lea eax, [eax + eax + 0x34]
push eax
push edi
call ebx
xor edi, edi
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x409280
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GlobalAlloc_2_fail__err__lu
jmp 0x4091cf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esp + 0x50], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov edi, dword [sym.imp.MSVCR100.dll_memcpy]
mov dword [eax], 0x14
mov dword [eax + 0x10], 1
lea ebx, [eax + 0x14]
je 0x4092cb
push dword [esp + 0x14]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x18]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x14]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x68], 0
je 0x4092f1
push dword [esp + 0x24]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x28]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x24]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x64], 0
je 0x409317
push dword [esp + 0x1c]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x20]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x1c]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x5c], 0
je 0x40933d
push dword [esp + 0x2c]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x30]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x2c]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x54], 0
je 0x409363
push dword [esp + 0x28]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x2c]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x28]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x58], 0
je 0x409389
push dword [esp + 0x18]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x1c]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x18]
call esi
lea ebx, [ebx + eax*2 + 2]
cmp dword [esp + 0x60], 0
je 0x4093ab
push dword [esp + 0x20]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x24]
push ebx
call edi
add esp, 0xc
push dword [esp + 0x20]
call esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4093d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenClipboard_fail__err__lu
jmp 0x4091cf
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push 0xf
call esi
push dword [esp + 0x6c]
push dword [esp + 0x84]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x44], 1
push dword [esp + 0x44]
mov ecx, 0x427118
push str.On_Copy__d
call fcn.00416d9e
cmp dword [esp + 0x4c], 0
pop ecx
pop ecx
jne 0x409433
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [esp + 0x6c]
call esi
push dword [esp + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [esp + 0x2c]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call esi
push dword [esp + 0x24]
call esi
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.00401613
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4