Function at 0x404620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee279
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x53e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1d8], 0
cmp dword [0x53e2d4], 0
je 0x404715
push 0
mov ecx, 0x53e2d0
call fcn.004413f0
mov eax, dword [0x53e2d4]
cmp byte [eax + 0x54], 0
je 0x404715
cmp dword [eax + 0x58], 4
jb 0x404715
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x11], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4046c1
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x2c]
push str.Start._CmdLine:__s
push eax
call fcn.004b03c0
add esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push 0xc1
push str.RC::RCMainApplication::StartSafeApp
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_shellprocexe_rcmainapplication.cpp
push eax
push 4
call fcn.00442590
cmp byte [ebp - 0x11], 0
je 0x404706
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
call fcn.00442940
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403780
lea ecx, [ebp - 0x1d4]
call fcn.0040e3a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1d4]
push esi
call fcn.0040e870
test al, al
je 0x404804
mov esi, dword [ebp - 0x1d4]
cmp esi, 2
je 0x40474f
cmp esi, 3
jne 0x4048c4
call fcn.00403e20
test al, al
jne 0x4048c4
cmp dword [0x53e2d4], 0
je 0x404804
push 0
mov ecx, 0x53e2d0
call fcn.004413f0
mov eax, dword [0x53e2d4]
cmp byte [eax + 0x54], 0
je 0x404804
cmp dword [eax + 0x58], 2
jb 0x404804
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x11], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push 0xc
push 0x50cd20
call fcn.004037f0
push 0xcd
push str.RC::RCMainApplication::StartSafeApp
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_shellprocexe_rcmainapplication.cpp
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
push 2
call fcn.00442590
cmp byte [ebp - 0x11], 0
je 0x4047f8
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
call fcn.00442940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
mov esi, 1
mov dword [ebp - 4], 0x24
lea ecx, [ebp - 0xd0]
call fcn.00403780
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0xe8]
call fcn.00403780
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x100]
call fcn.00403780
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x118]
call fcn.00403780
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x130]
call fcn.00403780
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x148]
call fcn.00403780
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x17c]
call fcn.00403780
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x194]
call fcn.00403780
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1b0]
call fcn.00403780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c8]
call fcn.00403780
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ec151
mov esp, ebp
pop ebp
ret 4
dec esi
cmp esi, 0xb
ja case.default.0x4048ce
jmp dword [esi*4 + 0x404f2c]
mov ecx, 1
xor eax, eax
cmp dword [ebp - 0x1d0], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1d4]
push ecx
push eax
call fcn.004054d0
xor esi, esi
jmp 0x404809
mov ecx, dword [ebp - 0x1cc]
xor eax, eax
cmp ecx, 1
jne 0x404915
mov eax, ecx
push eax
call fcn.00406fa0
xor esi, esi
jmp 0x404809
mov edx, 2
cmp ecx, edx
cmove eax, edx
push eax
call fcn.00406fa0
xor esi, esi
jmp 0x404809
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.004105f0
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.00410590
mov byte [ebp - 4], 4
push esi
push eax
call fcn.004080b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00403780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
xor esi, esi
jmp 0x404809
mov ecx, dword [ebp - 0xb4]
call fcn.00428550
xor esi, esi
jmp 0x404809
cmp dword [ebp - 0x1d0], 0
jne 0x40499c
push 1
call fcn.00409210
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.00410650
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c400
push esi
push dword [ebp - 0x157]
mov dword [ebp - 0x1d8], 1
push eax
push dword [ebp - 0x1d0]
call fcn.004098f0
mov eax, 1
mov dword [ebp - 0x1d8], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00403780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
xor esi, esi
jmp 0x404809
push 0
call fcn.00409210
cmp dword [0x53e2d4], 0
je 0x404abf
push 0
mov ecx, 0x53e2d0
call fcn.004413f0
mov eax, dword [0x53e2d4]
cmp byte [eax + 0x54], 0
je 0x404abf
cmp dword [eax + 0x58], 4
jb 0x404abf
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x11], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
push 6
push str.Start.
call fcn.004037f0
push 0x46a
push str.RC::RCMainApplication::SendUninstallClickStatic
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_shellprocexe_rcmainapplication.cpp
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
push 4
call fcn.00442590
cmp byte [ebp - 0x11], 0
je 0x404ab3
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
call fcn.00442940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 2
call fcn.00443290
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.00403780
mov byte [ebp - 4], 1
xor esi, esi
jmp 0x404809
push str.2345SafeSvc
lea ecx, [ebp - 0x44]
call fcn.00403690
mov byte [ebp - 4], 0xc
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0042c050
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.00403780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00403780
push str.301DB991_8D1B_4431_BA55_CBECF478B330
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x404c51
push 4
mov ecx, 0x53e2d0
call fcn.00442520
mov edi, eax
test edi, edi
je 0x404c43
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
push 0x15
push 0x50cda4
call fcn.004037f0
push 0x134
push str.RC::RCMainApplication::StartSafeApp
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_srcproductexe_shellprocexe_rcmainapplication.cpp
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
push 4
call fcn.00442590
cmp edi, 1
jbe 0x404c37
lea eax, [ebp - 0x2c]
mov ecx, 0x53e2d0
push eax
call fcn.00442940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x404809
push str.AFB34B3F_C914_4093_9EEC_0532736A53AC
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404c43
push dword [ebp - 0x198]
call fcn.00425fc0
call fcn.00426230
lea ecx, [ebp - 0x11]
call fcn.004268b0
call fcn.00427b10
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x60]
movq qword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x60], xmm0
call fcn.0042e7f0
mov byte [ebp - 4], 0xf
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call fcn.0042e8c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.00403780
push 0x38
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.0042add0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xb0]
call fcn.0042af40
test al, al
je 0x404d94
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x404d2e
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 4], 0
je 0x404d4a
lea eax, [ebp - 0x94]
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0042b920
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x404d5d
mov ecx, dword [ecx]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x404d6b
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x24]
lea ecx, [ebp - 0xb0]
call fcn.0042b220
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x404d89
mov ecx, dword [ecx]
push 1
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [ebp - 0xb0]
call fcn.0042b150
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.0042ae80
lea ecx, [ebp - 0x60]
call fcn.0042e980
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040bdc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0042e850
xor esi, esi
jmp 0x404809
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.004105f0
mov esi, eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.00410590
mov byte [ebp - 4], 0x13
push esi
push eax
call fcn.004087b0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x44]
call fcn.00403780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00403780
xor esi, esi
jmp 0x404809
call fcn.004110c0
xor esi, esi
jmp 0x404809
push str.2345SafeSvc
lea ecx, [ebp - 0x44]
call fcn.00403690
mov byte [ebp - 4], 0x14
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0042c050
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
jmp 0x404f14
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c400
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1d8], 2
mov esi, eax
call fcn.00446510
mov byte [ebp - 4], 0x17
mov edx, eax
push esi
lea ecx, [ebp - 0x44]
call fcn.004b6a20
add esp, 4
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.00403780
mov esi, 2
mov dword [ebp - 0x1d8], esi
and esi, 0xfffffffd
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x5c]
call fcn.00403780
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040c400
push 0
or esi, 4
lea ecx, [ebp - 0x44]
push 1
mov edx, eax
mov dword [ebp - 0x1d8], esi
call fcn.004b75d0
add esp, 8
and esi, 0xfffffffb
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x5c]
call fcn.00403780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00403780
xor esi, esi
jmp 0x404809