Function at 0x140031c90
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 [0x140062148]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov esi, r9d
mov rbx, r8
call fcn.1400311a0
test eax, eax
sete cl
call fcn.140004390
xor r8d, r8d
mov ecx, 0x1a25
lea edx, [r8 + 1]
call fcn.14000a970
call fcn.1400311a0
test eax, eax
je 0x140031d28
call fcn.14000b0c0
test eax, eax
je 0x140031d2d
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x21], 0
mov ecx, eax
mov qword [rbp - 0x19], 0
call fcn.14000a600
test eax, eax
je 0x140031d2d
call fcn.1400310c0
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140031d2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140031d2d
call fcn.1400310c0
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.140012760
lea rcx, [rbp - 0x11]
call fcn.140021c40
test eax, eax
je 0x140031e83
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 0x140031dbc
lea rcx, [rbp - 0x11]
call fcn.1400232d0
lea rcx, [rbp - 0x11]
call fcn.140014be0
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.140032650
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 0x140031de0
lea rcx, [rbp - 0x11]
call fcn.14001fe90
jmp 0x140031d7e
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 0x140031e09
lea rcx, [rbp - 0x11]
mov ebx, 1
call fcn.140022d20
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 0x140031e44
lea rcx, [rbp - 0x10]
mov edi, 1
call fcn.140012760
lea rcx, [rbp - 0x10]
call fcn.1400234b0
lea rcx, [rbp - 0x10]
call fcn.140014be0
test ebx, ebx
jne 0x140031ed5
test edi, edi
jne 0x140031ed5
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 0x140031e8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140031e8c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140023e50
mov rdx, rax
lea rcx, [0x14006c960]
call fcn.140025690
call fcn.140023e50
mov rcx, rax
lea rdx, [0x14006c960]
call fcn.140025180
mov edx, 1
lea r9, [0x140031c20]
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
lea rcx, [rbp - 0x11]
call fcn.140021580
cmp byte [0x14006c804], 0
je 0x140031ee8
mov ebx, 0xffffffff
jmp 0x14003200b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rbp - 0x29], eax
mov ebx, eax
test eax, eax
jns 0x140031f1b
cmp eax, 0x80010106
jne 0x14003200b
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140031f22
jmp 0x14003200b
mov byte [0x14006c952], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rbp - 0x29]
lea rcx, [0x14006c8f0]
call fcn.140031290
cmp al, 1
jne 0x140031ff9
mov edx, esi
lea rcx, [0x14006c8f0]
call fcn.1400318d0
mov ebx, eax
test eax, eax
jne 0x140031f9c
xor r9d, r9d
lea rcx, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140031f9e
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 0x140031f70
jmp 0x140031f9e
js 0x140031ffc
mov rdi, qword [0x140061c00]
xor ebx, ebx
mov rdx, qword [0x140061c08]
cmp rdi, rdx
jae 0x140031fe2
test ebx, ebx
jne 0x140031fe2
mov rax, qword [rdi]
test rax, rax
je 0x140031fd9
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x140031fd9
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rdx, qword [0x140061c08]
mov ebx, eax
add rdi, 8
cmp rdi, rdx
jb 0x140031fb3
cmp byte [0x14006c950], 0
je 0x140031ffc
mov ecx, dword [0x14006c94c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140031ffc
mov ebx, dword [rbp - 0x29]
cmp byte [0x14006c952], 0
je 0x14003200b
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rbp - 0x11]
call fcn.140014be0
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 0x140031d93