Function at 0x402140
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e52c0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x218
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4021ce
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021b2
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x84]
call fcn.00403270
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x84]
cmp ecx, 8
jb 0x4021ea
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x4027a8
push str.desk_id
push eax
call fcn.004c11c1
add esp, 8
test eax, eax
je 0x40279f
lea edx, [eax + 0x10]
mov dword [ebp - 0xa8], 0
mov ecx, edx
mov dword [ebp - 0xa4], 7
xor eax, eax
mov word [ebp - 0xb8], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402225
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00403270
cmp dword [ebp - 0xa8], 0
je 0x40277f
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
call fcn.00478590
push 8
xor eax, eax
mov dword [ebp - 0x214], 0
push str.Hotspots
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.00403270
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0xd0]
call fcn.0046abc0
lea ecx, [ebp - 0x224]
call fcn.00403200
push 1
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00478d50
push 0
push 0x50c6f4
test al, al
jne 0x4022f1
xor eax, eax
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00403270
jmp 0x4023a9
xor eax, eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.00403270
push 0xc
xor eax, eax
mov dword [ebp - 0x214], 0
push str.DeskIconInfo
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.00403270
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.004789d0
lea ecx, [ebp - 0x224]
call fcn.00403200
lea ecx, [ebp - 0x60]
call fcn.00403200
lea ecx, [ebp - 0x40]
call fcn.00479350
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x90], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
call fcn.00403200
lea ecx, [ebp - 0xd0]
call fcn.00403200
lea ecx, [ebp - 0x40]
call fcn.004786d0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
mov edx, 0x7c
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x64], 0
call fcn.00475760
mov ecx, dword [ebp - 0x68]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x6c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x40275e
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403080
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1f
jle 0x402748
lea ecx, [ebp - 0x60]
call fcn.0046a830
push 0xa0
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
lea ecx, [ebp - 0x170]
call fcn.0046ac70
lea ecx, [ebp - 0x208]
call fcn.004020b0
lea ecx, [ebp - 0xd0]
call fcn.0046b5d0
lea ecx, [ebp - 0x1d8]
cmp ecx, eax
je 0x4024a0
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x402491
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1d8]
call fcn.00403270
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 1
call fcn.00403200
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b630
lea ecx, [ebp - 0x1c0]
cmp ecx, eax
je 0x4024e7
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4024d8
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00403270
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 5
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x208]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.00403270
push 0xc
push str.hsdi_dj_stat
lea ecx, [ebp - 0x1f0]
call fcn.00403270
cmp dword [ebp - 0x1f4], 8
lea eax, [ebp - 0x208]
push dword [ebp - 0x1f8]
cmovae eax, dword [ebp - 0x208]
lea ecx, [ebp - 0x168]
push eax
mov word [ebp - 0x180], 0
call fcn.00403270
cmp dword [ebp - 0x1dc], 8
lea eax, [ebp - 0x1f0]
push dword [ebp - 0x1e0]
cmovae eax, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x150]
push eax
call fcn.00403270
cmp dword [ebp - 0x1c4], 8
lea eax, [ebp - 0x1d8]
push dword [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x138]
push eax
call fcn.00403270
cmp dword [ebp - 0x1ac], 8
lea eax, [ebp - 0x1c0]
push dword [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x120]
push eax
call fcn.00403270
cmp dword [ebp - 0x194], 8
lea eax, [ebp - 0x1a8]
push dword [ebp - 0x198]
cmovae eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x108]
push eax
call fcn.00403270
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x170]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0xe4], eax
mov al, byte [ebp - 0x180]
mov byte [ebp - 0xe0], al
mov al, byte [ebp - 0x17f]
mov byte [ebp - 0xdf], al
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x174]
push 1
mov dword [ebp - 0xd4], eax
call fcn.0046ada0
push str.LNK03
lea ecx, [ebp - 0x224]
call fcn.00403010
cmp dword [ebp - 0x170], 0
je 0x4026d6
lea eax, [ebp - 0x224]
push eax
push ecx
call fcn.0046efb0
add esp, 4
mov ecx, eax
call fcn.0046fdd0
test al, al
je 0x4026d6
mov esi, dword [ebp - 0x170]
cmp byte [esi + 4], 0
je 0x4026d6
lea ecx, [ebp - 0x224]
call fcn.00402f40
test al, al
jne 0x4026d6
mov ecx, dword [esi]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00413dc0
push dword [esi]
push ecx
call fcn.0041a1a0
add esp, 4
mov ecx, eax
call fcn.0041ad80
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 9
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x402711
cmp byte [eax + 4], 0
je 0x402711
push dword [eax]
push ecx
call fcn.0041a1a0
add esp, 4
mov ecx, eax
call fcn.0041b0a0
lea ecx, [ebp - 0x170]
call fcn.0046b390
lea ecx, [ebp - 0x208]
call fcn.00402ea0
lea ecx, [ebp - 0x170]
call fcn.0046acc0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xd
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x11
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00403180
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0x15
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0x19
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
xor esi, esi
jmp 0x402e19
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x84]
cmp ecx, 8
jb 0x4027bd
mov edx, eax
test edx, edx
je 0x402984
push str.__typepatch_repair
push edx
call fcn.004c11c1
add esp, 8
test eax, eax
je 0x40297b
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 0x4028a8
cmp dword [0x5389fc], 0
je 0x402969
push ecx
mov ecx, 0x5389f8
call fcn.00404d60
mov eax, dword [0x5389fc]
cmp byte [eax + 0x54], 0
je 0x402969
cmp dword [eax + 0x58], 2
jb 0x402969
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x15], al
mov dword [ebp - 4], 0x21
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x20], 0
push 0x10
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push str.win7
mov dword [ebp - 4], 0xffffffff
call fcn.00403270
push 0x7d
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
push 2
call fcn.00405960
cmp byte [ebp - 0x15], 0
je 0x40288d
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
call fcn.00405cb0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x22
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
jmp 0x402969
cmp dword [0x5389fc], 0
je 0x402959
push ecx
mov ecx, 0x5389f8
call fcn.00404d60
mov eax, dword [0x5389fc]
cmp byte [eax + 0x54], 0
je 0x402959
cmp dword [eax + 0x58], 2
jb 0x402959
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x15], al
mov dword [ebp - 4], 0x2a
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x20], 0
push 0xe
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0x50c8d4
mov dword [ebp - 4], 0xffffffff
call fcn.00403270
push 0x86
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
push 2
call fcn.00405960
cmp byte [ebp - 0x15], 0
je 0x402943
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
call fcn.00405cb0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x2b
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.004035c0
test esi, esi
je 0x402974
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x402e19
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x84]
cmp ecx, 8
jb 0x402995
mov edx, eax
test edx, edx
je 0x402a08
push str.__typesoftmgr_shell_update
push edx
call fcn.004c11c1
add esp, 8
test eax, eax
je 0x402a08
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x15]
call fcn.00408750
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0x33
push eax
call fcn.00409690
lea eax, [ebp - 0x60]
push eax
call fcn.0047bdc0
add esp, 4
test al, al
je 0x4029ee
lea eax, [ebp - 0x60]
push eax
call fcn.0047bf40
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.0047bbb0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x34
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
xor esi, esi
jmp 0x402e19
push str.54CC4FBB_0C50_41DA_927A_06A6866BC63A
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x402abe
push 2
mov ecx, 0x5389f8
call fcn.00405920
mov edi, eax
test edi, edi
je 0x402e08
mov dword [ebp - 4], 0x3c
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x20], 0
push 0xb
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0x50c97c
mov dword [ebp - 4], 0xffffffff
call fcn.00403270
push 0xa5
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
push 2
call fcn.00405960
cmp edi, 1
jbe 0x402aaa
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
call fcn.00405cb0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x3d
call fcn.00403200
jmp 0x402e01
mov ecx, edi
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ad7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.00403270
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x88], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402b89
lea eax, [ebp - 0x88]
push eax
push 4
lea eax, [ebp - 0x20c]
push eax
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x402b89
mov eax, dword [ebp - 0x20c]
and eax, 0xfffff000
push 0x400
push eax
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x402b89
mov edx, dword [ebp - 0x20c]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00403270
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x58
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004c0fa0
add esp, 0xc
mov dword [ebp - 0x110], 7
xor eax, eax
lea ecx, [ebp - 0x124]
mov word [ebp - 0x124], ax
push eax
push 0x50c6f4
call fcn.00403270
xor eax, eax
mov dword [ebp - 0xfc], 0
push eax
push 0x50c6f4
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
call fcn.00403270
xor eax, eax
mov dword [ebp - 0xe4], 0
push eax
push 0x50c6f4
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
call fcn.00403270
lea ecx, [ebp - 0xd8]
call fcn.0040a990
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0xdc], vtable.RC::RCInstDllStat.0
cmovae eax, dword [ebp - 0x48]
push eax
mov byte [ebp - 0xd4], 0
call fcn.00406d70
mov esi, eax
test esi, esi
je 0x402d50
push 2
mov ecx, 0x5389f8
call fcn.00405920
mov edi, eax
test edi, edi
je 0x402cf3
mov dword [ebp - 4], 0x41
lea ecx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x20], 0
push 0xb
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push 0x50c9c4
mov dword [ebp - 4], 0xffffffff
call fcn.00403270
push 0xc4
push str.wWinMain
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll2345instdll.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
push 2
call fcn.00405960
cmp edi, 1
jbe 0x402cdd
lea eax, [ebp - 0x30]
mov ecx, 0x5389f8
push eax
call fcn.00405cb0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0x42
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0x47
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xdc], vtable.RC::RCInstDllStat.0
call fcn.0040aab0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x48
call fcn.00403200
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x4c
call fcn.00403200
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0x50
call fcn.00403200
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x54
call fcn.00403200
jmp 0x402e01
lea ecx, [ebp - 0xf4]
call fcn.00402f50
mov edx, str.2345PCSafe
mov ecx, eax
call fcn.00474bc0
test al, al
je 0x402d7a
lea ecx, [ebp - 0x128]
call fcn.00407300
mov esi, eax
jmp 0x402da9
lea ecx, [ebp - 0xf4]
call fcn.00402f50
mov edx, str.2345Explorer
mov ecx, eax
call fcn.00474bc0
test al, al
je 0x402da4
lea ecx, [ebp - 0x128]
call fcn.00407bb0
mov esi, eax
jmp 0x402da9
mov esi, 0x57
mov dword [ebp - 4], 0x59
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xdc], vtable.RC::RCInstDllStat.0
call fcn.0040aab0
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x5a
call fcn.00403200
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x5e
call fcn.00403200
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0x62
call fcn.00403200
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0x66
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x402e19
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0x6a
call fcn.00403200
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10