Function at 0x52f196
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 0x52f069
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 0x52f445
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0061c8e8
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 [0x66bfec]
call fcn.0052f9c8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x52f0c5
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x80000000
jmp 0x52f427
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x52f0f9
sub eax, 6
je 0x52f0f9
sub eax, 6
jne 0x52f1ca
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 0x52f204
call fcn.006476e4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x52f1b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 2
jne 0x52f131
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, dword [ebp - 0x10]
mov dx, 2
mov eax, dword [ebp - 0xc]
call fcn.0064b31c
jmp 0x52f196
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x52f18f
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 [0x66974c]
mov eax, dword [eax]
push eax
call sub.gdi32.dll_CreateDIBitmap
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0064b834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f196
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov eax, dword [ebp - 0xc]
call fcn.0061d6c0
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 0x52f1c0
mov eax, dword [ebp - 0xc]
call fcn.004028c0
jmp 0x52f204
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00650d88
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 [0x66bfec]
call fcn.0052fab4
test al, al
je 0x52f342
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.00652c54
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.0065418c
jmp 0x52f26e
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.006532d8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x52f283
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp word [eax], 0x20
jbe 0x52f263
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xd
call fcn.0065306c
test eax, eax
je 0x52f2a6
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403de4
jmp 0x52f2d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dx, 0xa
call fcn.0065306c
test eax, eax
je 0x52f2d4
mov edx, eax
dec edx
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403de4
jmp 0x52f2d4
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00653300
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x52f2ee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.006532bc
cmp ax, 0x20
jbe 0x52f2c9
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x52f337
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalSize
shr eax, 1
cmp eax, 0x4b
jle 0x52f317
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, 0x52f46c
call fcn.00403ac4
push 0x52f478
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x52f478
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 0x52f34d
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00403880
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x52f3db
mov eax, dword [0x66bfec]
inc dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 2
je 0x52f377
sub eax, 6
je 0x52f377
sub eax, 6
jne 0x52f37e
mov ebx, 0x52f47c
jmp 0x52f3b0
mov edx, 2
mov eax, dword [0x66bfec]
call fcn.0052fab4
test al, al
jne 0x52f3a4
mov edx, 8
mov eax, dword [0x66bfec]
call fcn.0052fab4
test al, al
je 0x52f3ab
mov ebx, 0x52f47c
jmp 0x52f3b0
mov ebx, 0x52f490
lea ecx, [ebp - 0x18]
mov eax, dword [0x66bfec]
mov edx, dword [eax + 0x3c]
mov eax, ebx
call fcn.00655344
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0065432c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004038bc
mov eax, dword [0x66bfec]
call fcn.0052ff38
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [0x66bfec]
mov edx, dword [edx + 0x28]
call fcn.004032c8
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, dword [0x66bfec]
mov edx, dword [edx + 0x2c]
call fcn.004032c8
mov eax, dword [0x66bfec]
add eax, 0x28
call fcn.00403274
mov eax, dword [0x66bfec]
add eax, 0x2c
call fcn.00403274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f44c
lea eax, [ebp - 0x18]
call fcn.00403274
lea eax, [ebp - 0x14]
call fcn.00403880
ret