Function at 0x402900
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb9cf
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x510008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
test edx, edx
jne 0x40293f
or eax, 0xffffffff
jmp 0x402c1a
mov ecx, edx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402966
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403d60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov edx, str.__detect_available
cmovae ecx, dword [ebp - 0x2c]
call fcn.00483a70
test al, al
je 0x402b03
push 4
mov dword [ebp - 0x14], 0
call fcn.004c9d64
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 1
mov dword [esi], 0
mov dword [esi], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
xor eax, eax
push 0xe
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 0
push str.SafeUpdate.dll
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00403d60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00485390
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00484d80
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7c]
call fcn.00403cf0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.00403cf0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x402ac3
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ecx, ecx
je 0x402a6f
push ecx
call edi
test eax, eax
je 0x402a6f
mov dword [esi], 0
mov eax, ebx
mov dword [esi], ebx
test eax, eax
je 0x402a84
push eax
call edi
test eax, eax
je 0x402a84
mov dword [esi], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00403cf0
mov byte [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x402aa7
push eax
call edi
test eax, eax
je 0x402aa7
mov dword [esi], 0
push 4
push esi
call fcn.004c9d94
add esp, 8
mov dword [ebp - 0x14], 0
mov edi, 0x3e7
jmp 0x402c09
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00403cf0
mov byte [ebp - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x402aea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x402aea
mov dword [esi], 0
push 4
push esi
call fcn.004c9d94
add esp, 8
mov dword [ebp - 0x14], 0
xor edi, edi
jmp 0x402c09
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00402fc0
test al, al
je 0x402b28
push str.301DB991_8D1B_4431_BA55_CBECF478B330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 8], eax
test eax, eax
jne 0x402b30
or edi, 0xffffffff
jmp 0x402c09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402b50
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x402c02
lea ecx, [ebx + 0xc]
or edi, 0xffffffff
cmp dword [ecx + 0x14], 8
mov edx, ecx
jb 0x402b60
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x48], eax
cmp eax, 7
jne 0x402b8b
mov dword [ebp - 0x14], eax
mov esi, 0x4e6944
mov ax, word [edx]
cmp ax, word [esi]
jne 0x402b8b
add edx, 2
add esi, 2
sub dword [ebp - 0x14], 1
jne 0x402b73
mov al, 1
jmp 0x402b8d
xor al, al
test al, al
je 0x402bb8
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x7c]
call fcn.00403c00
mov byte [ebp - 4], 8
push ecx
mov ecx, ebx
call fcn.00402c40
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00403cf0
jmp 0x402bf9
cmp dword [ecx + 0x14], 8
jb 0x402bc0
mov ecx, dword [ecx]
cmp dword [ebp - 0x48], 0xb
jne 0x402be7
mov esi, 0xb
mov edx, str.repairfiles
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x402be7
add ecx, 2
add edx, 2
sub esi, 1
jne 0x402bd0
mov al, 1
jmp 0x402be9
xor al, al
test al, al
je 0x402bf9
mov ecx, ebx
call fcn.00403220
mov edi, 0x2345
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403cf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9d53
mov esp, ebp
pop ebp
ret 4