Function at 0x405284
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5a4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x94]
call fcn.004057b0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xf4], 0
jne 0x4052c9
xor eax, eax
jmp 0x405626
push 0x10
call fcn.004022b0
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x60], 0
je 0x4052f0
mov ecx, dword [ebp - 0x60]
call sub.MFC42.DLL_CMetaFileDC::CMetaFileDC
mov dword [ebp - 0x98], eax
jmp 0x4052fa
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], edx
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00405830
test eax, eax
je 0x4055da
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFRect::constructor_void_]
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xf4]
call dword [sym.imp.JsTools3D.dll_public:_class_CFRect___thiscall_DXF::GetFRect_void_]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFRect::operator_class_CFRect_const__]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const]
fdiv dword [0x4ab908]
fsubr dword [ebp - 0x44]
fstp dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const]
fdiv dword [0x4ab908]
fadd dword [ebp - 0x3c]
fstp dword [ebp - 0x3c]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const]
fdiv dword [0x4ab908]
fsubr dword [ebp - 0x40]
fstp dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const]
fdiv dword [0x4ab908]
fadd dword [ebp - 0x38]
fstp dword [ebp - 0x38]
push 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const]
fstp dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const]
fstp dword [ebp - 0x54]
fld dword [ebp - 0x50]
fcomp dword [0x4ab904]
fnstsw ax
test ah, 1
je 0x4053d8
mov dword [ebp - 0x50], 0x3727c5ac
fld dword [ebp - 0x54]
fcomp dword [0x4ab904]
fnstsw ax
test ah, 1
je 0x4053ef
mov dword [ebp - 0x54], 0x3727c5ac
mov dword [ebp - 0x24], 0x3f800000
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const]
fstp dword [ebp - 0x9c]
lea ecx, [ebp - 0x44]
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const]
fcomp dword [ebp - 0x9c]
fnstsw ax
test ah, 1
je 0x405429
fld dword [0x4ab900]
fdiv dword [ebp - 0x50]
fstp dword [ebp - 0x24]
jmp 0x405435
fld dword [0x4ab900]
fdiv dword [ebp - 0x54]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x54]
fmul dword [ebp - 0x24]
call sub.MSVCRT.dll__ftol
push eax
fld dword [ebp - 0x50]
fmul dword [ebp - 0x24]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0x50]
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_float___thiscall_CFCoor::GetScale_void_const]
fstp dword [ebp - 0x48]
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_class_CFPoint_const____thiscall_CFCoor::GetOrigin_void_const]
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFPoint::constructor_class_CFPoint_const__]
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFPoint::constructor_float__float__float_]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFCoor::SetScale_float_]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFCoor::SetOrigin_class_CFPoint_const__]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x88]
call fcn.00403f50
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xf4]
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_DXF::Draw_class_CDC___class_CFCoor___class_CRect_]
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFCoor::SetScale_float_]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x94]
add ecx, 0x350
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CFCoor::SetOrigin_class_CFPoint_const__]
mov ecx, dword [ebp - 0x14]
call fcn.00405850
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x94]
call fcn.00405790
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], 8
fld dword [ebp - 0x50]
fmul dword [ebp - 0x24]
fmul dword [0x4ab8fc]
call sub.MSVCRT.dll__ftol
mov edx, dword [ebp - 0x4c]
mov dword [edx + 4], eax
fld dword [ebp - 0x54]
fmul dword [ebp - 0x24]
fmul dword [0x4ab8fc]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x58]
push edx
push 3
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4055de
xor eax, eax
jmp 0x405626
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0
je 0x405617
push 1
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
call dword [eax + 4]
mov dword [ebp - 0xa0], eax
jmp 0x405621
mov dword [ebp - 0xa0], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret