Function at 0x140044330
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x38], COleControl::XOleInPlaceObject::ContextSensitiveHelp
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov ecx, 0x18
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14004439c
mov dword [rsp + 0x38], 0xe
jmp 0x140044609
mov ecx, 0x28
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400443c6
mov dword [rsp + 0x38], 0xe
jmp 0x140044609
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1400443ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
jmp 0x140044609
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x14004441c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
jmp 0x140044609
mov rax, qword [rsp + 0x40]
mov dword [rax], 0x18
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
call fcn.140044840
test eax, eax
je 0x14004448a
lea rax, str.ACL_GUID_INCREMENT_LOCK_NAME_EEAE3455_256B_42bd_8294_A7831FB9B7F2
mov qword [rsp + 0x20], rax
lea r9, str.Global_
lea r8, [0x14008d9c0]
mov edx, 0x208
lea rcx, [rsp + 0x60]
call fcn.14002e1a0
jmp 0x1400444a7
lea r9, str.ACL_GUID_INCREMENT_LOCK_NAME_EEAE3455_256B_42bd_8294_A7831FB9B7F2
lea r8, [0x14008d534]
mov edx, 0x208
lea rcx, [rsp + 0x60]
call fcn.14002e1a0
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400444da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
jmp 0x140044609
mov edx, 0x3e8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140044536
mov dword [rsp + 0x38], 0x46b
xor r8d, r8d
lea rdx, str..AhnNameHelper.cpp
lea rcx, [0x1400cb7f0]
call fcn.14002d870
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x30]
lea rdx, str.AHNCreateGuid_mutex_is_timeout._handle:_p__name:_s
lea rcx, [0x1400cb7f0]
call fcn.14002da20
jmp 0x140044609
lea rcx, [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp eax, 1
je 0x140044561
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x278], eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp eax, 1
je 0x140044598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
jmp 0x140044609
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov rax, qword [rsp + 0x2b0]
mov dword [rax], edx
mov ecx, dword [rsp + 0x278]
shr rcx, 0x10
and rcx, 0xffff
mov rax, qword [rsp + 0x2b0]
mov word [rax + 4], cx
mov ecx, dword [rsp + 0x278]
and rcx, 0xffff
mov rax, qword [rsp + 0x2b0]
mov word [rax + 6], cx
mov rcx, qword [rsp + 0x2b0]
add rcx, 8
mov r8d, 8
lea rdx, [rsp + 0x270]
call sub.MSVCR90.dll_memcpy
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x140044627
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 0
je 0x14004463a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR90.dll_free]
cmp qword [rsp + 0x48], 0
je 0x14004464d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCR90.dll_free]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14004d770
add rsp, 0x2a0
pop rdi
ret