Function at 0x140031910
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 [0x140061148]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov esi, r9d
mov rbx, r8
call fcn.140030e20
test eax, eax
sete cl
call fcn.140004390
mov edx, 1
mov ecx, 0x1a25
call fcn.14000a910
call fcn.140030e20
test eax, eax
je 0x1400319a6
call fcn.14000b050
test eax, eax
je 0x1400319ab
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x21], 0
mov ecx, eax
mov qword [rbp - 0x19], 0
call fcn.14000a5a0
test eax, eax
je 0x1400319ab
call fcn.140030d40
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400319ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400319ab
call fcn.140030d40
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.1400123e0
lea rcx, [rbp - 0x11]
call fcn.1400218c0
test eax, eax
je 0x140031b01
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 0x140031a3a
lea rcx, [rbp - 0x11]
call fcn.140022f50
lea rcx, [rbp - 0x11]
call fcn.140014860
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.1400322d0
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 0x140031a5e
lea rcx, [rbp - 0x11]
call fcn.14001fb10
jmp 0x1400319fc
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 0x140031a87
lea rcx, [rbp - 0x11]
mov ebx, 1
call fcn.1400229a0
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 0x140031ac2
lea rcx, [rbp - 0x10]
mov edi, 1
call fcn.1400123e0
lea rcx, [rbp - 0x10]
call fcn.140023130
lea rcx, [rbp - 0x10]
call fcn.140014860
test ebx, ebx
jne 0x140031b53
test edi, edi
jne 0x140031b53
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 0x140031b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140031b0a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140023ad0
mov rdx, rax
lea rcx, [0x14006b5e0]
call fcn.140025310
call fcn.140023ad0
mov rcx, rax
lea rdx, [0x14006b5e0]
call fcn.140024e00
mov edx, 1
lea r9, [0x1400318a0]
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [rbp - 0x11]
call fcn.140021200
cmp byte [0x14006b484], 0
je 0x140031b66
mov ebx, 0xffffffff
jmp 0x140031c8b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp - 0x29], eax
mov ebx, eax
test eax, eax
jns 0x140031b99
cmp eax, 0x80010106
jne 0x140031c8b
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140031ba0
jmp 0x140031c8b
mov byte [0x14006b5d2], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rbp - 0x29]
lea rcx, [0x14006b570]
call fcn.140030f10
cmp al, 1
jne 0x140031c79
mov edx, esi
lea rcx, [0x14006b570]
call fcn.140031550
mov ebx, eax
test eax, eax
jne 0x140031c1c
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140031c1e
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 0x140031bf0
jmp 0x140031c1e
js 0x140031c7c
mov rdi, qword [0x140060c00]
xor ebx, ebx
mov rdx, qword [0x140060c08]
cmp rdi, rdx
jae 0x140031c62
test ebx, ebx
jne 0x140031c62
mov rax, qword [rdi]
test rax, rax
je 0x140031c59
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x140031c59
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x140060c08]
mov ebx, eax
add rdi, 8
cmp rdi, rdx
jb 0x140031c33
cmp byte [0x14006b5d0], 0
je 0x140031c7c
mov ecx, dword [0x14006b5cc]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140031c7c
mov ebx, dword [rbp - 0x29]
cmp byte [0x14006b5d2], 0
je 0x140031c8b
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp - 0x11]
call fcn.140014860
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 0x140031a11