Function at 0x1002fe6c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039a2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x84]
call fcn.10030250
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xf4], 0
jne 0x1002feb1
xor eax, eax
jmp 0x100301ba
push 0x10
call fcn.10020610
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x60], 0
je 0x1002fed8
mov ecx, dword [ebp - 0x60]
call sub.MFC42.DLL_CMetaFileDC::CMetaFileDC
mov dword [ebp - 0x88], eax
jmp 0x1002fee2
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x88]
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.100302b0
test eax, eax
je 0x10030180
lea ecx, [ebp - 0x44]
call sub.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 sub.JsTools3D.dll_public:_class_CFRect___thiscall_DXF::GetFRect_void_
push eax
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_void___thiscall_CFRect::operator_class_CFRect_const__
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const
fdiv dword [0x1003eed8]
fsubr dword [ebp - 0x44]
fstp dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const
fdiv dword [0x1003eed8]
fadd dword [ebp - 0x3c]
fstp dword [ebp - 0x3c]
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const
fdiv dword [0x1003eed8]
fsubr dword [ebp - 0x40]
fstp dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const
fdiv dword [0x1003eed8]
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 sub.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const
fstp dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const
fstp dword [ebp - 0x54]
fld dword [ebp - 0x50]
fcomp dword [0x1003eed4]
fnstsw ax
test ah, 1
je 0x1002ffb7
mov dword [ebp - 0x50], 0x3727c5ac
fld dword [ebp - 0x54]
fcomp dword [0x1003eed4]
fnstsw ax
test ah, 1
je 0x1002ffce
mov dword [ebp - 0x54], 0x3727c5ac
mov dword [ebp - 0x24], 0x3f800000
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Width_void_const
fstp dword [ebp - 0x8c]
lea ecx, [ebp - 0x44]
call sub.JsTools3D.dll_public:_float___thiscall_CFRect::Height_void_const
fcomp dword [ebp - 0x8c]
fnstsw ax
test ah, 1
je 0x10030006
fld dword [0x1003eed0]
fdiv dword [ebp - 0x50]
fstp dword [ebp - 0x24]
jmp 0x10030012
fld dword [0x1003eed0]
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 - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_float___thiscall_CFShoot::GetC_void_const
fstp dword [ebp - 0x48]
mov ecx, dword [ebp - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_class_CFPoint_const____thiscall_CFCoor::GetOrigin_void_const
push eax
lea ecx, [ebp - 0x20]
call sym.STools.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 sym.STools.dll_public:_void___thiscall_CFPoint::constructor_float__float__float_
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_void___thiscall_CFShoot::SetC_float_
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_void___thiscall_CFCoor::SetOrigin_class_CFPoint_const__
mov edx, dword [ebp - 0x84]
add edx, 0x350
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xf4]
call sub.JsTools3D.dll_public:_void___thiscall_DXF::Draw_class_CDC___class_CFCoor__
mov edx, dword [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_void___thiscall_CFShoot::SetC_float_
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x350
call sym.STools.dll_public:_void___thiscall_CFCoor::SetOrigin_class_CFPoint_const__
mov ecx, dword [ebp - 0x14]
call fcn.100302d0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x84]
call fcn.10030290
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x10
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [edx], 8
fld dword [ebp - 0x50]
fmul dword [ebp - 0x24]
fmul dword [0x1003eecc]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
fld dword [ebp - 0x54]
fmul dword [ebp - 0x24]
fmul dword [0x1003eecc]
call sub.MSVCRT.dll__ftol
mov edx, dword [ebp - 0x4c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x58]
push eax
push 3
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x10030184
xor eax, eax
jmp 0x100301ba
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x7c], 0
je 0x100301ab
push 1
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x7c]
call dword [edx + 4]
mov dword [ebp - 0x90], eax
jmp 0x100301b5
mov dword [ebp - 0x90], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret