Function at 0x180010340
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rsi, r9
mov rdi, r8
mov rax, rdx
mov r15, rcx
mov r14d, 1
xor r12d, r12d
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xf0], r12
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xf0], 7
mov word [rsp + 0xd8], r12w
lea rbx, [0x1800d8b74]
mov rdx, rbx
test rax, rax
cmovne rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1800034f0
nop
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], 7
mov word [rsp + 0xb8], r12w
mov rdx, rbx
test rdi, rdi
cmovne rdx, rdi
lea rcx, [rsp + 0xb8]
call fcn.1800034f0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x108], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x108], xmm1
mov word [rsp + 0xf8], r12w
test rsi, rsi
cmovne rbx, rsi
mov rdx, rbx
lea rcx, [rsp + 0xf8]
call fcn.1800034f0
nop
cmp qword [rsp + 0xe8], r12
je 0x18001090d
cmp qword [rsp + 0xc8], r12
je 0x18001090d
mov rcx, qword [r15]
test rcx, rcx
je 0x180010906
lea rdx, str.StRg
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.CreateCAD
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.CloseCAD
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.GetBoxCAD
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.CADSetSHXOptions
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.GetLastErrorCAD
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.SaveCADtoFileWithXMLParams
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
test rsi, rsi
je 0x1800108d8
test rbx, rbx
je 0x1800108d8
test r13, r13
je 0x1800108d8
test rdi, rdi
je 0x1800108d8
test r12, r12
je 0x1800108d8
test rax, rax
je 0x1800108d8
lea r8, str.177BXK_FIO2H1_CGCUXV_14TU26_PS8OM1_UKQS7T
lea rdx, str.zhangt_2345.com
lea rcx, str.Shanghai_2345_Network_Technology_Co.__Ltd
call rsi
mov rdx, qword [rsp + 0x48]
call fcn.180010bd0
mov rcx, qword [0x180124ef8]
test rcx, rcx
je 0x180010592
mov dword [rsp + 0x88], 0x64
mov dword [rsp + 0x90], 0xa
mov rax, qword [rcx]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
call qword [rax + 0x10]
lea rdx, [rsp + 0xd8]
cmp qword [rsp + 0xf0], 8
cmovae rdx, qword [rsp + 0xd8]
xor ecx, ecx
call rbx
mov rsi, rax
test rax, rax
jne 0x1800105e9
lea rcx, [rsp + 0xf8]
call fcn.180003470
nop
lea rcx, [rsp + 0xb8]
call fcn.180003470
nop
lea rcx, [rsp + 0xd8]
call fcn.180003470
mov eax, r14d
jmp 0x180010939
lea r8, [rsp + 0x84]
lea rdx, [rsp + 0x80]
mov rcx, rsi
call rdi
cvttss2si ebx, dword [rsp + 0x80]
mov dword [rsp + 0x40], ebx
cvttss2si edi, dword [rsp + 0x84]
mov dword [rsp + 0x44], edi
lea rdx, [0x1800d9194]
lea rcx, [rsp + 0xb8]
call fcn.180011370
mov r8, rax
mov r9, 0xffffffffffffffff
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xb8]
call fcn.1800051a0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x60]
call fcn.180005300
nop
mov rdx, rax
call fcn.180010d40
test al, al
jne 0x1800106a2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x60]
call fcn.180005300
nop
mov rdx, rax
call fcn.180010ff0
test al, al
je 0x180010734
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xf8]
call fcn.180011180
test al, al
je 0x18001072c
movss xmm2, dword [rsp + 0x80]
movss xmm0, dword [0x1800e35e8]
comiss xmm2, xmm0
jbe 0x18001072c
movss xmm3, dword [rsp + 0x84]
comiss xmm3, xmm0
jbe 0x18001072c
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm3
movss dword [rsp + 0x54], xmm1
movd xmm0, dword [rsp + 0x40]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
movss dword [rsp + 0x48], xmm0
comiss xmm0, xmm1
ja 0x18001070f
movaps xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm2
cvttss2si ebx, xmm0
mov dword [rsp + 0x40], ebx
mulss xmm1, xmm3
cvttss2si edi, xmm1
mov dword [rsp + 0x44], edi
jmp 0x180010734
mov ebx, dword [rsp + 0x40]
mov edi, dword [rsp + 0x44]
mov rcx, qword [0x180124ef8]
test rcx, rcx
je 0x18001076c
mov dword [rsp + 0x98], 0x64
mov dword [rsp + 0xa0], 0x32
mov rax, qword [rcx]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xa0]
call qword [rax + 0x10]
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov ecx, 0x1800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], ebx
mov eax, dword [rsp + 0x1a8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
mov r9d, ebx
lea r8, str._GraphicParametrs__PixelFormat_6__PixelFormat__Width__i__Width__Height__i__Height__DrawMode__i__DrawMode__DrawRect_Left_0__Top_0__Right__i__Bottom__i_____GraphicParametrs_
mov edx, 0x400
mov rcx, r15
call fcn.180010280
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x1a0]
lea r8, str._CADParametrs__BackgroundColor__i__BackgroundColor__DefaultColor__i__DefaultColor__XScale_1__XScale__PageWidth__i__PageWidth__PageHeight__i__PageHeight___CADParametrs_
mov edx, 0x400
mov rcx, r12
call fcn.180010280
lea rax, [rsp + 0x118]
cmp qword [rsp + 0x130], 8
cmovae rax, qword [rsp + 0x118]
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
lea r8, str.__xml_version_1.0__encoding_utf_16_____ExportParams__Filename__s__Filename__Ext__s__Ext__s_s__ExportParams_
mov edx, 0xc00
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.180010280
lea r8, [0x1800102e0]
mov rdx, rbx
mov rcx, rsi
call qword [rsp + 0xb0]
test eax, eax
je 0x1800108a7
mov rcx, qword [0x180124ef8]
test rcx, rcx
je 0x18001089f
mov dword [rsp + 0xa8], 0x64
mov dword [rsp + 0xb0], 0x64
mov rax, qword [rcx]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xb0]
call qword [rax + 0x10]
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call r13
nop
lea rcx, [rsp + 0x118]
call fcn.180003470
jmp 0x180010906
lea rcx, [rsp + 0xf8]
call fcn.180003470
nop
lea rcx, [rsp + 0xb8]
call fcn.180003470
nop
lea rcx, [rsp + 0xd8]
call fcn.180003470
mov eax, r14d
jmp 0x180010939
jmp 0x18001090d
lea rcx, [rsp + 0xf8]
call fcn.180003470
nop
lea rcx, [rsp + 0xb8]
call fcn.180003470
nop
lea rcx, [rsp + 0xd8]
call fcn.180003470
mov eax, r14d
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret