Function at 0x140002100
Capabilities:
Accept command line arguments
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x580
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r14, rdx
mov esi, ecx
mov r8, rdx
mov edx, ecx
lea rcx, [rbp - 0x48]
call fcn.1400013f0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], 0xffffffffffffffff
mov r9d, dword [rbp - 0x44]
movzx r8d, byte [rbp - 0x48]
lea rcx, [rbp + 0x18]
call fcn.1400040a0
xor r13d, r13d
test al, al
jne 0x140002185
lea rcx, str.Failed_to_redirect_stdout._n
jmp 0x1400021b2
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call qword [sym.imp.mfc140u.dll_afxShellManager]
test eax, eax
jne 0x1400021c2
lea rcx, str.Failed_to_initialize_MFC._n
call fcn.1400100c0
mov r15d, 1
jmp 0x1400030e7
mov r15d, 1
mov edx, r15d
lea rcx, [0x140001a50]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x14000220b
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
mov byte [0x140042031], r13b
jne 0x140002212
mov byte [0x140042031], r15b
lea rcx, str.AutoCAD_Core_Engine_Console___Copyright_2017_Autodesk__Inc.__All_rights_reserved.__O.49.0.0__n
call fcn.1400100c0
lea rcx, str.ACCORECONSOLE
call fcn.140001f70
mov r8d, operator
lea rdx, [rbp + 0x260]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002256
lea rdx, [rbp + 0x260]
lea rcx, str._nExecution_Path:_n_s_n
call fcn.1400100c0
xor eax, eax
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp], rax
lea rcx, [rbp]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
xor eax, eax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x23], 0
mov byte [rsp + 0x27], 0
mov byte [rsp + 0x25], 1
mov byte [rsp + 0x24], 0
xor r12b, r12b
mov byte [rsp + 0x26], r12b
mov byte [rsp + 0x21], r12b
xor dil, dil
mov byte [rsp + 0x20], dil
mov ebx, r15d
cmp esi, r15d
jle 0x14000279f
nop
movsxd rax, ebx
lea rdi, [r14 + rax*8]
lea rdx, [0x14002a98c]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x14000237a
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
jmp 0x140002770
lea rdx, [0x14002a990]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002397
mov byte [rsp + 0x24], 1
jmp 0x140002770
lea rdx, [0x14002a998]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400023ca
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
jmp 0x140002770
lea rdx, [0x14002a99c]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400023fd
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
jmp 0x140002770
lea rdx, [0x14002a9a0]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
jne 0x14000276b
lea rdx, str.readonly
mov rcx, qword [rdi]
call fcn.140002020
test al, al
jne 0x14000276b
lea rdx, str.isolate
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002475
inc ebx
cmp ebx, esi
jge 0x140002455
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
jmp 0x140002770
lea rdx, [0x14002a9d0]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
jne 0x14000249b
lea rdx, str.profile
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400024b2
inc ebx
cmp ebx, esi
jge 0x1400024b2
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp + 8]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
movsxd rcx, ebx
lea rdx, str.product
mov rcx, qword [r14 + rcx*8]
call fcn.140002020
test al, al
je 0x1400024e0
inc ebx
cmp ebx, esi
jge 0x1400024e0
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
movsxd rcx, ebx
lea rdx, str.fonts
mov rcx, qword [r14 + rcx*8]
call fcn.140002020
test al, al
je 0x14000250e
inc ebx
cmp ebx, esi
jge 0x14000250e
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
movsxd rax, ebx
lea rdi, [r14 + rax*8]
lea rdx, str.suppressGraphics
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002545
lea rcx, str.ACSUPPRESSGRAPHICS
call fcn.140001f70
lea rcx, str.ACFORCEWHIP
call fcn.140001f70
jmp 0x140002770
lea rdx, str.loadStartupApps
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002562
mov byte [rsp + 0x23], 1
jmp 0x140002770
lea rdx, str.recover
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x14000257d
mov r12b, 1
jmp 0x140002770
lea rdx, str.lazyload
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400025a1
lea rcx, str.ACADLAZYLOAD
call fcn.140001f70
jmp 0x140002770
lea rdx, [0x14002aab0]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400025c0
inc ebx
mov byte [rsp + 0x27], 1
jmp 0x140002770
lea rdx, [0x14002aab8]
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400025f3
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rax, ebx
mov rdx, qword [r14 + rax*8]
lea rcx, [rbp]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
jmp 0x140002770
lea rdx, str._coremgd
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002610
mov byte [rsp + 0x26], 1
jmp 0x140002770
lea rdx, str._aeccore
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x14000262d
mov byte [rsp + 0x21], 1
jmp 0x140002770
lea rdx, str.pause
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002670
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140002665
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140002650
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x140002770
lea rdx, str.sandbox
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002690
mov dil, 1
mov byte [rsp + 0x20], dil
jmp 0x140002775
lea rdx, str.waitForDebugger
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400026bf
lea rcx, str.Waiting_for_debugger...
call fcn.1400100c0
nop
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400026b0
jmp 0x140002770
lea rdx, str.noCER
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x1400026dc
mov byte [rsp + 0x22], 1
jmp 0x140002770
lea rdx, str.connectedWindow
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x14000270a
inc ebx
cmp ebx, esi
jge 0x140002770
movsxd rcx, ebx
mov rcx, qword [r14 + rcx*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [0x14004205c], eax
jmp 0x140002770
lea rdx, str.connectedWindowless
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x140002726
mov dword [0x140040038], r15d
jmp 0x1400026ef
lea rdx, str.connectedMetafile
mov rcx, qword [rdi]
call fcn.140002020
test al, al
je 0x14000274c
mov dword [0x140040038], 8
mov byte [0x14004003c], 1
jmp 0x1400026ef
lea rdx, str.nowait
mov rcx, qword [rdi]
call fcn.140002020
movzx edi, byte [rsp + 0x20]
test al, al
je 0x140002775
mov byte [rsp + 0x25], 0
jmp 0x140002775
mov byte [rsp + 0x28], 1
movzx edi, byte [rsp + 0x20]
inc ebx
cmp ebx, esi
jl 0x140002340
test r12b, r12b
je 0x14000279f
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
movzx r12d, r12b
test al, al
mov esi, 0
cmovne r12d, esi
jmp 0x1400027a1
xor esi, esi
mov dword [rbp - 0x48], 0xffffffff
lea rcx, [rbp - 0x48]
call fcn.140003f30
test eax, eax
jne 0x1400027c6
lea rcx, str.ERROR:_Cant_get_process_integrity_level._n
call fcn.1400100c0
jmp 0x140003077
cmp dword [rbp - 0x48], 0x1000
sete byte [0x140042032]
xor eax, eax
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_void____ptr64]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x14000290d
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x14000290d
cmp byte [0x140042032], al
jne 0x14000283a
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rdx, rax
mov r8, rbx
lea rcx, str.Isolating_to_userId_s__userDataFolder_s._n
call fcn.1400100c0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_class_AcString_const____ptr64____ptr64]
cmp byte [0x140042032], 0
sete r9b
lea r8, [rbp - 8]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140004bb0
test al, al
jne 0x140002873
lea rcx, str.ERROR:_Failed_to_create_registry_keys_or_files_necessary_when_using_the__isolate_switch._n
jmp 0x140002919
test dil, dil
je 0x140002923
cmp byte [0x140042032], 0
jne 0x140002930
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov rdx, rax
lea rcx, str.Launching_sandbox_process:___s__n
call fcn.1400100c0
mov qword [rbp - 0x48], rsi
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
lea r9, [rbp + 0x18]
lea r8, [rbp - 0x48]
mov rdx, rax
mov rcx, rbx
call fcn.140003910
test al, al
setne bl
lea rcx, [rbp - 8]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x1400028f1
lea rcx, [rbp - 8]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov r8b, 1
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.1400263d0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140002900
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx r15d, bl
xor r15d, 1
jmp 0x14000306c
test dil, dil
je 0x140002923
lea rcx, str.ERROR:__sandbox_switch_requires__isolate_switch._n
call fcn.1400100c0
jmp 0x14000306c
cmp byte [0x140042032], 0
je 0x1400029e8
lea rcx, str.Running_at_low_integrity._n
call fcn.1400100c0
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x1400029e8
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
je 0x1400029e8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400029e8
mov ecx, 0x20
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400029e5
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_wchar_t_const____ptr64____ptr64]
mov r8b, 1
mov rdx, rax
mov rcx, rbx
call fcn.14000ddd0
mov r13, rax
jmp 0x1400029e8
mov r13, rsi
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x140002a44
mov ecx, 0x20
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140002a41
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_class_AcString_const____ptr64____ptr64]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.14000ddd0
mov r13, rax
jmp 0x140002a44
mov r13, rsi
cmp byte [rsp + 0x22], 1
jne 0x140002a50
call fcn.14000fff0
cmp byte [rsp + 0x23], 0
jne 0x140002a63
lea rcx, str.ACSUPPRESSSTARTUPAPPS
call fcn.140001f70
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
je 0x140002a82
lea rdx, str.ACAD
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.UserData.dll_acudInitProductParams]
lea rcx, str.accore.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ac8
lea rcx, str.ERROR:_AcCore.dll_is_loaded_too_early._Exiting.
call fcn.1400100c0
jmp 0x14000306c
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::constructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
cmp dword [0x14004205c], 0
jne 0x140002ae8
mov dl, 1
jmp 0x140002aea
xor edx, edx
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setInBackgroundMode_bool____ptr64]
lea rdx, [rbp - 0x70]
lea rcx, str._VERNUM
call qword [sym.imp.accore.dll_int___cdecl_acedGetVar_wchar_t_const____ptr64__struct_resbuf____ptr64_]
cmp eax, 0x13ec
jne 0x140002b18
mov rdx, qword [rbp - 0x60]
lea rcx, str._nVersion_Number:__s_n
call fcn.1400100c0
mov dl, 1
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setSuppressFileMRU_bool____ptr64]
movzx edx, byte [rsp + 0x24]
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setCodeSearchStartInFolder_bool____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x140002b4f
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setStartupScript_class_AcString_const____ptr64____ptr64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x140002b6b
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setStartupFile_class_AcString_const____ptr64____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x140002b87
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::setProfile_class_AcString_const____ptr64____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
je 0x140002bd3
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
je 0x140002bd3
lea rcx, str._nUsage:_n
call fcn.1400100c0
lea rcx, str.AcCoreConsole.exe___i__input_dwg____s__script___product__product_____l__language_____isolate__userid___userDataFolder_____readonly____p_rofile___profile___n
call fcn.1400100c0
lea rcx, str._nExample:_n
call fcn.1400100c0
lea rcx, str.AcCoreConsole.exe__i_8th_floor.dwg__s_test.scr__l_en_US_n
call fcn.1400100c0
call qword [sym.imp.adhostableui.dll_public:_static_class_AdHostMessageBox____ptr64___cdecl_AdHostMessageBox::simple_void_]
mov rcx, rax
lea rdx, [0x140040040]
call qword [sym.imp.adhostableui.dll_public:_void___cdecl_AdHostMessageBox::setHost_class_IAdHostMessageBox____ptr64____ptr64]
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_class_AcString_const____ptr64___cdecl_AcApInitParams::getStartupScript_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
sete al
lea rcx, vtable.InputLoop.0
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x40], al
movzx eax, byte [rsp + 0x25]
mov byte [rbp + 0x41], al
call qword [sym.imp.accore.dll_public:_static_class_AcApApp____ptr64___cdecl_AcApApp::theApp_void_]
mov rcx, rax
lea rdx, [rbp + 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApApp::setInputLoopHost_class_IAcApInputLoopHost____ptr64____ptr64]
cmp dword [0x14004205c], 0
je 0x140002c3c
cmp dword [0x140040038], 2
je 0x140002c42
call qword [sym.imp.accore.dll_void___cdecl_disableHardwareAcceleration_void_]
call qword [sym.imp.accore.dll_public:_static_class_AcApApp____ptr64___cdecl_AcApApp::theApp_void_]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_enum_Acad::ErrorStatus___cdecl_AcApApp::initialize_class_AcApInitParams_const____ptr64____ptr64]
test eax, eax
je 0x140002c6a
lea rcx, str.ERROR:_Unable_to_initialize._Check_that_you_have_all_the_required_files_and_registry_keys._n
call fcn.1400100c0
jmp 0x140003061
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov r8, qword [rax]
lea rdx, [0x1400421d8]
mov rcx, rax
call qword [r8 + 0x70]
lea rcx, [0x140040048]
call qword [sym.imp.accore.dll_void___cdecl_AcApHeart::addReactor_class_AcApHeartBeatReactor____ptr64_]
cmp byte [rsp + 0x26], 0
je 0x140002ccb
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r10, qword [rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.accoremgd.dll
mov rcx, rax
call qword [r10 + 0x50]
cmp byte [rsp + 0x21], 0
je 0x140002d08
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r10, qword [rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AecCore.crx
mov rcx, rax
call qword [r10 + 0x50]
cmp byte [rsp + 0x27], 0
je 0x140002d45
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r10, qword [rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AcCloudConnect.crx
mov rcx, rax
call qword [r10 + 0x50]
lea rcx, [rbp]
call qword [sym.imp.ac1st22.dll_public:_bool___cdecl_AcString::isEmpty_void_const___ptr64]
test al, al
jne 0x140002e52
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r10, qword [rax]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AcAutoLoader.crx
mov rcx, rax
call qword [r10 + 0x50]
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.ServiceDictionary
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003250
mov r8, qword [rax]
lea rdx, str.AcAutoLoader
mov rcx, rax
call qword [r8 + 0x40]
test rax, rax
je 0x140002e52
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r9, qword [rax]
lea r8, [0x14002b07c]
lea rdx, str.AcAutoLoader
mov rcx, rax
call qword [r9 + 0x38]
mov rbx, rax
test rax, rax
je 0x140002e14
lea rcx, [rbp]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rcx, rax
call rbx
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r9, qword [rax]
lea r8, str.initObjectEnablers
lea rdx, str.AcAutoLoader
mov rcx, rax
call qword [r9 + 0x38]
test rax, rax
je 0x140002e52
call rax
lea rcx, [0x140040050]
call qword [sym.imp.accore.dll_enum_Acad::ErrorStatus___cdecl_acplSetExtraLogger_class_AcPlPlotLogger____ptr64_]
mov edx, dword [0x14004205c]
test edx, edx
je 0x140002ef3
mov r8d, dword [0x140040038]
cmp r8d, 8
jne 0x140002e81
call fcn.14000ba40
jmp 0x140002e86
call fcn.140006f10
cmp qword [0x140042050], 0
jne 0x140002e9a
mov edi, 3
jmp 0x140002ff2
mov edi, esi
call qword [sym.imp.accore.dll_public:_static_class_AcApApp____ptr64___cdecl_AcApApp::theApp_void_]
mov rcx, rax
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApApp::run_void____ptr64]
call fcn.1400016d0
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + operator]
test eax, eax
je 0x140002ff2
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x38]
mov rbx, rax
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.accore.dll_public:_enum_Acad::ErrorStatus___cdecl_AcApDocManager::appContextCloseDocument_class_AcApDocument____ptr64____ptr64]
jmp 0x140002ff2
cmp byte [rsp + 0x28], 0
je 0x140002f41
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_unsigned_int___cdecl_AcString::length_void_const___ptr64]
test eax, eax
je 0x140002f41
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x64], 2
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [r8 + 0xb0]
jmp 0x140002fe7
test r12b, r12b
je 0x140002fcd
xor r14b, r14b
lea rdx, [rsp + 0x50]
lea rcx, str.RECOVERAUTO
call qword [sym.imp.accore.dll_int___cdecl_acedGetVar_wchar_t_const____ptr64__struct_resbuf____ptr64_]
cmp eax, 0x13ec
jne 0x140002f8a
movzx esi, word [rsp + 0x60]
mov edi, 3
mov word [rsp + 0x60], di
lea rdx, [rsp + 0x50]
lea rcx, str.RECOVERAUTO
call qword [sym.imp.accore.dll_int___cdecl_acedSetVar_wchar_t_const____ptr64__struct_resbuf_const____ptr64_]
mov r14b, 1
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov rbx, rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov r8, qword [rbx]
mov rdx, rax
mov rcx, rbx
call qword [r8 + 0xc0]
mov edi, eax
test r14b, r14b
je 0x140002ff2
mov word [rsp + 0x60], si
lea rdx, [rsp + 0x50]
lea rcx, str.RECOVERAUTO
call qword [sym.imp.accore.dll_int___cdecl_acedSetVar_wchar_t_const____ptr64__struct_resbuf_const____ptr64_]
jmp 0x140002ff2
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov r8, qword [rax]
lea rdx, str.acad.dwt
mov rcx, rax
call qword [r8 + 0xa8]
test eax, eax
mov edi, eax
jne 0x140002ff2
call fcn.140001e30
cmp byte [rsp + 0x21], 0
je 0x14000302c
call qword [sym.imp.ac1st22.dll_acrxSysRegistry]
mov r8, qword [rax]
lea rdx, str.DynamicLinker
mov rcx, rax
call qword [r8 + 0x40]
mov rcx, rax
call fcn.140003200
mov r9, qword [rax]
xor r8d, r8d
lea rdx, str.AecCore.crx
mov rcx, rax
call qword [r9 + 0x68]
call qword [sym.imp.accore.dll_public:_static_class_AcApApp____ptr64___cdecl_AcApApp::theApp_void_]
mov rcx, rax
call qword [sym.imp.accore.dll_public:_enum_Acad::ErrorStatus___cdecl_AcApApp::terminate_void____ptr64]
test edi, edi
je 0x14000304d
mov edx, edi
lea rcx, str._nERROR:_Something_went_wrong._ErrorStatus_d._n
call fcn.1400100c0
test r13, r13
je 0x14000305e
mov rax, qword [r13]
mov edx, r15d
mov rcx, r13
call qword [rax]
mov r15d, edi
lea rcx, [rbp - 0x38]
call qword [sym.imp.accore.dll_public:_void___cdecl_AcApInitParams::destructor_void____ptr64]
nop
lea rcx, [rbp - 8]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
xor r13d, r13d
cmp qword [rbp + 0x18], 0
je 0x140003152
cmp qword [rbp + 0x20], 0
je 0x140003152
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [0x140042048]
test rcx, rcx
je 0x140003116
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140042048], r13
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x140003147
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, dword [rax]
mov rdx, qword [rbp + 0x20]
lea rcx, str.ERROR:_Cant_delete_temp_file__s.__errno_d_._n
call fcn.1400100c0
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, r15d
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140024e80
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret