Function at 0x46a880
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51763f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp byte [0x15797de], 0
jne 0x46aa83
mov dword [ebp - 4], 0
mov byte [0x56f66f], 0
cmp dword [0x15797f8], 0
jne 0x46a8f6
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46a8e6
mov dword [eax], vtable.CriticalSection.0
jmp 0x46a8e8
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x15797f8], eax
call fcn.0041a530
mov eax, dword [0x15797f8]
call fcn.0041a540
lea eax, [ebp - 0x2c]
push eax
call fcn.0046a730
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46a91c
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x15797fc], eax
mov eax, dword [0x15797f8]
call fcn.0041a550
cmp dword [0x15797fc], 0
jne 0x46aa96
cmp byte [0x56e31b], 0
je 0x46aa70
mov byte [0x56e31b], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x46a9c3
lea ecx, [ebp - 0x2c]
push ecx
push str.Loqed_Service_is_not_active__
lea edx, [ebp - 0x48]
push edx
call fcn.00414000
add esp, 0xc
mov bl, 3
mov byte [ebp - 4], bl
push 0x52f2b8
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 4
push 0
push 1
push eax
push 0x135
push str.ShuttingDown::ProcIsStarting
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x64]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x48]
jmp 0x46aa6b
lea ecx, [ebp - 0xc0]
push ecx
xor ecx, ecx
call fcn.004f0ed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2c]
push edx
push str.OpenMutex___failed_for
lea eax, [ebp - 0xa4]
push eax
call fcn.00414000
add esp, 0xc
mov byte [ebp - 4], 6
push str.__Err
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004139a0
add esp, 0xc
mov bl, 7
mov byte [ebp - 4], bl
lea edx, [ebp - 0x64]
push edx
mov edx, esi
mov ecx, eax
call fcn.00413a30
add esp, 4
mov byte [ebp - 4], 8
push 0
push 0x10000000
push eax
push 0x138
push str.ShuttingDown::ProcIsStarting
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x64]
call fcn.004150b0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x48]
call fcn.004150b0
mov byte [ebp - 4], 5
lea esi, [ebp - 0xa4]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xc0]
call fcn.004150b0
mov byte [0x15797de], 1
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.004150b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x56e31b], 0
je 0x46aae6
mov byte [0x56e31b], 0
mov eax, str.Ready
lea ecx, [ebp - 0x88]
call fcn.0040fae0
mov byte [ebp - 4], 9
push 0
push 1
lea eax, [ebp - 0x88]
push eax
push 0x164
push str.ShuttingDown::ProcIsStarting
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], 2
lea esi, [ebp - 0x88]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret