Function at 0x140002640
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rdi, rcx
mov esi, r9d
lea rcx, [0x140001e80]
mov rbx, r8
call fcn.14000f8cc
mov qword [0x14005e048], rdi
mov byte [0x14005dc60], 0
test rbx, rbx
je 0x14000275e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [rbp + 0x1e0]
mov r9d, 0x1cb
sub rax, rcx
lea rdx, [rbp + 0x1e0]
nop word [rax + rax]
lea rcx, [r9 + 0x7ffffe33]
test rcx, rcx
je 0x1400026cb
cmp byte [rax + rdx], 0
je 0x1400026cb
inc rdx
sub r9, 1
jne 0x1400026b0
test r9, r9
lea rax, [rdx - 1]
cmovne rax, rdx
mov byte [rax], 0
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400026e0
test eax, eax
jle 0x14000275e
lea r14, [0x14005dc60]
mov edx, 0x3e7
mov rcx, r14
sub rbx, r14
nop
lea rax, [rdx + 0x7ffffc17]
test rax, rax
je 0x14000271f
movzx eax, byte [rbx + rcx]
test al, al
je 0x14000271f
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140002700
test rdx, rdx
lea rax, [rcx - 1]
lea rdx, str._quest3dactivex
cmovne rax, rcx
mov rcx, r14
mov byte [rax], 0
call fcn.1400042b0
test rax, rax
je 0x14000275e
sub eax, r14d
mov byte [0x14005dbe4], 1
lea ecx, [rax - 1]
cmp ecx, 0x1c9
ja 0x14000275e
cdqe
mov byte [rax + r14 - 1], 0
lea rcx, [rbp + 0x3f0]
mov dword [rbp + 0x3f0], 8
mov dword [rbp + 0x3f4], 0xff
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x14005dbe4], 0
lea rcx, [0x14005e440]
mov ebx, 0x103
mov edx, ebx
jne 0x1400027d2
lea r8, str.SOFTWAREAct_3DQuest3D_Viewers4.20.000
sub r8, rcx
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefb]
test rax, rax
je 0x140002800
movzx eax, byte [r8 + rcx]
test al, al
je 0x140002800
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400027b0
jmp 0x140002800
lea r8, str.SOFTWAREAct_3DQuest3D_Web_Viewers4.20.000
sub r8, rcx
nop dword [rax]
lea rax, [rdx + 0x7ffffefb]
test rax, rax
je 0x140002800
movzx eax, byte [r8 + rcx]
test al, al
je 0x140002800
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400027e0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov byte [rax], 0
call fcn.14000f758
mov rcx, rax
call fcn.14000f560
mov r9d, 0x64
lea r8, [0x14005db80]
mov rcx, rdi
lea edx, [r9 + 0xa]
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, 0x64
lea r8, [0x14005db80]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringA]
mov r9d, 0x64
lea r14, [0x14005dbf0]
mov r8, r14
mov rcx, rdi
lea edx, [r9 + 9]
call qword [sym.imp.USER32.dll_LoadStringA]
lea rax, [0x1400022a0]
mov dword [rsp + 0x70], 0x50
xor r12d, r12d
mov qword [rsp + 0x78], rax
mov edx, 0x8d
mov dword [rsp + 0x74], 0xb
mov rcx, rdi
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], rdi
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
movdqa xmm0, xmmword [0x14004c230]
lea edx, [r12 + 0x6b]
mov rcx, rdi
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], r14
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov edx, 1
lea r9, str.Lumion_8
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000293e
xor r9d, r9d
lea r8, str.Error
lea rdx, str.You_cant_run_Lumion_more_than_once_at_the_same_time
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor r8d, r8d
lea edx, [r12 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor eax, eax
jmp 0x140002f29
mov r8, qword [0x14005e438]
lea r9, [0x140002630]
mov edx, 0x8c
mov qword [rsp + 0x20], r12
mov rcx, rdi
call qword [sym.imp.USER32.dll_CreateDialogParamA]
mov rcx, rax
lea rdx, str.Lumion_8
mov r14, rax
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, 0x6d
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400029d5
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x1400029a0
mov edx, esi
mov rcx, rdi
call fcn.140001740
test eax, eax
je 0x140002937
mov rcx, qword [0x14005e438]
lea rdx, str.Lumion_8
mov qword [rsp + 0x4f8], r13
call qword [sym.imp.USER32.dll_SetWindowTextA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x18
call fcn.140003124
mov rsi, rax
test rax, rax
je 0x140002a30
mov rcx, rax
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_A3dFileLoader::constructor_void____ptr64]
lea rax, vtable.A3dFileLoader.0
mov qword [rsi], rax
jmp 0x140002a33
mov rsi, r12
mov rax, qword [sym.imp.HighPoly.dll_class_EngineInterface____ptr64___ptr64_globalEngine]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp - 0x40]
mov r8, rbx
sub rax, rcx
lea rdx, [rbp - 0x40]
lea rcx, [r8 + 0x7ffffefb]
test rcx, rcx
je 0x140002a70
movzx ecx, byte [rax + rdx]
test cl, cl
je 0x140002a70
mov byte [rdx], cl
inc rdx
sub r8, 1
jne 0x140002a51
test r8, r8
lea rax, [rdx - 1]
mov rcx, rbx
cmovne rax, rdx
mov byte [rax], r12b
lea rax, [rbp - 0x40]
cmp byte [rax], r12b
je 0x140002a93
inc rax
sub rcx, 1
jne 0x140002a85
mov rax, rbx
mov r8, r12
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140002afc
mov rdx, rbx
lea rcx, [rbp - 0x40]
lea rcx, [rcx + r8]
sub rdx, r8
je 0x140002aee
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, str._agreed.txt
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x140002aee
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x140002aee
mov byte [rcx], r8b
dec rax
inc rcx
sub rdx, 1
jne 0x140002ad0
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r12b
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.HighPoly.dll_public:_bool___cdecl_A3dFileLoader::LoadFile_char_const____ptr64____ptr64]
lea r13, vtable.A3dFileSaver.0
test al, al
jne 0x140002bc0
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
mov r8, qword [0x14005e438]
lea r9, [0x140002480]
mov rcx, qword [0x14005e048]
lea rdx, str.IDD_LICENCE
mov r14, r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x14005ea14], r12b
je 0x140002c9f
mov ecx, 0x18
call fcn.140003124
mov rdi, rax
test rax, rax
je 0x140002b78
mov rcx, rax
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_A3dFileSaver::constructor_void____ptr64]
mov qword [rdi], r13
jmp 0x140002b7b
mov rdi, r12
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_bool___cdecl_A3dFileSaver::OpenSaveFile_char_const____ptr64__bool____ptr64]
test al, al
je 0x140002ba5
mov r8d, 5
lea rdx, str.AGREE
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_int___cdecl_A3dFileSaver::SaveDataToFile_void_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_A3dFileSaver::CloseSaveFile_void____ptr64]
test rdi, rdi
je 0x140002bc0
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
movaps xmmword [rsp + 0x4b0], xmm6
test rsi, rsi
je 0x140002bda
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
mov rax, qword [sym.imp.HighPoly.dll_class_EngineInterface____ptr64___ptr64_globalEngine]
lea r8, str.REVEXE
movups xmm0, xmmword [0x14004bef8]
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rcx]
call qword [rax + 0x90]
movss xmm1, dword [0x14004c220]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xb0]
mov rax, qword [sym.imp.HighPoly.dll_class_EngineInterface____ptr64___ptr64_globalEngine]
lea r8, str._impQ3D
movups xmm0, xmmword [0x14004bef8]
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rcx]
call qword [rax + 0x90]
test rax, rax
je 0x140002c5d
mov rdx, qword [rax]
mov rcx, rax
movss xmm1, dword [0x14004c208]
call qword [rdx + 0xb0]
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
xorps xmm6, xmm6
nop dword [rax]
cmp qword [0x14005e548], r12
je 0x140002cd5
call fcn.140001480
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
test al, al
je 0x140002ca6
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x140002cac
xor eax, eax
jmp 0x140002f21
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140002cec
call fcn.140001480
test al, al
je 0x140002cc6
mov rcx, qword [0x14005e548]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp byte [0x14005dbe6], r12b
jne 0x140002d6c
jmp 0x140002d02
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140002d02
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rsp + 0x48], 0x12
je 0x140002d6c
mov rax, qword [0x14005ea18]
test rax, rax
jne 0x140002d57
mov rcx, qword [0x14005e548]
movups xmm0, xmmword [0x14004bef8]
mov rax, qword [rcx]
movaps xmmword [rsp + 0x30], xmm0
call qword [rax + 0x28]
lea r8, str.GOQUITAPP
mov rcx, rax
lea rdx, [rsp + 0x30]
mov r9, qword [rax]
call qword [r9 + 0x90]
mov qword [0x14005ea18], rax
test rax, rax
je 0x140002c70
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xa0]
comiss xmm0, xmm6
jbe 0x140002c70
mov rcx, qword [0x14005e438]
lea rdx, [0x14005d008]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, 0x18
call fcn.140003124
movaps xmm6, xmmword [rsp + 0x4b0]
mov rdi, rax
test rax, rax
je 0x140002da8
mov rcx, rax
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_A3dFileSaver::constructor_void____ptr64]
mov qword [rdi], r13
jmp 0x140002dab
mov rdi, r12
mov rax, qword [sym.imp.HighPoly.dll_class_EngineInterface____ptr64___ptr64_globalEngine]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rbp + 0xd0]
mov r8, rbx
sub rax, rcx
lea rdx, [rbp + 0xd0]
nop
lea rcx, [r8 + 0x7ffffefb]
test rcx, rcx
je 0x140002def
movzx ecx, byte [rax + rdx]
test cl, cl
je 0x140002def
mov byte [rdx], cl
inc rdx
sub r8, 1
jne 0x140002dd0
test r8, r8
lea rax, [rdx - 1]
mov rcx, rbx
cmovne rax, rdx
mov byte [rax], r12b
lea rax, [rbp + 0xd0]
cmp byte [rax], r12b
je 0x140002e15
inc rax
sub rcx, 1
jne 0x140002e07
mov rax, rbx
mov rdx, r12
sub rax, rcx
test rcx, rcx
cmovne rdx, rax
je 0x140002e7a
lea rcx, [rbp + 0xd0]
lea rcx, [rcx + rdx]
sub rbx, rdx
je 0x140002e6c
lea rax, [rdx + 0x7ffffefb]
add rax, rbx
lea r8, str.monitor.txt
sub r8, rcx
nop dword [rax + rax]
test rax, rax
je 0x140002e6c
movzx edx, byte [r8 + rcx]
test dl, dl
je 0x140002e6c
mov byte [rcx], dl
dec rax
inc rcx
sub rbx, 1
jne 0x140002e50
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r12b
xor r8d, r8d
lea rdx, [rbp + 0xd0]
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_bool___cdecl_A3dFileSaver::OpenSaveFile_char_const____ptr64__bool____ptr64]
test al, al
je 0x140002ec5
lea rdx, str.LREC
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_int___cdecl_A3dFileSaver::SaveTag_char_const____ptr64____ptr64]
mov edx, 0x10
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_int___cdecl_A3dFileSaver::SaveBlockSize_unsigned_long_int____ptr64]
mov r8d, 0x10
lea rdx, [0x14005d008]
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_int___cdecl_A3dFileSaver::SaveDataToFile_void_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rdi
call qword [sym.imp.HighPoly.dll_public:_void___cdecl_A3dFileSaver::CloseSaveFile_void____ptr64]
mov rcx, qword [0x14005e548]
test rcx, rcx
je 0x140002ee4
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor r8d, r8d
mov qword [0x14005e548], r12
mov rcx, r15
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x50]
mov r13, qword [rsp + 0x4f8]
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret