Function at 0x403c20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435a53
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x443284]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x443284]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
cmp ecx, ebx
mov edi, edx
mov dword [esp + 0x18], edi
je 0x403f8e
mov eax, ecx
mov byte [esp + 0x17], bl
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x403c80
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x14]
push ecx
mov dword [esp + 0x24], esi
call fcn.00401d80
push esi
mov edx, str.Local_
lea edi, [esp + 0x24]
call fcn.00411620
add esp, 4
mov dword [esp + 0xa0], ebx
push eax
mov ebx, 0x43a200
lea esi, [esp + 0x78]
call fcn.00402310
add esp, 4
mov esi, 8
mov byte [esp + 0xa0], 2
cmp dword [esp + 0x38], esi
jb 0x403ce8
mov eax, dword [esp + 0x24]
push eax
call fcn.0041f829
add esp, 4
mov eax, dword [esp + 0x78]
xor ebx, ebx
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jae 0x403d0c
lea eax, [esp + 0x78]
push eax
push 0x19010
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov esi, dword [esp + 0x18]
mov dword [esi], eax
je 0x403ec4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x403d40
mov byte [esp + 0x17], 1
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x403e8e
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
add eax, 0x10
push edx
mov edx, str.Local_
lea edi, [esp + 0x40]
mov dword [esi + 4], eax
call fcn.00411620
add esp, 4
push eax
mov ebx, str._Event
lea esi, [esp + 0x5c]
mov byte [esp + 0xa4], 3
call fcn.00402310
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 4
call fcn.00401a50
mov ecx, esi
call fcn.004018f0
mov ecx, edi
mov byte [esp + 0xa0], 2
call fcn.004018f0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x403dcf
lea eax, [esp + 0x78]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, str.Local_
lea edi, [esp + 0x5c]
mov dword [ecx + 0xc], eax
call fcn.00411620
add esp, 4
push eax
mov ebx, str._Mutex
lea esi, [esp + 0x40]
mov byte [esp + 0xa4], 5
call fcn.00402310
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 6
call fcn.00401a50
mov ecx, esi
call fcn.004018f0
mov ecx, edi
mov byte [esp + 0xa0], 2
call fcn.004018f0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x403e50
lea eax, [esp + 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
je 0x403efe
mov esi, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov ecx, dword [edx + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [edx + 8]
mov dword [edx], 0x19000
jmp 0x403f00
call fcn.00414fa0
push eax
push str.___s__
push 0x104
push 0x104
push 0x445be0
call fcn.0041f84a
add esp, 0x14
call edi
push eax
push str.SMCircleBuffer::InitSMCircleBuffer:_Get_sharememory_pointer_fail__d__
push 2
call fcn.004154c0
add esp, 0xc
jmp 0x403f02
call fcn.00414fa0
push eax
push str.___s__
push 0x104
push 0x104
push 0x445be0
call fcn.0041f84a
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SMCircleBuffer::InitSMCircleBuffer:_Create_sharememory_fail__d__
push 2
call fcn.004154c0
add esp, 0xc
jmp 0x403f02
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
je 0x403f29
cmp dword [esi + 4], ebx
je 0x403f29
cmp dword [esi + 0xc], ebx
je 0x403f29
cmp dword [esi + 0x10], ebx
je 0x403f29
lea ecx, [esp + 0x74]
call fcn.004018f0
xor eax, eax
cmp byte [esp + 0x17], bl
setne al
jmp 0x403f91
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403f39
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x403f43
push eax
call edi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403f51
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
cmp eax, ebx
je 0x403f5a
push eax
call edi
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov esi, dword [esp + 0x20]
push 0x439e24
call fcn.00401d80
cmp dword [esp + 0x8c], 8
jb 0x403f8e
mov eax, dword [esp + 0x78]
push eax
call fcn.0041f829
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041f134
mov esp, ebp
pop ebp
ret