Function at 0x39e9458f
Capabilities:
Check mutex on windows

Disassembly:
push 0x2c
mov eax, 0x39ebc1b3
call fcn.39eaec45
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x39e9483d
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x39e945ab
sub eax, edx
sar eax, 1
je 0x39e9483d
cmp dword [ebp + 8], ebx
je 0x39e9483d
mov dword [ebp - 0x14], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.39e57530
cmp eax, ebx
jl 0x39e94606
cmp dword [ebp - 0x14], ebx
je 0x39e94606
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.39e60de2
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], ebx
jne 0x39e94619
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.39e31580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.39e5ff7d
mov eax, edi
jmp 0x39e94840
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.39e36ad1
cmp eax, ebx
jl 0x39e9489c
mov esi, dword [ebp - 0x10]
cmp esi, ebx
je 0x39e9489c
push 0x39e08dc0
lea ecx, [ebp - 0x24]
call fcn.39eb4742
mov ebx, eax
mov byte [ebp - 4], 5
mov edi, 0x39e08da4
push edi
lea ecx, [ebp + 8]
call fcn.39eb4742
mov byte [ebp - 4], 6
mov ebx, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [esi]
push 0
push ebx
push eax
push esi
call dword [ecx + 0x30]
mov byte [ebp - 4], 5
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
call esi
push 0x39e08d7c
push 0
push 0x1f0001
call dword [sym.imp.kernel32.dll_OpenMutexW]
mov dword [ebp + 8], eax
test eax, eax
je 0x39e947c9
mov ebx, dword [ebp - 0x10]
push 0x39e08d30
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
push edi
lea ecx, [ebp - 0x28]
call fcn.39eb4742
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push ecx
push eax
push ebx
call dword [edx + 0x30]
mov byte [ebp - 4], 7
push dword [ebp - 0x28]
call esi
mov byte [ebp - 4], 4
push dword [ebp - 0x2c]
call esi
mov eax, dword [ebp - 0x18]
or dword [ebp - 0x20], 0xffffffff
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x38]
xor eax, eax
cmp word [ebp - 0x20], 0xffff
setne al
dec eax
and eax, 0x10e
add eax, 0x1e
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
jmp 0x39e947b0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jge 0x39e9472e
inc dword [ebp - 0x1c]
jmp 0x39e947b0
mov ebx, dword [ebp - 0x10]
push 0x39e08ca8
lea ecx, [ebp - 0x34]
call fcn.39eb4742
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 9
push edi
lea ecx, [ebp - 0x30]
call fcn.39eb4742
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push ecx
push eax
push ebx
call dword [edx + 0x30]
mov byte [ebp - 4], 9
push dword [ebp - 0x30]
call esi
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
call esi
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 2
call fcn.39eb4742
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
mov ecx, dword [ebx]
lea edx, [ebp - 0x24]
push edx
push 5
push eax
push ebx
call dword [ecx + 0x48]
mov byte [ebp - 4], 4
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x24], 2
je 0x39e94848
push 0x7d0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x39e9471e
mov ebx, dword [ebp - 0x10]
push 0x39e08c40
lea ecx, [ebp - 0x34]
call fcn.39eb4742
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xe
push edi
lea ecx, [ebp - 0x38]
call fcn.39eb4742
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push ecx
push eax
push ebx
call dword [edx + 0x30]
mov byte [ebp - 4], 0xe
push dword [ebp - 0x38]
call esi
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
call esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.39e5ff7d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.39e31580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.39e5ff7d
xor eax, eax
inc eax
call fcn.39eaed31
ret 8
mov ebx, dword [ebp - 0x10]
push 0x39e08c00
lea ecx, [ebp - 0x34]
call fcn.39eb4742
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xc
push edi
lea ecx, [ebp - 0x38]
call fcn.39eb4742
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [ebx]
push 0
push ecx
push eax
push ebx
call dword [edx + 0x30]
mov byte [ebp - 4], 0xc
push dword [ebp - 0x38]
call esi
mov byte [ebp - 4], 4
push dword [ebp - 0x34]
call esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
xor esi, esi
jmp 0x39e9489e
mov esi, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.39e5ff7d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.39e31580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.39e5ff7d
mov eax, esi
jmp 0x39e94840