Function at 0x10040fd
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.01003404
push 0x1001554
mov dword [0x1015e08], 0x1001298
mov dword [section..data], esi
call fcn.010034d2
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x1004186
test dword [eax + 0x1c], 0x800
je 0x1004186
push 0x10012a8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003093
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x10041d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x10043fa
test dword [eax + 0x1c], 0x800
je 0x10043fa
push dword [ebp - 4]
push 0x10012a8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030b9
jmp 0x10043f5
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 0x1004212
mov eax, dword [section..data]
cmp eax, edi
je 0x10043fa
test dword [eax + 0x1c], 0x800
je 0x10043fa
push dword [ebp - 4]
push 0x10012a8
push 0xc
jmp 0x10041c4
lea eax, [ebp - 0xc]
push eax
push 0x1001534
call sub.slc.dll_SLGetWindowsInformationDWORD
test eax, eax
jge 0x1004227
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], ebx
jne 0x1004245
lea eax, [ebp - 0x24]
push eax
push 0x1001288
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.01005579
jmp 0x10043f5
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, ebx
jge 0x100428d
push esi
call fcn.01003669
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x10043fa
test dword [eax + 0x1c], 0x800
je 0x10043fa
push esi
push 0x10012a8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030b9
jmp 0x10043f5
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 0x10042d8
push esi
call fcn.01003669
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x10043fa
test dword [eax + 0x1c], 0x800
je 0x10043fa
push esi
push 0x10012a8
push 0xe
jmp 0x100427d
cmp dword [ebp - 4], ebx
jne 0x10043f5
lea eax, [ebp - 8]
push eax
call fcn.010053c7
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100431a
mov eax, dword [section..data]
cmp eax, edi
je 0x10043fa
test dword [eax + 0x1c], 0x800
je 0x10043fa
push dword [ebp - 4]
push 0x10012a8
push 0xf
jmp 0x10041c4
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 0x1004379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x10043af
test dword [eax + 0x1c], 0x800
je 0x10043af
push dword [ebp - 4]
push 0x10012a8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030b9
jmp 0x10043aa
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
call fcn.01003f82
mov dword [ebp - 4], eax
cmp eax, 0x3fa
je 0x1004398
cmp eax, 2
jne 0x10043aa
push ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, 5
jb 0x1004384
mov eax, dword [section..data]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x10043fa
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [section..data]
cmp eax, edi
je 0x10043ee
test dword [eax + 0x1c], 0x800
je 0x10043ee
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.010033d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [section..data]
cmp dword [ebp - 8], ebx
je 0x100440e
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ClosePrivateNamespace]
mov eax, dword [section..data]
cmp dword [ebp - 0x10], ebx
je 0x100441e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [section..data]
mov ecx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x18]
je 0x100446f
cmp dword [ebp - 4], ebx
jne 0x1004434
push ebx
push ebx
push 0x1001278
jmp 0x1004452
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 0x1004494
test dword [eax + 0x1c], 0x800
je 0x1004494
push dword [ebp - 4]
push 0x10012a8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010030b9
call fcn.0100351f
mov eax, dword [ebp - 4]
leave
ret