Function at 0x538052
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 0x537f25
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 0x53830a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.006202a0
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 [0x676008]
call fcn.00538868
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x537f81
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x80000000
jmp 0x5382ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x537fb5
sub eax, 6
je 0x537fb5
sub eax, 6
jne 0x538086
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 0x5380c0
call fcn.0064ac40
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x538072
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 2
jne 0x537fed
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, dword [ebp - 0x10]
mov dx, 2
mov eax, dword [ebp - 0xc]
call fcn.0064e878
jmp 0x538052
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x53804b
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 [0x67290c]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_CreateDIBitmap
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0064ed90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538052
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov eax, dword [ebp - 0xc]
call fcn.00620ff0
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 0x53807c
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp 0x5380c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00654c98
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 [0x676008]
call fcn.00538954
test al, al
je 0x5381fe
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.00656b70
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.006580fc
jmp 0x53812a
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.006571f4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x53813f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp word [eax], 0x20
jbe 0x53811f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xd
call fcn.00656f88
test eax, eax
je 0x538162
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403de4
jmp 0x538190
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xa
call fcn.00656f88
test eax, eax
je 0x538190
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403de4
jmp 0x538190
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.0065721c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5381aa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006571d8
cmp ax, 0x20
jbe 0x538185
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5381f3
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
shr eax, 1
cmp eax, 0x4b
jle 0x5381d3
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, 0x538330
call fcn.00403ac4
push 0x53833c
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x53833c
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, 3
call fcn.00403b88
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
jmp 0x538209
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403880
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x5382a0
mov eax, dword [0x676008]
inc dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x538233
sub eax, 6
je 0x538233
sub eax, 6
jne 0x53823d
mov ebx, dword [0x671e50]
mov ebx, dword [ebx]
jmp 0x538275
mov edx, 2
mov eax, dword [0x676008]
call fcn.00538954
test al, al
jne 0x538263
mov edx, 8
mov eax, dword [0x676008]
call fcn.00538954
test al, al
je 0x53826d
mov ebx, dword [0x671e50]
mov ebx, dword [ebx]
jmp 0x538275
mov ebx, dword [0x6718b0]
mov ebx, dword [ebx]
lea ecx, [ebp - 0x18]
mov eax, dword [0x676008]
mov edx, dword [eax + 0x3c]
mov eax, ebx
call fcn.006592b4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0065829c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004038bc
mov eax, dword [0x676008]
call fcn.00538dd8
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [0x676008]
mov edx, dword [edx + 0x28]
call fcn.004032c8
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, dword [0x676008]
mov edx, dword [edx + 0x2c]
call fcn.004032c8
mov eax, dword [0x676008]
add eax, 0x28
call fcn.00403274
mov eax, dword [0x676008]
add eax, 0x2c
call fcn.00403274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538311
lea eax, [ebp - 0x18]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403880
ret