Function at 0x4020e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e36f0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x533068]
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 edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x402159
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402140
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x60]
call fcn.004028e0
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
cmp ecx, 8
jb 0x40216f
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x40231e
push str.__typepatch_repair
push eax
call fcn.004bf5e1
add esp, 8
test eax, eax
je 0x402318
push str.54CC4FBB_0C50_41DA_927A_706174636820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402255
cmp dword [0x5339fc], 0
je 0x402306
push ecx
mov ecx, 0x5339f8
call fcn.004043d0
mov eax, dword [0x5339fc]
cmp byte [eax + 0x54], 0
je 0x402306
cmp dword [eax + 0x58], 2
jb 0x402306
mov bl, byte [eax + 0x5c]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x10
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push str.win7
mov dword [ebp - 4], 0xffffffff
call fcn.004028e0
push 0x2e
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x2c]
mov ecx, 0x5339f8
push eax
push 2
call fcn.00404fd0
test bl, bl
je 0x40223a
lea eax, [ebp - 0x2c]
mov ecx, 0x5339f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
jmp 0x402306
cmp dword [0x5339fc], 0
je 0x4022f6
push ecx
mov ecx, 0x5339f8
call fcn.004043d0
mov eax, dword [0x5339fc]
cmp byte [eax + 0x54], 0
je 0x4022f6
cmp dword [eax + 0x58], 2
jb 0x4022f6
mov bl, byte [eax + 0x5c]
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0xe
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x509c84
mov dword [ebp - 4], 0xffffffff
call fcn.004028e0
push 0x37
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x2c]
mov ecx, 0x5339f8
push eax
push 2
call fcn.00404fd0
test bl, bl
je 0x4022e0
lea eax, [ebp - 0x2c]
mov ecx, 0x5339f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xb
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00402b70
test esi, esi
je 0x402311
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x402777
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x60]
cmp ecx, 8
jb 0x40232c
mov edx, eax
test edx, edx
je 0x40239f
push str.__typesoftmgr_shell_update
push edx
call fcn.004bf5e1
add esp, 8
test eax, eax
je 0x40239f
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x11]
call fcn.00408170
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0x13
push eax
call fcn.004090b0
lea eax, [ebp - 0x44]
push eax
call fcn.0046fb80
add esp, 4
test al, al
je 0x402385
lea eax, [ebp - 0x44]
push eax
call fcn.0046fd00
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.0046f970
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
xor esi, esi
jmp 0x402777
push str.54CC4FBB_0C50_41DA_927A_06A6866BC63A
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x40244e
push 2
mov ecx, 0x5339f8
call fcn.00404f90
mov edi, eax
test edi, edi
je 0x40276c
mov dword [ebp - 4], 0x1c
lea ecx, [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x34], 0
push 0xb
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push 0x509d2c
mov dword [ebp - 4], 0xffffffff
call fcn.004028e0
push 0x56
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x44]
mov ecx, 0x5339f8
push eax
push 2
call fcn.00404fd0
cmp edi, 1
jbe 0x40243a
lea eax, [ebp - 0x44]
mov ecx, 0x5339f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x1d
call fcn.00402880
jmp 0x402765
mov ecx, edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402467
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004028e0
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40250f
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0xbc]
push eax
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x40250f
mov eax, dword [ebp - 0xbc]
and eax, 0xfffff000
push 0x400
push eax
mov dword [ebp - 0xbc], eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x40250f
mov edx, dword [ebp - 0xbc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004028e0
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x58
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.004bf3c0
add esp, 0xc
mov dword [ebp - 0xa0], 7
xor eax, eax
lea ecx, [ebp - 0xb4]
mov word [ebp - 0xb4], ax
push eax
push 0x509d8c
call fcn.004028e0
xor eax, eax
mov dword [ebp - 0x8c], 0
push eax
push 0x509d8c
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
call fcn.004028e0
xor eax, eax
mov dword [ebp - 0x74], 0
push eax
push 0x509d8c
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
call fcn.004028e0
lea ecx, [ebp - 0x68]
call fcn.0040a3c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x6c], vtable.RC::RCInstDllStat.0
cmovae eax, dword [ebp - 0x2c]
push eax
mov byte [ebp - 0x64], 0
call fcn.00406770
mov esi, eax
test esi, esi
je 0x4026ba
push 2
mov ecx, 0x5339f8
call fcn.00404f90
mov edi, eax
test edi, edi
je 0x402663
mov dword [ebp - 4], 0x21
lea ecx, [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x34], 0
push 0xb
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
push 0x509d74
mov dword [ebp - 4], 0xffffffff
call fcn.004028e0
push 0x75
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x44]
mov ecx, 0x5339f8
push eax
push 2
call fcn.00404fd0
cmp edi, 1
jbe 0x40264d
lea eax, [ebp - 0x44]
mov ecx, 0x5339f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0x22
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x27
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], vtable.RC::RCInstDllStat.0
call fcn.0040a4e0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x28
call fcn.00402880
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x2c
call fcn.00402880
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x30
call fcn.00402880
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x34
call fcn.00402880
jmp 0x402765
lea ecx, [ebp - 0x84]
call fcn.004027b0
mov edx, str.2345PCSafe
mov ecx, eax
call fcn.0046df90
test al, al
je 0x4026e4
lea ecx, [ebp - 0xb8]
call fcn.00406d20
mov esi, eax
jmp 0x402713
lea ecx, [ebp - 0x84]
call fcn.004027b0
mov edx, str.2345Explorer
mov ecx, eax
call fcn.0046df90
test al, al
je 0x40270e
lea ecx, [ebp - 0xb8]
call fcn.004075d0
mov esi, eax
jmp 0x402713
mov esi, 0x57
mov dword [ebp - 4], 0x39
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x6c], vtable.RC::RCInstDllStat.0
call fcn.0040a4e0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x3a
call fcn.00402880
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x3e
call fcn.00402880
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x42
call fcn.00402880
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x46
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x402777
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0x4a
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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.004bc909
mov esp, ebp
pop ebp
ret 0x10