Function at 0x140031c30
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.140031140
test eax, eax
sete cl
call fcn.140004390
xor r8d, r8d
mov ecx, 0x1a25
lea edx, [r8 + 1]
call fcn.14000a970
call fcn.140031140
test eax, eax
je 0x140031cc8
call fcn.14000b0c0
test eax, eax
je 0x140031ccd
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x21], 0
mov ecx, eax
mov qword [rbp - 0x19], 0
call fcn.14000a600
test eax, eax
je 0x140031ccd
call fcn.140031060
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140031ccd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140031ccd
call fcn.140031060
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.140012700
lea rcx, [rbp - 0x11]
call fcn.140021be0
test eax, eax
je 0x140031e23
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 0x140031d5c
lea rcx, [rbp - 0x11]
call fcn.140023270
lea rcx, [rbp - 0x11]
call fcn.140014b80
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.1400325f0
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 0x140031d80
lea rcx, [rbp - 0x11]
call fcn.14001fe30
jmp 0x140031d1e
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 0x140031da9
lea rcx, [rbp - 0x11]
mov ebx, 1
call fcn.140022cc0
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 0x140031de4
lea rcx, [rbp - 0x10]
mov edi, 1
call fcn.140012700
lea rcx, [rbp - 0x10]
call fcn.140023450
lea rcx, [rbp - 0x10]
call fcn.140014b80
test ebx, ebx
jne 0x140031e75
test edi, edi
jne 0x140031e75
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 0x140031e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140031e2c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140023df0
mov rdx, rax
lea rcx, [0x14006b960]
call fcn.140025630
call fcn.140023df0
mov rcx, rax
lea rdx, [0x14006b960]
call fcn.140025120
mov edx, 1
lea r9, [0x140031bc0]
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [rbp - 0x11]
call fcn.140021520
cmp byte [0x14006b804], 0
je 0x140031e88
mov ebx, 0xffffffff
jmp 0x140031fab
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp - 0x29], eax
mov ebx, eax
test eax, eax
jns 0x140031ebb
cmp eax, 0x80010106
jne 0x140031fab
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140031ec2
jmp 0x140031fab
mov byte [0x14006b952], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rbp - 0x29]
lea rcx, [0x14006b8f0]
call fcn.140031230
cmp al, 1
jne 0x140031f99
mov edx, esi
lea rcx, [0x14006b8f0]
call fcn.140031870
mov ebx, eax
test eax, eax
jne 0x140031f3c
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140031f3e
nop dword [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 0x140031f10
jmp 0x140031f3e
js 0x140031f9c
mov rdi, qword [0x140060c00]
xor ebx, ebx
mov rdx, qword [0x140060c08]
cmp rdi, rdx
jae 0x140031f82
test ebx, ebx
jne 0x140031f82
mov rax, qword [rdi]
test rax, rax
je 0x140031f79
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x140031f79
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x140060c08]
mov ebx, eax
add rdi, 8
cmp rdi, rdx
jb 0x140031f53
cmp byte [0x14006b950], 0
je 0x140031f9c
mov ecx, dword [0x14006b94c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140031f9c
mov ebx, dword [rbp - 0x29]
cmp byte [0x14006b952], 0
je 0x140031fab
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp - 0x11]
call fcn.140014b80
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 0x140031d33