Function at 0x1004150
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
pop eax
push 0x32
mov word [ebp - 0x24], ax
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], 0x1001584
mov esi, 0x1015de8
push esi
call fcn.01003454
push 0x1001554
mov dword [0x1015e08], 0x1001298
mov dword [section..data], esi
call fcn.01003522
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x10041d9
test dword [eax + 0x1c], 0x800
je 0x10041d9
push 0x10012a8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030e3
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x1004227
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x100444d
test dword [eax + 0x1c], 0x800
je 0x100444d
push dword [ebp - 4]
push 0x10012a8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100323d
jmp 0x1004448
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x1001254
call dword [sym.imp.ntdll.dll_EtwEventRegister]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1004265
mov eax, dword [section..data]
cmp eax, edi
je 0x100444d
test dword [eax + 0x1c], 0x800
je 0x100444d
push dword [ebp - 4]
push 0x10012a8
push 0xc
jmp 0x1004217
lea eax, [ebp - 0xc]
push eax
push 0x1001534
call sub.slc.dll_SLGetWindowsInformationDWORD
test eax, eax
jge 0x100427a
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], ebx
jne 0x1004298
lea eax, [ebp - 0x24]
push eax
push 0x1001288
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.010055c9
jmp 0x1004448
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, ebx
jge 0x10042e0
push esi
call fcn.010036b9
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x100444d
test dword [eax + 0x1c], 0x800
je 0x100444d
push esi
push 0x10012a8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100323d
jmp 0x1004448
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
cmp esi, ebx
jge 0x100432b
push esi
call fcn.010036b9
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x100444d
test dword [eax + 0x1c], 0x800
je 0x100444d
push esi
push 0x10012a8
push 0xe
jmp 0x10042d0
cmp dword [ebp - 4], ebx
jne 0x1004448
lea eax, [ebp - 8]
push eax
call fcn.01005417
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100436d
mov eax, dword [section..data]
cmp eax, edi
je 0x100444d
test dword [eax + 0x1c], 0x800
je 0x100444d
push dword [ebp - 4]
push 0x10012a8
push 0xf
jmp 0x1004217
push 0x100001
push ebx
push 0x1001508
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x10014d8
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x10043cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x1004402
test dword [eax + 0x1c], 0x800
je 0x1004402
push dword [ebp - 4]
push 0x10012a8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100323d
jmp 0x10043fd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
call fcn.01003fd5
mov dword [ebp - 4], eax
cmp eax, 0x3fa
je 0x10043eb
cmp eax, 2
jne 0x10043fd
push ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, 5
jb 0x10043d7
mov eax, dword [section..data]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x100444d
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [section..data]
cmp eax, edi
je 0x1004441
test dword [eax + 0x1c], 0x800
je 0x1004441
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [section..data]
push esi
push 0x10012a8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003422
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [section..data]
cmp dword [ebp - 8], ebx
je 0x1004461
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ClosePrivateNamespace]
mov eax, dword [section..data]
cmp dword [ebp - 0x10], ebx
je 0x1004471
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [section..data]
mov ecx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x18]
je 0x10044c2
cmp dword [ebp - 4], ebx
jne 0x1004487
push ebx
push ebx
push 0x1001278
jmp 0x10044a5
lea eax, [ebp - 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], ebx
push 0x1001268
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_EtwEventWrite]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_EtwEventUnregister]
mov eax, dword [section..data]
cmp eax, edi
pop edi
pop esi
pop ebx
je 0x10044e7
test dword [eax + 0x1c], 0x800
je 0x10044e7
push dword [ebp - 4]
push 0x10012a8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100323d
call fcn.0100356f
mov eax, dword [ebp - 4]
leave
ret