Function at 0x405dc0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x428780
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
xor ebx, ebx
cmp ecx, ebx
je 0x40611d
mov eax, ecx
mov byte [esp + 0x1b], bl
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405e12
sub eax, esi
sar eax, 1
push eax
lea esi, [ebp + 0x14]
push ecx
mov dword [esp + 0x24], esi
call fcn.00404580
push esi
mov edx, str.Local_
lea edi, [esp + 0x24]
call fcn.00409c40
add esp, 4
mov dword [esp + 0x9c], ebx
push eax
mov ebx, str._Mapping
lea esi, [esp + 0x78]
call fcn.00404a50
add esp, 4
mov esi, 8
mov byte [esp + 0x9c], 2
cmp dword [esp + 0x38], esi
jb 0x405e7a
mov eax, dword [esp + 0x24]
push eax
call fcn.00416abb
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 0x405e9e
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 dword [ebp], eax
je 0x406079
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x405ecf
mov byte [esp + 0x1b], 1
mov ecx, dword [ebp]
push ebx
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 4], eax
je 0x406043
mov edx, dword [esp + 0x1c]
mov dword [ebp + 8], eax
add eax, 0x10
push edx
mov edx, str.Local_
lea edi, [esp + 0x40]
mov dword [ebp + 4], eax
call fcn.00409c40
add esp, 4
push eax
mov ebx, str._Event
lea esi, [esp + 0x5c]
mov byte [esp + 0xa0], 3
call fcn.00404a50
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 4
call fcn.004040a0
call fcn.00403f40
mov esi, edi
mov byte [esp + 0x9c], 2
call fcn.00403f40
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x405f5d
lea eax, [esp + 0x78]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
push eax
mov edx, str.Local_
lea edi, [esp + 0x5c]
call fcn.00409c40
add esp, 4
push eax
mov ebx, str._Mutex
lea esi, [esp + 0x40]
mov byte [esp + 0xa0], 5
call fcn.00404a50
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 6
call fcn.004040a0
call fcn.00403f40
mov esi, edi
mov byte [esp + 0x9c], 2
call fcn.00403f40
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x405fd8
lea eax, [esp + 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp byte [esp + 0x1b], 0
mov dword [ebp + 0x10], eax
je 0x406006
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x19000
xor ebx, ebx
cmp dword [ebp], ebx
je 0x4060b6
cmp dword [ebp + 4], ebx
je 0x4060b6
cmp dword [ebp + 0xc], ebx
je 0x4060b6
cmp dword [ebp + 0x10], ebx
je 0x4060b6
lea esi, [esp + 0x74]
call fcn.00403f40
xor eax, eax
cmp byte [esp + 0x1b], bl
setne al
jmp 0x406120
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
call esi
push eax
push str.SMCircleBuffer::InitSMCircleBuffer:_Get_sharememory_pointer_fail__d__
push 2
call fcn.00415b20
add esp, 0xc
jmp 0x406008
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SMCircleBuffer::InitSMCircleBuffer:_Create_sharememory_fail__d__
push 2
call fcn.00415b20
add esp, 0xc
jmp 0x406008
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4060c6
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4060d0
push eax
call esi
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x4060de
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp]
cmp eax, ebx
je 0x4060e8
push eax
call esi
mov esi, dword [esp + 0x1c]
push ebx
push 0x42c114
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
call fcn.00404580
cmp dword [esp + 0x8c], 8
jb 0x40611d
mov edx, dword [esp + 0x78]
push edx
call fcn.00416abb
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004170e8
add esp, 0x8c
ret 4