Function at 0x427980
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x52f353
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, ecx
mov ecx, dword [esi + 0x38]
xor ebx, ebx
cmp ecx, ebx
je 0x427a70
mov dword [esi + 0x18], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
cmp dword [esi + 0x10], ebx
jne 0x427b9e
mov eax, dword [ecx]
mov edx, dword [eax + 0x44]
call edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.0040ace0
mov edx, str._UpdateSyncMutex
lea edi, [esp + 0x44]
mov dword [esp + 0x3c], ebx
call fcn.0042a710
push 8
call fcn.00501e17
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x427a25
mov edx, dword [esp + 0x44]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi + 4], ecx
jmp 0x427a27
xor edi, edi
mov dword [esi + 0x5c], edi
cmp dword [edi + 4], ebx
je 0x427a77
mov eax, dword [edi]
cmp eax, ebx
je 0x427a3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00501b8f
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 4
mov dword [esi + 0x5c], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427a70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x427ba0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
call fcn.00438a50
push 0x34
call fcn.00501e17
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x3c], 1
cmp eax, ebx
je 0x427aad
push str.update
mov ecx, eax
call fcn.004d9530
jmp 0x427aaf
xor eax, eax
mov byte [esp + 0x3c], bl
mov ecx, eax
mov dword [esi + 0x10], eax
call fcn.004d9ad0
test al, al
jne 0x427ae3
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x427ad0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [esp + 0x44]
mov dword [esi + 0x10], ebx
call fcn.0042a660
xor al, al
jmp 0x427ba0
xor ecx, ecx
mov eax, 0x427d10
push ecx
cmp ebp, ebx
mov dword [esp + 0x18], esi
push eax
lea ebx, [esp + 0x20]
jle 0x427b4b
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042f030
add esp, 0xc
mov edi, eax
push 0
mov eax, ebp
cdq
push 0x3938700
push edx
push eax
mov byte [esp + 0x4c], 2
call fcn.00503430
mov ecx, dword [esi + 0x10]
mov esi, dword [ecx + 0x10]
push edx
push eax
push edi
call fcn.004d5bc0
push eax
push 0x62
push str..UpdateThread.cpp
push str.UpdateThread::Startup
lea ecx, [esp + 0x3c]
call fcn.004d5ba0
push eax
mov ecx, esi
call fcn.004d8050
jmp 0x427b87
lea edx, [esp + 0x1c]
push edx
call fcn.0042f030
add esp, 0xc
mov byte [esp + 0x3c], 3
mov ecx, dword [esi + 0x10]
mov esi, dword [ecx + 0x10]
push eax
call fcn.004d5bc0
push eax
push 0x64
push str..UpdateThread.cpp
push str.UpdateThread::Startup
lea ecx, [esp + 0x34]
call fcn.004d5ba0
push eax
mov ecx, esi
call fcn.004d7e70
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.004d5ab0
lea eax, [esp + 0x44]
call fcn.0042a660
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4