Function at 0x14001a53c
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1406ca7c8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov byte [rsp + 0x30], sil
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x115
lea r9, str.NGDesktopSureSupply::CDesktopSureSupplyMediator::IsAnotherInstanceRunning
lea r8, [0x1406e5660]
mov rdx, qword [0x1406e5688]
lea rcx, [rbp - 0x60]
call fcn.14000a0b4
nop
mov rdx, qword [rdi + 0x238]
add rdx, 0x40
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
or r15, 0xffffffffffffffff
mov r9, r15
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.1400092e8
nop
lea r8d, [rsi + 9]
lea rdx, str._hpqDTSS_
lea rcx, [rsp + 0x60]
call fcn.140008eb8
mov r9, r15
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140009014
mov dword [rsp + 0x40], esi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbx, qword [rsp + 0x60]
add rdi, 0x280
mov r8, rbx
lea rdx, [rsp + 0x48]
call fcn.14001ce48
nop
mov r8, qword [rax]
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rdi + 8], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001a67d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001a767
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14001a767
mov r8, rbx
lea rdx, [rsp + 0x50]
call fcn.14001cf0c
nop
mov r8, qword [rax]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rdi + 0x18], rax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14001a6ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14001a767
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001a717
mov rax, qword [rdi + 0x10]
mov ebx, dword [rax]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x14001a71b
mov ebx, dword [rsp + 0x40]
mov qword [rdi + 0x28], rsi
lea rdx, [rdi + 0x20]
mov dword [rdx], ebx
lea rcx, [0x14001cfd0]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x14001a762
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14001a762
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001a762
mov edx, 1
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov sil, 1
jmp 0x14001a792
mov rcx, rdi
call fcn.14001cdfc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8d, eax
mov rcx, rdi
call fcn.14001ccb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x80]
call fcn.140008e38
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140008e38
nop
lea rcx, [rbp - 0x60]
call fcn.14000a1fc
mov al, sil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14024cd60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret