Function at 0x18004ac90
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffffd0c
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, SafeArrayGetDim
mov word [rsp + 0x44], ax
movsx rax, word [rsp + 0x44]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004ad24
movsx rax, word [rsp + 0x44]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x44]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x48], 0x3e8c
lea rax, [0x1800a0638]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18004ad9b
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18004ad9b
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov byte [rsp + 0x30], 0
lea rax, [0x1800a063c]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x98]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18004ae0f
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x18004ae0f
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffffcdf
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x170]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004aec8
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov r8d, 0x3e8
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x170]
call fcn.18004c950
movzx eax, al
test eax, eax
jne 0x18004aef5
xor al, al
jmp 0x18004b77c
mov edx, 1
lea rcx, [rsp + 0x100]
call fcn.1800368b0
lea rcx, [rsp + 0x100]
call fcn.18001ec60
nop
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004af93
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x170]
add rax, 0x48
mov qword [rsp + 0xb0], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x1800a0640]
lea rcx, [rsp + 0x100]
call fcn.180024840
mov r8, 0xffffffffffffffff
mov rdx, qword [0x1800a0868]
mov rcx, rax
call fcn.180024840
mov r8, 0xffffffffffffffff
lea rdx, [0x1800a0648]
mov rcx, rax
call fcn.180024840
mov rcx, qword [rsp + 0xb0]
mov rdx, rcx
mov rcx, rax
call fcn.180024780
call fcn.180027cc0
test rax, rax
je 0x18004b056
call fcn.180027cc0
cmp qword [rax + 0x578], 0
je 0x18004b056
lea rcx, [rsp + 0x100]
call fcn.18000be20
mov qword [rsp + 0xa0], rax
call fcn.180027cc0
mov rcx, qword [rsp + 0xa0]
mov r8, rcx
xor edx, edx
mov ecx, 0xf001f
call qword [rax + 0x578]
mov qword [rsp + 0x88], rax
jmp 0x18004b062
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
add eax, 0x61bf39
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.18004b7a0
movzx eax, al
test eax, eax
jne 0x18004b4be
mov dword [rsp + 0x7c], SafeArrayGetElement
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x7c]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
lea rax, [0x1800a0654]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18004b151
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18004b151
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffffc90
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov dword [rsp + 0xe8], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [rsp + 0xf8], 1
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
cmp eax, 0x1f5a9c89
jne 0x18004b1c6
lea r8, [0x1800a0680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xe0], rax
jmp 0x18004b1ee
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
lea rax, [rsp + 0x130]
mov qword [rsp + 0xf0], rax
mov edx, 1
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x34], ax
movsx rax, word [rsp + 0x34]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004b250
movsx rax, word [rsp + 0x34]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x34]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x130]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
add eax, 0x1c8d503
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x68], 5
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x68]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
call fcn.180027cc0
test rax, rax
je 0x18004b323
call fcn.180027cc0
cmp qword [rax + 0xcc8], 0
je 0x18004b323
lea rcx, [rsp + 0x100]
call fcn.18000be20
mov qword [rsp + 0xb8], rax
call fcn.180027cc0
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 4
lea rdx, [rsp + 0xe8]
mov rcx, 0xffffffffffffffff
call qword [rax + 0xcc8]
mov qword [rsp + 0x90], rax
jmp 0x18004b32f
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
lea rax, [0x1800a06c0]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18004b3b1
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18004b3b1
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.18004b7a0
movzx eax, al
test eax, eax
jne 0x18004b4b9
mov edx, 1
lea rcx, [rsp + 0x118]
call fcn.1800368b0
lea rcx, [rsp + 0x118]
call fcn.18001ec60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1800a0658]
lea rcx, [rsp + 0x118]
call fcn.180029200
lea r9, [rsp + 0x118]
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x170]
call fcn.18004b810
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004b4ac
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0x118]
call fcn.180013e90
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.18004b7a0
movzx eax, al
test eax, eax
je 0x18004b60b
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004b55f
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
cmp eax, 0x9e30d151
jne 0x18004b593
lea r8, [0x1800a06e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xd8], rax
jmp 0x18004b5bb
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x170]
mov qword [rcx + 8], rax
mov dword [rsp + 0x78], SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x78]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x18004b6fc
mov eax, SafeArrayUnaccessData
mov word [rsp + 0x38], ax
movsx rax, word [rsp + 0x38]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004b657
movsx rax, word [rsp + 0x38]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x38]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x170]
cmp qword [rax + 8], 0
je 0x18004b6cc
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 8]
mov dword [rax], 0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 8]
mov dword [rax + 4], 0
mov eax, SafeArrayUnaccessData
mov word [rsp + 0x3c], ax
movsx rax, word [rsp + 0x3c]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004b6ca
movsx rax, word [rsp + 0x3c]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x3c]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
jmp 0x18004b6fc
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.18004b7a0
movzx eax, al
test eax, eax
je 0x18004b6fc
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x170]
call fcn.18004c850
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffffbce
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x170]
cmp qword [rax + 8], 0
je 0x18004b759
mov dword [rsp + 0x4c], 1
jmp 0x18004b761
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x100]
call fcn.180013e90
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0x168
ret