Function at 0x405e20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d478d
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x534008]
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 esi, ecx
mov dword [ebp - 0x234], esi
cmp dword [0x534554], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x244], edi
je 0x405f00
push 0
mov ecx, 0x534550
call fcn.0040f360
mov eax, dword [0x534554]
cmp byte [eax + 0x54], 0
je 0x405f00
cmp dword [eax + 0x58], 4
jb 0x405f00
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
push edi
push 0x509948
push eax
call fcn.00473a70
add esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, 0x534550
push 0x56
push str.RC::RCMainApplication::Run
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safetray_safetryexe_rcmainapplication.cpp
push eax
push 4
call fcn.00410270
test bl, bl
je 0x405ef1
lea eax, [ebp - 0x50]
mov ecx, 0x534550
push eax
call fcn.00410610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0040a900
push str.A496FA08_DBB5_4914_A013_E3B8E2894EEE
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
jne 0x405fdf
lea ecx, [eax + 4]
call fcn.0040d1f0
cmp dword [0x534554], 0
je 0x405fd5
push 0
mov ecx, 0x534550
call fcn.0040f360
mov eax, dword [0x534554]
cmp byte [eax + 0x54], 0
je 0x405fd5
cmp dword [eax + 0x58], 2
jb 0x405fd5
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x68]
push str.CreateMutex_error.___d_
push eax
call fcn.00473a70
add esp, 0xc
lea eax, [ebp - 0x68]
mov ecx, 0x534550
push 0x5d
push str.RC::RCMainApplication::Run
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safetray_safetryexe_rcmainapplication.cpp
push eax
push 2
call fcn.00410270
test bl, bl
je 0x405fc6
lea eax, [ebp - 0x68]
mov ecx, 0x534550
push eax
call fcn.00410610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040a900
mov eax, 1
jmp 0x4069ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40600d
mov ecx, 5
call fcn.0040d1f0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor eax, eax
jmp 0x4069ea
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor edi, edi
mov dword [ebp - 0x23c], edi
xor ebx, ebx
mov dword [ebp - 0x238], edi
call fcn.00406f10
test al, al
jne 0x406051
mov edi, 1
mov dword [ebp - 0x23c], edi
mov ebx, edi
mov dword [ebp - 0x238], edi
call fcn.004070b0
test al, al
jne 0x40606d
mov edi, ebx
or edi, 2
mov dword [ebp - 0x23c], edi
mov ebx, edi
mov dword [ebp - 0x238], edi
call fcn.004072d0
test al, al
jne 0x406087
mov edi, ebx
or edi, 4
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x160]
call fcn.00476470
mov byte [ebp - 4], 4
xor eax, eax
push 0x10
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 0
push str.2345ShellPro.exe
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.0040a960
mov byte [ebp - 4], 5
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x160]
lea ecx, [ebp - 0x118]
call fcn.00475f10
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x260]
call fcn.0040a900
lea ecx, [ebp - 0x118]
call fcn.00474060
test al, al
je 0x406183
push 0xd
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x278]
push str.__typerepair
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.0040a960
mov byte [ebp - 4], 8
sub esp, 8
lea edx, [ebp - 0x278]
lea ecx, [ebp - 0x118]
call fcn.00476710
add esp, 8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x278]
call fcn.0040a900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x118]
call fcn.0040a900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x160]
call fcn.0040a900
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
mov byte [ebp - 4], 9
mov ebx, dword [ebp - 0x244]
test ebx, ebx
je 0x406201
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061e5
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xb0]
call fcn.0040a960
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 0xa
mov byte [ebp - 0xcc], 1
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0041d200
test al, al
jne 0x406280
lea ecx, [ebp - 0xb0]
call fcn.0040d290
mov ecx, 1
call fcn.0040d1f0
mov ebx, 1
jmp 0x40699f
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x38]
lea ecx, [eax + 0x1a]
call fcn.004760f0
test al, al
je 0x40630c
push str.2345PCSafeConfig
lea ecx, [ebp - 0x2e0]
call fcn.0040a040
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x2e0]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x328]
call fcn.00475f10
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x38]
push eax
call fcn.00409fd0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x328]
call fcn.0040a900
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2e0]
call fcn.0040a900
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x22c], 1
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x230], eax
mov eax, dword [0x539998]
test eax, eax
jne 0x406361
mov ecx, dword [0x5399a0]
mov edx, dword [ecx]
test edx, edx
je 0x406350
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x5399a0]
mov eax, dword [0x539998]
mov ebx, dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x406363
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x406363
mov ebx, dword [eax]
mov ecx, ebx
call fcn.0049d6b0
mov eax, dword [0x539998]
test eax, eax
jne 0x4063a4
mov ecx, dword [0x5399a0]
mov edx, dword [ecx]
test edx, edx
je 0x406393
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x5399a0]
mov eax, dword [0x539998]
mov ebx, dword [eax]
mov eax, dword [ecx]
test eax, eax
je 0x4063a6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4063a6
mov ebx, dword [eax]
mov ecx, ebx
call fcn.0049d4b0
mov ecx, eax
call fcn.0049ccb0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2c8]
push eax
call dword [sym.imp.BasicBusinessConfigCenter.dll_public:_static_class_RC::DM::RCBasicBusinessConfigCenterDMgr____cdecl_RC::DM::RCBasicBusinessConfigCenterDMgr::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.BasicBusinessConfigCenter.dll_public:_class_RC::DM::RCReturnValue___thiscall_RC::DM::RCBasicBusinessConfigCenterDMgr::Start_struct_RC::DM::RCConfigCenterSetting_const__]
call dword [sym.imp.BasicSQLite.dll_public:_static_void___cdecl_RC::RCSQLiteUpdateDMgr::Start_void_]
mov eax, dword [ebp - 0xe8]
cmp eax, 1
jne 0x4063e8
call fcn.0040d440
jmp 0x4063f6
cmp eax, 2
je 0x4063f6
cmp eax, 4
jne 0x406500
push 0xc8
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.004205a0
mov byte [ebp - 4], 0x11
push ecx
lea ecx, [ebp - 0x228]
call fcn.00420900
test al, al
je 0x4064f1
test byte [ebp - 0x220], 8
je 0x4064f1
cmp byte [ebp - 0x1b8], 0
jne 0x4064f1
mov ecx, 2
call fcn.0040d1f0
push 4
mov ecx, 0x534550
call fcn.00410230
mov edi, eax
test edi, edi
je 0x4064d8
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x80]
push 0x35
push str.Start_2345SafeTray.exe_abort__setting_is_not_autorun.
call fcn.0040a960
push 0xb1
push str.RC::RCMainApplication::Run
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safetray_safetryexe_rcmainapplication.cpp
lea eax, [ebp - 0x80]
mov ecx, 0x534550
push eax
push 4
call fcn.00410270
cmp edi, 1
jbe 0x4064cc
lea eax, [ebp - 0x80]
mov ecx, 0x534550
push eax
call fcn.00410610
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x80]
call fcn.0040a900
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x228]
call fcn.004207d0
mov ebx, 1
jmp 0x406993
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x228]
call fcn.004207d0
push str.2345SafeCenterInstaller.exe
lea ecx, [ebp - 0x2f8]
call fcn.0040a040
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2f8]
call fcn.00474be0
mov bl, al
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f8]
call fcn.0040a900
test bl, bl
jne 0x406629
push 0x11
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x290]
push str.2345RTProtect.exe
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
call fcn.0040a960
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x130]
call fcn.0040e8d0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x290]
call fcn.0040a900
lea ecx, [ebp - 0x130]
call fcn.00474060
test al, al
je 0x40661a
xor eax, eax
mov dword [ebp - 0x298], 0
push eax
mov dword [ebp - 0x294], 0
lea ecx, [ebp - 0x2a8]
push 0x50988c
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
call fcn.0040a960
mov byte [ebp - 4], 0x19
sub esp, 8
lea edx, [ebp - 0x2a8]
lea ecx, [ebp - 0x130]
call fcn.00476710
add esp, 8
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2a8]
call fcn.0040a900
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x130]
call fcn.0040a900
push 1
call fcn.00408530
lea ecx, [ebp - 0x100]
call fcn.00476470
mov byte [ebp - 4], 0x1a
mov edx, 0x50a4ec
lea ecx, [ebp - 0x100]
call fcn.00473510
mov edx, 0x50a4ec
lea ecx, [ebp - 0x100]
call fcn.004735a0
push 0x12
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
lea ecx, [ebp - 0x2c0]
push 0x50a4f0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
call fcn.0040a960
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x2c0]
push eax
lea edx, [ebp - 0x100]
lea ecx, [ebp - 0x148]
call fcn.00475f10
add esp, 4
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2c0]
call fcn.0040a900
lea ecx, [ebp - 0x148]
call fcn.00474060
test al, al
je 0x40674c
push 0x15
xor eax, eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
lea ecx, [ebp - 0xc8]
push str.__typemanusaferepair
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
call fcn.0040a960
mov byte [ebp - 4], 0x1e
sub esp, 8
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x148]
call fcn.00476710
add esp, 8
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0xc8]
call fcn.0040a900
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x148]
call fcn.0040a900
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x100]
call fcn.0040a900
test edi, edi
je 0x406917
push 4
mov ecx, 0x534550
call fcn.00410230
mov esi, eax
test esi, esi
je 0x406816
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x98]
push 0x35
push str.Start_2345SafeTray.exe_abort__setting_is_not_autorun.
call fcn.0040a960
push 0xc9
push str.RC::RCMainApplication::Run
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safetray_safetryexe_rcmainapplication.cpp
lea eax, [ebp - 0x98]
mov ecx, 0x534550
push eax
push 4
call fcn.00410270
cmp esi, 1
jbe 0x406807
lea eax, [ebp - 0x98]
mov ecx, 0x534550
push eax
call fcn.00410610
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x98]
call fcn.0040a900
mov esi, dword [ebp - 0x234]
mov al, 1
lea ecx, [esi + 0x10]
xchg byte [ecx], al
add esi, 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
push esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], 0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
mov ebx, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
test eax, eax
je 0x40684f
push eax
call ebx
add esp, 4
mov byte [ebp - 0x1c], 1
mov byte [ebp - 4], 0x20
cmp dword [esi + 0x58], 0
je 0x406881
lea edi, [esi + 0x30]
push esi
push edi
call dword [sym.imp.MSVCP140.dll__Cnd_wait]
add esp, 8
test eax, eax
je 0x406875
push eax
call ebx
add esp, 4
cmp dword [esi + 0x58], 0
jne 0x406860
mov edi, dword [ebp - 0x23c]
mov dword [esi + 0x58], 0xffffffff
mov byte [ebp - 4], 0xe
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x4068a0
push eax
call ebx
add esp, 4
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], esi
push eax
push ecx
lea ecx, [ebp - 0x240]
call fcn.0040af30
add esp, 0xc
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x18]
cmp ecx, eax
je 0x4068e5
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov dword [eax], 0
mov al, byte [eax + 4]
mov byte [ebp - 0x14], al
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x40691d
mov eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40691d
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x40690f
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
jmp 0x40691d
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x40691d
mov esi, dword [ebp - 0x234]
push dword [ebp - 0x244]
lea ecx, [ebp - 0x310]
call fcn.0040a040
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x310]
push eax
mov ecx, esi
call fcn.00407c80
mov ebx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x310]
call fcn.0040a900
test edi, edi
je 0x406990
lea ecx, [esi + 0x14]
call fcn.00403630
mov al, byte [esi + 0x10]
test al, al
je 0x406990
lea ecx, [ebp - 0x18]
call fcn.004091d0
test al, al
je 0x406990
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x1388
push eax
mov dword [ebp - 0x244], 0
call fcn.0040b0e0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.0040a900
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe4]
call fcn.0040a900
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.0040a900
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4069e8
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4069e8
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4069e0
mov eax, dword [ecx]
push esi
call dword [eax]
jmp 0x4069e8
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, ebx
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.004b5f0c
mov esp, ebp
pop ebp
ret 4