Function at 0x5351fe
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
test dl, dl
je 0x5350d1
add esp, 0xfffffff0
call fcn.00402ab0
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5354b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0061cd68
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.004038bc
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 4]
lea edx, [eax + 8]
mov eax, dword [0x673008]
call fcn.00535a14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x53512d
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x80000000
jmp 0x535498
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x535161
sub eax, 6
je 0x535161
sub eax, 6
jne 0x535232
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_CopyEnhMetaFileW
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
jmp 0x53526c
call fcn.006475c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x53521e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 2
jne 0x535199
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, dword [ebp - 0x10]
mov dx, 2
mov eax, dword [ebp - 0xc]
call fcn.0064b200
jmp 0x5351fe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x5351f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov edi, ebx
push edi
mov esi, ebx
mov eax, dword [esi]
add eax, ebx
mov edx, dword [esi + 0x20]
shl edx, 2
add eax, edx
push eax
push 4
push edi
mov eax, dword [0x66f8a8]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_CreateDIBitmap
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0064b718
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5351fe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov eax, dword [ebp - 0xc]
call fcn.0061dab8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x535228
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp 0x53526c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0065163c
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
pop ecx
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, ebx
call fcn.004028c0
mov edx, 0xd
mov eax, dword [0x673008]
call fcn.00535b00
test al, al
je 0x5353aa
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
mov edx, eax
shr edx, 1
mov eax, 0x4b
call fcn.00653538
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, ebx
call fcn.00403964
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00654ad4
jmp 0x5352d6
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00653bcc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5352eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp word [eax], 0x20
jbe 0x5352cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xd
call fcn.00653960
test eax, eax
je 0x53530e
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403dd4
jmp 0x53533c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xa
call fcn.00653960
test eax, eax
je 0x53533c
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403dd4
jmp 0x53533c
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00653bf4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x535356
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00653bb0
cmp ax, 0x20
jbe 0x535331
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x53539f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
shr eax, 1
cmp eax, 0x4b
jle 0x53537f
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, 0x5354dc
call fcn.00403ab4
push 0x5354e8
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x5354e8
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, 3
call fcn.00403b78
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
jmp 0x5353b5
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403880
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x53544c
mov eax, dword [0x673008]
inc dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x5353df
sub eax, 6
je 0x5353df
sub eax, 6
jne 0x5353e9
mov ebx, dword [0x66ede8]
mov ebx, dword [ebx]
jmp 0x535421
mov edx, 2
mov eax, dword [0x673008]
call fcn.00535b00
test al, al
jne 0x53540f
mov edx, 8
mov eax, dword [0x673008]
call fcn.00535b00
test al, al
je 0x535419
mov ebx, dword [0x66ede8]
mov ebx, dword [ebx]
jmp 0x535421
mov ebx, dword [0x66e848]
mov ebx, dword [ebx]
lea ecx, [ebp - 0x18]
mov eax, dword [0x673008]
mov edx, dword [eax + 0x3c]
mov eax, ebx
call fcn.00655c8c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00654c74
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004038bc
mov eax, dword [0x673008]
call fcn.00535f84
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [0x673008]
mov edx, dword [edx + 0x28]
call fcn.004032c8
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, dword [0x673008]
mov edx, dword [edx + 0x2c]
call fcn.004032c8
mov eax, dword [0x673008]
add eax, 0x28
call fcn.00403274
mov eax, dword [0x673008]
add eax, 0x2c
call fcn.00403274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5354bd
lea eax, [ebp - 0x18]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403880
ret