Function at 0x140030960
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14005f148]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov esi, r9d
mov rbx, r8
call fcn.14002fe70
test eax, eax
sete cl
call fcn.140004570
mov edx, 1
mov ecx, 0x1a25
call fcn.14000a9c0
call fcn.14002fe70
test eax, eax
je 0x1400309f6
call fcn.14000b100
test eax, eax
je 0x1400309fb
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x21], 0
mov ecx, eax
mov qword [rbp - 0x19], 0
call fcn.14000a650
test eax, eax
je 0x1400309fb
call fcn.14002fd90
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400309fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400309fb
call fcn.14002fd90
mov rdx, rbx
mov qword [rsp + 0xb0], rdi
lea rcx, [rbp - 9]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
lea rcx, [rbp - 0x11]
call fcn.1400112d0
lea rcx, [rbp - 0x11]
call fcn.140020910
test eax, eax
je 0x140030b51
xor r8d, r8d
lea rdx, str.repair
lea rcx, [rbp - 9]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t____ptr64___cdecl_Cmm::CStringT_wchar_t_::Find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
je 0x140030a8a
lea rcx, [rbp - 0x11]
call fcn.140021fa0
lea rcx, [rbp - 0x11]
call fcn.140013910
lea rcx, [rbp - 9]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
xor eax, eax
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140031320
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
xor r8d, r8d
lea rdx, str.Check
lea rcx, [rbp - 9]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t____ptr64___cdecl_Cmm::CStringT_wchar_t_::Find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
je 0x140030aae
lea rcx, [rbp - 0x11]
call fcn.14001eb60
jmp 0x140030a4c
xor r8d, r8d
lea rdx, str.RegServer
lea rcx, [rbp - 9]
xor ebx, ebx
call qword [sym.imp.Cmmlib.dll_public:_wchar_t____ptr64___cdecl_Cmm::CStringT_wchar_t_::Find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
je 0x140030ad7
lea rcx, [rbp - 0x11]
mov ebx, 1
call fcn.1400219f0
xor r8d, r8d
lea rdx, str.UnregServer
lea rcx, [rbp - 9]
xor edi, edi
call qword [sym.imp.Cmmlib.dll_public:_wchar_t____ptr64___cdecl_Cmm::CStringT_wchar_t_::Find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
je 0x140030b12
lea rcx, [rbp - 0x10]
mov edi, 1
call fcn.1400112d0
lea rcx, [rbp - 0x10]
call fcn.140022180
lea rcx, [rbp - 0x10]
call fcn.140013910
test ebx, ebx
jne 0x140030ba3
test edi, edi
jne 0x140030ba3
lea r8, str.9E7BFEFC_531F_4310_9BA9_0C8DB000B267
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140030b5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140030b5a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140022b20
mov rdx, rax
lea rcx, [0x1400696d0]
call fcn.140024360
call fcn.140022b20
mov rcx, rax
lea rdx, [0x1400696d0]
call fcn.140023e50
mov edx, 1
lea r9, [0x1400308f0]
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [rbp - 0x11]
call fcn.140020250
cmp byte [0x140069444], 0
je 0x140030bb6
mov ebx, 0xffffffff
jmp 0x140030cdb
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp - 0x29], eax
mov ebx, eax
test eax, eax
jns 0x140030be9
cmp eax, 0x80010106
jne 0x140030cdb
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140030bf0
jmp 0x140030cdb
mov byte [0x1400696c2], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rbp - 0x29]
lea rcx, [0x140069660]
call fcn.14002ff60
cmp al, 1
jne 0x140030cc9
mov edx, esi
lea rcx, [0x140069660]
call fcn.1400305a0
mov ebx, eax
test eax, eax
jne 0x140030c6c
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140030c6e
nop dword [rax + rax]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140030c40
jmp 0x140030c6e
js 0x140030ccc
mov rdi, qword [0x14005ec00]
xor ebx, ebx
mov rdx, qword [0x14005ec08]
cmp rdi, rdx
jae 0x140030cb2
test ebx, ebx
jne 0x140030cb2
mov rax, qword [rdi]
test rax, rax
je 0x140030ca9
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x140030ca9
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x14005ec08]
mov ebx, eax
add rdi, 8
cmp rdi, rdx
jb 0x140030c83
cmp byte [0x1400696c0], 0
je 0x140030ccc
mov ecx, dword [0x1400696bc]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140030ccc
mov ebx, dword [rbp - 0x29]
cmp byte [0x1400696c2], 0
je 0x140030cdb
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp - 0x11]
call fcn.140013910
lea rcx, [rbp - 9]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
jmp 0x140030a61