Function at 0x403700
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5a800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x50], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.00408b10
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x64]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x40378f
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004025b0
mov dword [ebp - 4], 6
jmp 0x4037bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4037f1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004025b0
mov dword [ebp - 4], 0xb
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4037e7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4037e7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4037e7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, 1
jmp 0x403931
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.004025b0
mov dword [ebp - 4], 0x10
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x40382c
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40382c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40382c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [ebp - 4], 0x11
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 4], 0x12
test edx, edx
je 0x403889
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403870
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402610
mov ecx, ebx
call fcn.00403960
lea eax, [ebp - 0x4c]
push eax
call fcn.00401f80
mov ecx, eax
call fcn.00402000
call fcn.00401f80
push eax
lea ecx, [ebp - 0x34]
call fcn.00402430
mov byte [ebp - 4], 0x13
lea esi, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae esi, dword [ebp - 0x34]
cmp dword [ebp - 0x24], 6
jne 0x4038e5
mov ecx, str.update
mov edx, 6
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4038e5
add ecx, 2
sub edx, 1
jne 0x4038d0
mov bl, 1
jmp 0x4038e7
xor bl, bl
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x14
call fcn.004025b0
mov byte [ebp - 4], 0x12
test bl, bl
je 0x403904
call fcn.00403f40
mov bl, al
jmp 0x403906
xor bl, bl
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
test eax, eax
je 0x40391d
cmp dword [eax + 0x34], 0
lea ecx, [eax + 0x34]
je 0x40391d
call fcn.004088d0
movzx esi, bl
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0x18
call fcn.004025b0
mov eax, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055929f
mov esp, ebp
pop ebp
ret 4