Function at 0x412d10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f741
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b88c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5b9e5c]
mov ebx, ecx
mov ecx, dword [eax + 0x20]
push ecx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x412d5a
xor al, al
jmp 0x412fda
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xe
mov byte [ebp - 0x21], 0
call edi
test eax, eax
je 0x412f0d
push 0xe
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x412f02
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFileBits]
mov esi, eax
test esi, esi
je 0x412f02
push esi
mov ecx, 0x5bb1c0
call fcn.00411080
mov edi, eax
cmp byte [edi], 0
je 0x412f02
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFileBits]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
push esi
push 0
fstp qword [ebp - 0x30]
call dword [sym.imp.USER32.dll_ReleaseDC]
fld qword [ebp - 0x30]
fdiv qword [str.ffffff9_]
fild dword [edi + 0x20]
fld qword [0x560618]
fdiv st(1), st(0)
fxch st(1)
fmul st(2)
fild dword [edi + 0x24]
fdivrp st(2)
fxch st(1)
fmulp st(2)
fld st(0)
call fcn.00536300
fld st(1)
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.00536300
fisub dword [ebp - 0x28]
mov ebx, eax
fld qword [0x5605a0]
mov dword [ebp - 0x2c], ebx
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x412e2f
inc esi
mov dword [ebp - 0x28], esi
fild dword [ebp - 0x2c]
fsubp st(2)
fcompp
fnstsw ax
test ah, 0x41
jp 0x412e3e
inc ebx
push 0x34
call fcn.00432aa8
add esp, 4
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
je 0x412e63
push ebx
push esi
mov ecx, eax
call fcn.0040ee90
mov esi, eax
xor ecx, ecx
jmp 0x412e65
xor esi, esi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
push 0xffffff
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
call fcn.0040c770
mov eax, dword [esi + 4]
push 3
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
push 0x148
call fcn.00432aa8
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x412ece
mov ecx, dword [ebp - 0x28]
push ebx
push ecx
mov ecx, eax
call fcn.00403590
jmp 0x412ed0
xor eax, eax
mov edx, dword [ebp - 0x38]
push esi
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edx + 8], eax
call fcn.00401880
push edi
call fcn.00535a10
add esp, 4
mov ecx, esi
call fcn.0040c6a0
push esi
call fcn.00432ad7
add esp, 4
mov byte [ebp - 0x21], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x412fd7
push 8
xor esi, esi
call edi
test eax, eax
je 0x412f25
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
xor bl, bl
jmp 0x412f4f
push 2
call edi
test eax, eax
je 0x412f4c
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push 2
call esi
push 9
mov edi, eax
call esi
push eax
push edi
mov ecx, ebx
call fcn.00411600
mov esi, eax
mov bl, 1
jmp 0x412f4f
mov bl, byte [ebp - 0x21]
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x412fd7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push 0x148
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
call fcn.00432aa8
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x412f9a
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push edx
push ecx
mov ecx, eax
call fcn.00403590
jmp 0x412f9c
xor eax, eax
mov edx, dword [ebp - 0x38]
push 0xffffff
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edx + 8], eax
call fcn.004017a0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
push edi
call fcn.00401dc0
push esi
mov byte [ebp - 0x21], 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
je 0x412fd7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535a9b
mov esp, ebp
pop ebp
ret