Function at 0x418a40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4614e3
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [ebp - 0x144], edi
mov esi, edx
call fcn.00418940
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 4]
push eax
mov dword [edi], vtable.iusl::GlobalMutex.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x418a9e
mov eax, dword [esi]
jmp 0x418aa0
mov eax, esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x134], eax
cmp ecx, ebx
jne 0x418bf0
cmp eax, 5
jne 0x418b72
cmp dword [esi + 0x14], 8
jb 0x418ad4
mov esi, dword [esi]
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x419024
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1a
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
call fcn.00403400
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0xe8], esi
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.00419530
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407040
push 0x476cc4
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
push eax
call fcn.0044404d
cmp ecx, ebx
jne 0x418bf0
push 0x1a
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
call fcn.00403400
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0xa0], esi
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.00419170
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0xe8]
call fcn.00407040
push 0x476cc4
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 0xe8], esi
call fcn.0044404d
cmp eax, 0xb7
je 0x419024
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x418c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1a
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.00403400
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0xa0], esi
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00419710
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0x130]
call fcn.00407040
push 0x476cc4
lea ecx, [ebp - 0x130]
push ecx
mov dword [ebp - 0x130], esi
call fcn.0044404d
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea edx, [ebp - 0x134]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], pe_nt_image_headers32
call esi
test eax, eax
jne 0x418d3a
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x134]
call fcn.00419050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
call fcn.00402390
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 7
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0x130], esi
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
call fcn.004198f0
jmp 0x418b48
push 0x40
lea ecx, [ebp - 0xe8]
push ebx
push ecx
call fcn.00443e90
mov edx, dword [ebp - 0x134]
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0xe8], 0x100000
mov dword [ebp - 0xe4], 2
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], 5
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x1c], 0x500
call esi
test eax, eax
jne 0x418e3d
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x134]
call fcn.00419050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
call fcn.00402390
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 9
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xa
call fcn.00419ad0
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407040
push 0x476cc4
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
push ecx
jmp 0x418b6d
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x140]
push ecx
mov dword [ebp - 0xac], edx
push ebx
mov eax, 2
lea edx, [ebp - 0xe8]
push edx
push eax
mov dword [ebp - 0xc8], 0x1f0000
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x418f21
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x134]
call fcn.00419050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
call fcn.00402390
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xb
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0x130], esi
lea ecx, [ebp - 0x138]
push ecx
mov edi, str.SetEntriesInAcl_failed:_err:
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xc
call fcn.00419cb0
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0xa0]
call fcn.00407040
push 0x476cc4
lea edx, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
push edx
jmp 0x418b6d
mov eax, dword [ebp - 0x140]
push ebx
push eax
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x418fa2
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x134]
call fcn.00419050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
call fcn.00402390
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0x130], esi
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xe
call fcn.00419e90
jmp 0x418e13
mov eax, dword [edi + 4]
lea edx, [ebp - 0x50]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
mov ebx, dword [ebp - 0x140]
mov esi, dword [ebp - 0x13c]
test eax, eax
mov eax, dword [ebp - 0x134]
jne 0x41901f
call fcn.00419050
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GlobalMutex::GlobalMutex__
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x138], eax
call fcn.00402390
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xf
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0x130], esi
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x10
call fcn.0041a070
jmp 0x418b48
call fcn.00419050
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret