Function at 0x403210
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4701de
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x8c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x8c], edi
xor eax, eax
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x42], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x400
mov byte [ebp - 4], 1
push 0x14
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.004511c8
add esp, 4
mov dword [ebp - 0x8c], eax
mov dword [eax], 0
mov dword [eax + 4], 0x10000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.00411340
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0x4d2fdc
mov eax, 3
mov byte [ebp - 0xb4], 1
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [0x4d2fdc]
test eax, eax
jne 0x40332f
mov eax, 1
mov ecx, 0x4d2fdc
lock xadd dword [ecx], eax
test eax, eax
jne 0x40332f
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4d2fe0], eax
jmp 0x403334
mov eax, dword [0x4d2fe0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4d333c]
mov dword [ebp - 0x8c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x40340d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x62], ax
mov byte [ebp - 4], 4
lea eax, [esi + 8]
cmp dword [esi + 0x1c], 0x10
jb 0x40336f
mov eax, dword [esi + 8]
push dword [ebp - 0x90]
lea ecx, [ebp - 0x70]
push dword [esi + 0x18]
push eax
call fcn.004111e0
xorps xmm0, xmm0
mov eax, 3
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x52], ax
sub esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x24]
mov eax, esp
mov edx, dword [esi + 0x20]
push dword [ebp - 0x90]
mov dword [eax], str.startTime
push ecx
push edx
lea ecx, [ebp - 0x60]
mov dword [eax + 4], 9
call fcn.004124f0
mov ecx, dword [esi + 0x2c]
sub esp, 8
mov edi, dword [ebp - 0x90]
mov eax, esp
mov edx, dword [esi + 0x28]
push edi
push ecx
push edx
lea ecx, [ebp - 0x60]
mov dword [eax], str.duration
mov dword [eax + 4], 8
call fcn.004124f0
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411250
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x8c]
jne 0x403352
mov edi, dword [ebp - 0xac]
push dword [0x4d2fe0]
mov byte [ebp - 0xb4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x94], 0x100
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xdc], eax
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc4], 0x100
mov dword [ebp - 0xc0], 0x144
mov byte [ebp - 0xbc], 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x50]
call fcn.004125f0
mov ecx, dword [ebp - 0x9c]
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x98]
jbe 0x4034ad
push 1
lea ecx, [ebp - 0xa8]
call fcn.00414920
mov ecx, dword [ebp - 0x9c]
lea eax, [ecx + 1]
mov dword [ebp - 0x9c], eax
mov byte [ecx], 0
dec dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
test edx, edx
je 0x403530
cmp byte [edx], 0
je 0x403530
mov ecx, edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00411c40
movups xmm0, xmmword [ebp - 0x88]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [edi + 0x10], xmm0
jmp 0x403555
push 0
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push 0x47c352
mov byte [edi], 0
call fcn.00411c40
push dword [ebp - 0xd0]
call fcn.004605b8
add esp, 4
push 1
push dword [ebp - 0xd4]
call fcn.00451449
push dword [ebp - 0xa0]
call fcn.004605b8
add esp, 0xc
push 1
push dword [ebp - 0xa4]
call fcn.00451449
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.00411170
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret