Function at 0x1002403
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x1004088
push esi
call fcn.01001ab7
push 0x1001350
mov dword [0x10040a8], 0x1001170
mov dword [section..data], esi
call fcn.01001b85
mov eax, dword [section..data]
mov esi, section..data
mov ebx, 0x1000
mov edi, 0x1001180
cmp eax, esi
je 0x100246d
test dword [eax + 0x1c], ebx
je 0x100246d
push edi
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001985
push 0x10040b0
push 0
push 0
push 0x100113c
call dword [sym.imp.ntdll.dll_EtwEventRegister]
mov dword [ebp - 4], eax
test eax, eax
je 0x10024b4
mov eax, dword [section..data]
cmp eax, esi
je 0x10025df
test dword [eax + 0x1c], ebx
je 0x10025df
push dword [ebp - 4]
push edi
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a8b
jmp 0x10025da
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x10024e9
mov eax, dword [section..data]
cmp eax, esi
je 0x10025df
test dword [eax + 0x1c], ebx
je 0x10025df
push edi
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001985
jmp 0x10025da
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x1002521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, esi
je 0x10025df
test dword [eax + 0x1c], ebx
je 0x10025df
push dword [ebp - 4]
push edi
push 0xd
jmp 0x10024a4
lea eax, [ebp - 8]
push eax
call fcn.010031d5
mov dword [ebp - 4], eax
test eax, eax
je 0x1002556
mov eax, dword [section..data]
cmp eax, esi
je 0x10025df
test dword [eax + 0x1c], 0x800
je 0x10025df
push dword [ebp - 4]
push edi
push 0xe
jmp 0x10024a4
and dword [ebp - 0xc], 0
push 0x100001
push 0
push 0x1001328
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0x10012f8
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov ebx, eax
test ebx, ebx
jne 0x10025b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, esi
je 0x10025c8
test dword [eax + 0x1c], 0x800
je 0x10025c8
push dword [ebp - 4]
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a8b
jmp 0x10025c3
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0100223f
mov dword [ebp - 4], eax
mov eax, dword [section..data]
test ebx, ebx
je 0x10025df
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [section..data]
cmp dword [ebp - 8], 0
je 0x10025f5
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ClosePrivateNamespace]
mov eax, dword [section..data]
mov ecx, dword [0x10040b0]
mov edx, dword [0x10040b4]
mov ebx, ecx
or ebx, edx
je 0x1002645
xor eax, eax
cmp dword [ebp - 4], eax
je 0x100261f
push dword [ebp - 4]
push 0x1001150
push edx
push ecx
call fcn.0100316c
jmp 0x100262e
push eax
push eax
push 0x1001160
push edx
push ecx
call dword [sym.imp.ntdll.dll_EtwEventWrite]
push dword [0x10040b4]
push dword [0x10040b0]
call dword [sym.imp.ntdll.dll_EtwEventUnregister]
mov eax, dword [section..data]
cmp eax, esi
je 0x1002663
test dword [eax + 0x1c], 0x1000
je 0x1002663
push dword [ebp - 4]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001a8b
call fcn.01001bd2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret