Function at 0x42f063
Capabilities:
Check mutex on windows

Disassembly:
push 0x28
mov eax, 0x4ce4e8
call fcn.004b3b70
mov esi, dword [ebp + 8]
push ecx
xor edi, edi
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.004235f2
call fcn.004670b0
pop ecx
cmp eax, edi
jne 0x42f0a8
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push str.NeedToAuthenticate:_file_doesnt_exist__need_to_authenticate
push eax
call fcn.00464a80
pop ecx
pop ecx
jmp 0x42f49d
lea eax, [esi + 4]
push dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push str.Cameyo.AuthToken.AppId._s
push eax
call fcn.00464a80
add esp, 0xc
push dword [eax]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042101a
cmp esi, edi
je 0x42f0e5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push dword [ebp + 8]
lea ebx, [ebp - 0x1c]
lea edi, [ebp - 0x20]
call fcn.004235f2
call fcn.00465210
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f115
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42f484
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x42f484
cmp dword [ebp - 0x1c], 0x28
je 0x42f158
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push 0x28
push dword [ebp - 0x1c]
push str._NeedToAuthenticate:_size_mismatch___d_vs__d_
push eax
call fcn.00464a80
add esp, 0x10
call fcn.0042ef08
pop ecx
push esi
call fcn.004add25
jmp 0x42f4a2
push 0x28
push esi
call fcn.0042ef88
mov ebx, dword [ebp + 8]
push 0xa
add ebx, 0x14
pop ecx
push dword [ebp - 0x20]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], 0x28
call fcn.004add25
add esp, 0xc
mov eax, ebx
call fcn.0042f6f3
test eax, eax
jne 0x42f197
mov eax, dword [ebp + 8]
call fcn.0042f4f3
jmp 0x42f4a3
lea eax, [ebp - 0x18]
push eax
call fcn.0046a600
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0046a6f0
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.004235f2
call fcn.0042ef38
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [esi + 0x18]
push ecx
mov dword [ebp + 8], esp
cmp eax, ecx
je 0x42f222
mov ebx, esp
push dword [edi]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call fcn.004235f2
call fcn.0042ef38
pop ecx
push eax
push str._NeedToAuthenticate:_AppID_changed:__d_vs__d___s_
push ebx
call fcn.00464a80
add esp, 0x14
call fcn.0042ef08
pop ecx
mov eax, esi
call fcn.0042f4f3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
jmp 0x42f4a3
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00423d39
call fcn.0042ef38
pop ecx
mov ecx, dword [esi + 0x1c]
push ecx
mov dword [ebp + 8], esp
cmp eax, ecx
je 0x42f262
mov edi, esp
push dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push ecx
push ecx
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.00423d39
call fcn.0042ef38
pop ecx
push eax
push str._NeedToAuthenticate:_Machine_changed:__d_vs__d___s_
push edi
jmp 0x42f1f2
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00423d39
call fcn.0042ef38
pop ecx
mov ecx, dword [esi + 0x20]
cmp eax, ecx
je 0x42f2a1
push ecx
mov dword [ebp + 8], esp
mov edi, esp
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push ecx
push ecx
mov dword [ebp + 8], esp
mov ecx, esp
push eax
call fcn.00423d39
call fcn.0042ef38
pop ecx
push eax
push str._NeedToAuthenticate:_User_changed:__d_vs__d___s_
jmp 0x42f25f
cmp dword [esi + 0xc], 1
jne 0x42f2e9
push ecx
lea edi, [esi + 8]
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call fcn.004235f2
call fcn.0042ef38
pop ecx
mov ecx, dword [esi + 0x24]
cmp eax, ecx
je 0x42f2e9
push ecx
mov dword [ebp + 8], esp
mov ebx, esp
push dword [edi]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call fcn.004235f2
call fcn.0042ef38
pop ecx
push eax
push str._NeedToAuthenticate:_Pkgs_BuildUID_has_changed:__d_vs__d___s_
jmp 0x42f1f1
lea eax, [esi + 0x28]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x34]
call fcn.0042ee0c
push 0xffffffffffffffff
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ee0c
push 0
call fcn.004b0a6b
pop ecx
mov edi, eax
sub eax, dword [ebp - 0x34]
mov ebx, edx
push 0
mov ecx, ebx
sbb ecx, dword [ebp - 0x30]
push 0x15180
push ecx
push eax
call fcn.004b4320
sub edi, dword [ebp - 0x2c]
push 0
sbb ebx, dword [ebp - 0x28]
push 0x15180
push ebx
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.004b4320
xor ebx, ebx
cmp edx, ebx
jl 0x42f359
jg 0x42f34d
cmp eax, ebx
jb 0x42f359
cmp dword [ebp - 0x30], ebx
jg 0x42f387
jl 0x42f359
cmp dword [ebp - 0x34], ebx
jae 0x42f387
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push str._NeedToAuthenticate:_detected_inconsistency_1__applying_penalty
push eax
call fcn.00464a80
pop ecx
pop ecx
call fcn.0042ef08
cmp dword [ebp - 0x30], ebx
pop ecx
jg 0x42f384
jl 0x42f37e
cmp dword [ebp - 0x34], ebx
jae 0x42f384
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
inc dword [esi + 0x38]
mov eax, dword [esi + 0x38]
add dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x10]
mov eax, ecx
adc dword [ebp - 0x30], ebx
cdq
cmp dword [ebp - 0x30], edx
jl 0x42f462
jg 0x42f3aa
cmp dword [ebp - 0x34], eax
jb 0x42f462
cmp dword [esi + 0x2c], ebx
jne 0x42f3c9
cmp dword [esi + 0x28], ebx
jne 0x42f3c9
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push str._NeedToAuthenticate:_never_authenticated_so_far
push eax
call fcn.00464a80
pop ecx
pop ecx
jmp 0x42f3e1
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push ecx
push dword [ebp - 0x34]
push str._NeedToAuthenticate:__d_days_since_last_authentication._Thats_more_than_the_authorized__d_limit
push eax
call fcn.00464a80
add esp, 0x10
call fcn.0042ef08
mov eax, dword [ebp - 0x24]
pop ecx
push dword [eax]
lea eax, [ebp + 8]
push str.Cameyo.AuthToken.AppId._s
push eax
call fcn.00464a80
add esp, 0xc
push dword [eax]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov edi, eax
call fcn.0042101a
cmp edi, ebx
je 0x42f421
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call fcn.004235f2
call fcn.00467aa0
pop ecx
cmp edi, ebx
je 0x42f445
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, ebx
jmp 0x42f4a6
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push str.NeedToAuthenticate:__d_days_since_last_authentication._No_need_to_re_authenticate.
push eax
call fcn.00464a80
add esp, 0x10
call fcn.0042ef08
pop ecx
jmp 0x42f448
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x30], esp
push dword [ecx]
push str._NeedToAuthenticate:_could_not_load_file:__s
push eax
call fcn.00464a80
add esp, 0xc
call fcn.0042ef08
pop ecx
xor eax, eax
inc eax
call fcn.004b3c48
ret 4