Function at 0x53042c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
sub eax, 2
je 0x5304e1
sub eax, 0xb
je 0x530458
dec eax
je 0x5304e1
jmp 0x530571
call fcn.0064d970
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5304da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov dword [eax + 0x16c], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
mov byte [eax + 0x170], 0
push ebp
mov dl, byte [0x53068c]
mov eax, 6
call fcn.00530040
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jle 0x5304c4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064dbd8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0061fed8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x530637
mov eax, dword [ebp - 4]
call fcn.004028c0
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x38]
mov ebx, dword [eax + 0xc]
xor edx, edx
mov eax, ebx
call fcn.00558398
cmp dword [ebp - 0xc], 0xe
jne 0x530520
cmp byte [ebx + 0x4a], 0
jne 0x53050f
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.gdi32.dll_CopyEnhMetaFileW
mov dword [ebp - 8], eax
jmp 0x530556
mov eax, ebx
call fcn.0055860c
call fcn.0061eaec
mov dword [ebp - 8], eax
jmp 0x530556
cmp byte [ebx + 0x4a], 0
jne 0x530539
mov edx, dword [0x669448]
mov eax, dword [ebx + 0x1c]
call fcn.0061ea24
mov dword [ebp - 8], eax
jmp 0x530556
push 4
push 0
push 0
push 0
mov eax, ebx
call fcn.0055860c
mov edx, dword [eax]
call dword [edx + 0x44]
push eax
call sub.user32.dll_CopyImage
mov dword [ebp - 8], eax
call fcn.00534a14
test al, al
je 0x530637
mov dl, 1
mov eax, ebx
call fcn.00558398
jmp 0x530637
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x66bff4]
jne 0x5305e5
call fcn.0064d970
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5305de
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov dl, byte [0x53068c]
xor eax, eax
call fcn.00530040
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jle 0x5305c8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064dbb0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0061fed8
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x530637
mov eax, dword [ebp - 4]
call fcn.004028c0
ret
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x66c000]
jne 0x5305f9
push ebp
call fcn.00530230
pop ecx
jmp 0x530637
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x66c008]
jne 0x530619
mov eax, dword [ebp + 8]
add eax, 0xffffffce
mov edx, 2
call fcn.0061fed8
mov dword [ebp - 8], eax
jmp 0x530637
cmp dword [ebp - 0xc], 0x10
jne 0x530637
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
add eax, 0x3a4
mov edx, 4
call fcn.0061fed8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x530684
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x530655
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetClipboardData
jmp 0x530684
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
sub edx, 2
je 0x530676
sub edx, 0xc
jne 0x53067e
mov dword [eax], 0x40
jmp 0x530684
mov dword [eax], 2
jmp 0x530684
mov dword [eax], 1
pop ebx
mov esp, ebp
pop ebp
ret