Function at 0x401c80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6338
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0x11], al
xor esi, esi
mov dword [ebp - 4], esi
test al, al
je 0x401e22
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x401e1c
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
mov edi, dword [ecx + 0xc]
sub edi, dword [ecx + 8]
add edi, dword [ecx + 4]
mov dword [ebx], esi
je 0x401f83
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
add eax, edi
mov dword [ebp - 0x2c], 0x4ce4d0
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004639a0
mov edx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], edi
test byte [eax + 3], 1
mov byte [ebp + 0xf], 0
je 0x401e38
call fcn.00401280
mov esi, eax
test esi, esi
jle 0x401e38
push esi
call fcn.004a8a24
add esp, 4
mov edi, eax
push esi
push edi
lea ecx, [ebp - 0x50]
call fcn.004012d0
mov ecx, dword [ebx]
push esi
push edi
push ecx
call fcn.00463e50
add esp, 0xc
push 0
push 0
push esi
push edi
push 0
push 0xfde9
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x401dfa
add eax, eax
push eax
push 0x2002
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401df7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401df0
mov edx, dword [ebp - 0x18]
push edx
push eax
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jle 0x401df0
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x401dec
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov ebx, ecx
jmp 0x401dfa
mov byte [ebp + 0xf], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x401e07
push edi
call fcn.004a9011
add esp, 4
cmp byte [ebp + 0xf], 0
je 0x401e38
lea ecx, [ebp - 0x50]
call fcn.00463b50
mov dword [ebp - 0x2c], vtable.rdr::InStream.0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax]
shr ecx, 0x19
test cl, 1
je 0x401ea1
lea esi, [ebp - 0x50]
call fcn.00401280
mov edi, eax
test edi, edi
jle 0x401ea1
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401e0d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401e9a
push edi
push eax
lea ecx, [ebp - 0x50]
call fcn.004012d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x544890]
push esi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x401e9a
mov dword [ebx + 8], edi
jmp 0x401ea1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
shr edx, 0x1a
test dl, 1
je 0x401f0d
lea esi, [ebp - 0x50]
call fcn.00401280
mov edi, eax
test edi, edi
jle 0x401f0d
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401e0d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401f06
push edi
push eax
lea ecx, [ebp - 0x50]
call fcn.004012d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x544894]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x401f06
mov dword [ebx + 0xc], edi
jmp 0x401f0d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
shr eax, 0x1b
test al, 1
je 0x401f74
lea esi, [ebp - 0x50]
call fcn.00401280
mov edi, eax
test edi, edi
jle 0x401f74
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x401e0d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401f6d
push edi
push eax
lea ecx, [ebp - 0x50]
call fcn.004012d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0x11
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x401f6d
mov dword [ebx + 0x10], edi
jmp 0x401f74
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x50]
call fcn.00463b50
mov dword [ebp - 0x2c], vtable.rdr::InStream.0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc