Function at 0x1400065c0
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0xfe10]
mov eax, 0xff10
call fcn.140024ac0
sub rsp, rax
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rbp + 0xfe00], rax
xor r12d, r12d
mov rsi, rcx
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x140006869
xor bl, bl
cmp dword [rsp + 0x48], 3
jle 0x140006660
mov rcx, qword [rax + 8]
lea rdx, str._restart
call fcn.140016da8
test eax, eax
jne 0x140006643
mov byte [0x140037574], 1
mov bl, 1
mov rcx, qword [rdi + 8]
lea rdx, str._CrashRestart
call fcn.140016da8
test eax, eax
jne 0x140006660
mov byte [0x140037574], r12b
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x140006869
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1778
call fcn.140024cd0
xor edx, edx
lea rcx, [rbp + 0x16e8]
mov r8d, 0x1b8
call fcn.140024cd0
xorps xmm0, xmm0
mov qword [rbp + 0x16e0], r12
movdqa xmmword [rbp + 0x16d0], xmm0
mov qword [rbp + 0x16c8], r12
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x1400067a4
cmp dword [rsp + 0x48], 3
jle 0x14000679b
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x50]
mov edx, 0x3e8
call fcn.140011e20
mov rcx, qword [rdi + 0x18]
call fcn.140018268
cmp dword [rsp + 0x48], 4
mov dword [rbp + 0x16c0], eax
jle 0x14000679b
mov r8, qword [rdi + 0x20]
lea rcx, [rbp + 0x720]
mov edx, 0x3e8
call fcn.140011e20
lea rax, [rbp + 0x720]
mov rbx, 0xffffffffffffffff
cmp word [rax + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140006730
cmp word [rbp + rbx*2 + 0x71e], 0x5c
je 0x14000675f
lea r8, [0x14002ed90]
mov edx, 0x3e8
lea rcx, [rbp + 0x720]
call fcn.140011e88
lea rcx, [rbp + 0x720]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + 0x7d0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140006770
lea r8, str.Report
mov edx, 0x3e8
lea rcx, [rbp + 0xef0]
call fcn.140011e88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [0x140037574], r12b
lea rax, [rsp + 0x50]
mov qword [0x140038150], rax
mov qword [rbp + 0x1898], rsi
je 0x1400067f5
xor al, al
mov ebx, r12d
test al, al
jne 0x1400067e9
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call fcn.140004f90
inc ebx
cmp ebx, 0x46
jl 0x1400067c5
test al, al
je 0x140006812
lea rcx, [rsp + 0x50]
call fcn.140005070
jmp 0x140006812
lea r9, [0x140005510]
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov edx, 0x85
mov rcx, rsi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rcx, qword [rbp + 0x16d0]
test rcx, rcx
je 0x140006824
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp + 0x16d8]
mov qword [rbp + 0x16d0], r12
test rcx, rcx
je 0x14000683d
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp + 0x16e0]
mov qword [rbp + 0x16d8], r12
test rcx, rcx
je 0x140006856
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp qword [rbp + 0x16c8], r12
mov qword [rbp + 0x16e0], r12
jmp 0x1400068fa
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov r13d, 1
test rax, rax
je 0x14000690b
xor bl, bl
cmp dword [rsp + 0x48], 3
jle 0x1400068b2
mov rcx, qword [rax + 8]
lea rdx, str._SwitchApp
call fcn.140016da8
test eax, eax
movzx ebx, bl
cmove ebx, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x14000690b
xor edx, edx
lea rcx, [rsp + 0x58]
mov r8d, 0x7d8
call fcn.140024cd0
lea rbx, vtable.CSwitchApplications.0
mov qword [rbp + 0x730], r12
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
call fcn.14000b130
cmp qword [rbp + 0x730], r12
mov qword [rsp + 0x50], rbx
jne 0x140006904
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140006ab9
mov qword [rsp + 0xff48], r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0xff50], r15
mov rbx, 0xffffffffffffffff
mov qword [0x140038158], rsi
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor edx, edx
lea rcx, [rbp + 0xfa00]
mov r8d, 0x400
call fcn.140024cd0
xor r15b, r15b
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x48]
mov esi, r12d
dec ecx
mov r14, rax
test ecx, ecx
jle 0x1400069ea
mov rdi, rax
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, str.mess
call fcn.140016da8
test eax, eax
je 0x1400069b8
mov rcx, qword [rdi]
lea rdx, str._mess
call fcn.140016da8
test eax, eax
je 0x1400069b8
mov eax, dword [rsp + 0x48]
inc esi
add rdi, 8
dec eax
cmp esi, eax
jl 0x140006980
jmp 0x1400069ea
movsxd rax, esi
mov r8, qword [r14 + rax*8 + 8]
mov rax, rbx
inc rax
cmp word [r8 + rax*2], r12w
jne 0x1400069c3
cmp rax, 0x200
jae 0x1400069ea
mov edx, 0x200
lea rcx, [rbp + 0xfa00]
call fcn.140011e20
movzx r15d, r13b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15b, r15b
lea rdi, [rbp + 0xfa00]
lea r8, str.ProgLauncherOnce
mov edx, r13d
cmove rdi, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0xff50]
mov r14, qword [rsp + 0xff48]
cmp eax, 0xb7
je 0x140006a6b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0xfab0
call fcn.140024cd0
lea rcx, [rsp + 0x50]
call fcn.140006ae0
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140007bc0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.140006de0
jmp 0x140006aae
test rdi, rdi
je 0x140006aae
lea rdx, [0x14002f430]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140006aae
lea rcx, [rbp + 0xfa00]
mov dword [rsp + 0x38], 0x400
mov qword [rsp + 0x40], rcx
lea r9, [rsp + 0x30]
mov rcx, rax
xor r8d, r8d
mov edx, 0x4a
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0xfe00]
xor rcx, rsp
call fcn.14000bfd0
mov rbx, qword [rsp + 0xff58]
add rsp, 0xff10
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret