Function at 0x536478
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 0x53652d
sub eax, 0xb
je 0x5364a4
dec eax
je 0x53652d
jmp 0x5365bd
call fcn.0064e140
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x536526
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 [0x5366d8]
mov eax, 6
call fcn.0053608c
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jle 0x536510
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064e3a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0062036c
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536683
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.0055ddf4
cmp dword [ebp - 0xc], 0xe
jne 0x53656c
cmp byte [ebx + 0x4a], 0
jne 0x53655b
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.gdi32.dll_CopyEnhMetaFileW
mov dword [ebp - 8], eax
jmp 0x5365a2
mov eax, ebx
call fcn.0055e068
call fcn.0061eee4
mov dword [ebp - 8], eax
jmp 0x5365a2
cmp byte [ebx + 0x4a], 0
jne 0x536585
mov edx, dword [0x66f18c]
mov eax, dword [ebx + 0x1c]
call fcn.0061ee1c
mov dword [ebp - 8], eax
jmp 0x5365a2
push 4
push 0
push 0
push 0
mov eax, ebx
call fcn.0055e068
mov edx, dword [eax]
call dword [edx + 0x44]
push eax
call sub.user32.dll_CopyImage
mov dword [ebp - 8], eax
call fcn.0053a6f4
test al, al
je 0x536683
mov dl, 1
mov eax, ebx
call fcn.0055ddf4
jmp 0x536683
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x673010]
jne 0x536631
call fcn.0064e140
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53662a
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov dl, byte [0x5366d8]
xor eax, eax
call fcn.0053608c
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jle 0x536614
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064e380
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0062036c
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536683
mov eax, dword [ebp - 4]
call fcn.004028c0
ret
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x67301c]
jne 0x536645
push ebp
call fcn.0053627c
pop ecx
jmp 0x536683
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x673024]
jne 0x536665
mov eax, dword [ebp + 8]
add eax, 0xffffffce
mov edx, 2
call fcn.0062036c
mov dword [ebp - 8], eax
jmp 0x536683
cmp dword [ebp - 0xc], 0x10
jne 0x536683
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
add eax, 0x3a4
mov edx, 4
call fcn.0062036c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5366d0
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x5366a1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetClipboardData
jmp 0x5366d0
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 0x5366c2
sub edx, 0xc
jne 0x5366ca
mov dword [eax], 0x40
jmp 0x5366d0
mov dword [eax], 2
jmp 0x5366d0
mov dword [eax], 1
pop ebx
mov esp, ebp
pop ebp
ret