Function at 0x140002748
Capabilities:
Check mutex on windows
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rsi, r8
mov r14, rcx
xor r12d, r12d
mov qword [0x14002b410], 1
lea rax, [0x140020688]
mov qword [0x14002b408], r12
lea rbx, [0x14002b3f8]
mov qword [0x14002b3f8], r12
mov qword [0x14002b3f0], rax
lea rdi, [0x14002b3f0]
mov qword [0x14002a0c8], rbx
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rcx, [0x140001ab0]
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], r8
lea rdi, [rdi + 8]
mov qword [rsp + 0x68], r12
mov r9d, 1
mov qword [rsp + 0x28], r12
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400027bd
lea r9, [section..data]
lea r8, [section..data]
lea rcx, [0x1400205f8]
call fcn.140001708
lea r9, [0x14002a080]
lea r8, [0x14002a080]
lea rcx, [0x1400205e8]
call fcn.140001708
lea rcx, [0x14002a048]
call fcn.1400010c8
mov rcx, qword [0x14002a0c8]
lea r13, [0x14002a0c8]
lea rdi, [0x140020658]
cmp rcx, r13
je 0x14000287c
test byte [rcx + 0x1c], 0x10
je 0x14000287c
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r8, rdi
call fcn.1400019e8
test byte [0x14002b540], 1
je 0x140002891
lea rdx, [0x140020588]
call fcn.140001758
mov rdx, rsi
mov dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov r15d, r12d
call fcn.14000186c
mov ebx, eax
test eax, eax
js 0x140002d7d
mov rcx, qword [rsp + 0x58]
call fcn.140001e30
mov ebx, eax
test eax, eax
js 0x140002d7d
lea rax, [rsp + 0x60]
mov qword [0x14002b510], r14
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x60], r12
lea rdx, [0x1400206b0]
mov rcx, 0xffffffff80000001
mov rsi, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
test eax, eax
jne 0x14000290e
mov rsi, qword [rsp + 0x60]
mov r14d, r12d
call fcn.140015230
test al, al
lea rcx, [0x140020488]
lea r8, str.OSKRunning
mov edx, 1
cmovne r8, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r13, rax
test rax, rax
je 0x140002ca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002a5d
mov rcx, qword [0x14002a0c8]
lea rdx, [0x14002a0c8]
cmp rcx, rdx
je 0x14000297b
test byte [rcx + 0x1c], 0x10
je 0x14000297b
mov rcx, qword [rcx + 0x10]
mov edx, 0xf
mov r8, rdi
call fcn.1400019e8
mov rcx, qword [0x14002b510]
lea r8, [rbp - 0x70]
mov r9d, 0x104
mov edx, 0x3e8
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rbp - 0x70]
lea rcx, str.OSKMainClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
mov rcx, qword [0x14002a0c8]
lea rax, [0x14002a0c8]
cmp rcx, rax
je 0x1400029dc
test byte [rcx + 0x1c], 0x10
je 0x1400029dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140020658]
mov edx, 0x10
mov r9d, edi
call fcn.140001a0c
test rdi, rdi
je 0x140002c63
cmp byte [0x14002b508], r12b
mov rcx, rdi
je 0x1400029fd
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
jmp 0x140002a52
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140002a15
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov cl, byte [0x14002b504]
test cl, cl
jne 0x140002a2c
cmp byte [0x14002b505], r12b
je 0x140002c63
mov al, byte [0x14002b507]
mov r8, r12
neg al
mov edx, 0x40e
sbb r9, r9
and r9d, 0x10000
inc r9
test cl, cl
mov rcx, rdi
setne r8b
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140002c63
cmp byte [0x14002b506], r12b
mov dil, r12b
jne 0x140002ad6
mov rax, qword [0x14002a0c8]
lea rdx, [0x14002a0c8]
cmp rax, rdx
je 0x140002ab7
test byte [rax + 0x1c], 0x10
je 0x140002ab7
call fcn.140015ddc
test eax, eax
lea rcx, [0x140020484]
lea r9, str._not
mov edx, 0xa
cmovne r9, rcx
lea r8, [0x140021760]
mov rcx, qword [0x14002a0c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001a48
call fcn.140015ddc
test eax, eax
je 0x140002ac9
call fcn.140015230
test al, al
je 0x140002ad3
mov ecx, 3
call fcn.1400150a0
mov dil, 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov edx, 1
lea ecx, [rdx + 0x63]
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
mov edx, 0x1ab2
mov r12, rax
lea r8d, [rcx + 1]
call qword [sym.imp.ntdll.dll_WinSqmIncrementDWORD]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x140002c0f
xor r8d, r8d
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], 1
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x140002c09
call qword [sym.imp.WINMM.dll_waveOutGetNumDevs]
mov r9b, 1
mov byte [rsp + 0x20], 1
mov r8b, r9b
lea rdx, [0x140000000]
mov ecx, 0xe
call qword [sym.imp.DUI70.dll_InitProcessPriv]
mov ebx, eax
test eax, eax
js 0x140002bf8
mov ecx, 2
call qword [sym.imp.DUI70.dll_InitThread]
mov ebx, eax
test eax, eax
js 0x140002beb
test r14d, r14d
jne 0x140002bd4
lea ecx, [r14 + 4]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x40]
mov r9d, ecx
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea rdx, str.RunningState
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x48]
call fcn.1400022a0
mov ebx, eax
call qword [sym.imp.DUI70.dll_UnInitThread]
mov r15d, dword [rsp + 0x48]
lea rcx, [0x140000000]
call qword [sym.imp.DUI70.dll_UnInitProcessPriv]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
and qword [rsp + 0x50], 0
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.ntdll.dll_WinSqmIsOptedIn]
test eax, eax
je 0x140002c4c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r8, rax
xor ecx, ecx
sub r8, r12
movabs rax, 0x624dd2f1a9fbe77
mul r8
sub r8, rdx
shr r8, 1
add r8, rdx
mov edx, 0xeb1
shr r8, 9
call qword [sym.imp.ntdll.dll_WinSqmIncrementDWORD]
call fcn.140010f54
xor r12d, r12d
test dil, dil
je 0x140002c63
lea ecx, [r12 + 2]
call fcn.1400150a0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x140002c9e
lea ecx, [r14 + 4]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x40]
mov r9d, ecx
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea rdx, str.RunningState
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
jns 0x140002d03
mov rcx, qword [0x14002b510]
lea r8, [rbp + 0x1a0]
mov r9d, 0x104
mov word [rbp + 0x1a0], r12w
mov edx, 0x3e8
mov word [rbp - 0x70], r12w
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [0x14002b510]
lea r8, [rbp - 0x70]
mov r9d, 0x104
mov edx, 0x3ec
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x10
lea r8, [rbp + 0x1a0]
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [0x14002a0c8]
lea rdi, [0x14002a0c8]
cmp rbx, rdi
je 0x140002d3a
jmp 0x140002d2e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002d2b
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], r12
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140002d18
mov qword [0x14002a0c8], rdi
lea rcx, [0x14002a080]
call fcn.14000172c
lea rcx, [section..data]
call fcn.14000172c
mov rcx, qword [0x14002a068]
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
mov qword [0x14002a068], r12
mov dword [0x14002a048], r12d
test rsi, rsi
je 0x140002da3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002da3
mov rcx, qword [0x14002a0c8]
cmp rcx, r13
je 0x140002da3
test byte [rcx + 0x1c], 1
je 0x140002da3
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov r9d, ebx
mov r8, rdi
call fcn.140001a0c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, r15d
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14001d6c0
mov rbx, qword [rsp + 0x508]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret