Function at 0x40e420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f606
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x58a710]
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, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
call fcn.0040cb30
mov dword [ebp - 4], 0
call fcn.0040eae0
push str.hr_sysdiag_gui
push 0
push 0
mov dword [edi + 0x3dc], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x3d4], eax
test eax, eax
je 0x40e4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e52e
push dword [edi + 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x3dc]
mov dword [edi + 0x3d4], 0
call fcn.0040eb60
add esp, 4
mov ebx, 0x80004005
lea ecx, [ebp - 0xd0]
call fcn.00411590
push dword [ebp - 0xd0]
call fcn.0051939b
add esp, 4
lea ecx, [ebp - 0xd8]
call fcn.00411590
push dword [ebp - 0xd8]
call fcn.0051939b
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.00411590
push dword [ebp - 0xe0]
call fcn.0051939b
add esp, 4
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.005193a0
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call fcn.0040e340
mov ebx, eax
test ebx, ebx
js 0x40e4c3
mov eax, dword [edi + 0x3d8]
lea esi, [edi + 0x3d8]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x40e56e
push 0x200
mov ecx, esi
call fcn.004053d0
push 0x200
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi]
test eax, eax
jne 0x40e587
xor ecx, ecx
jmp 0x40e59d
push dword [eax - 8]
push eax
call fcn.0052644e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40e77f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40e77f
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
push 0x5c
mov byte [ecx + eax], 0
push dword [esi]
call fcn.005268cd
add esp, 8
test eax, eax
je 0x40e5cf
sub eax, dword [esi]
test eax, eax
jle 0x40e5cf
push eax
mov ecx, esi
call fcn.00410800
call fcn.00404730
mov ecx, eax
test ecx, ecx
jne 0x40e5e4
push 0x80004005
call fcn.004049a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc8], eax
push dword [esi]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 1
push str._sqqwry.dat
push eax
call fcn.00404f50
mov esi, dword [ebp - 0xc8]
add esp, 0xc
test esi, esi
je 0x40e627
push 0x54a874
push esi
call fcn.00526b42
add esp, 8
mov dword [edi + 0x50], eax
call sub.uactmon.dll_Ordinal_1
test eax, eax
js 0x40e642
call sub.usysdiag.dll_vif_get
push 0
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
jns 0x40e67a
cmp eax, 0xffffffee
jne 0x40e667
push 0x10
push 0x86cc
push 0x8739
push 0
call fcn.004102a0
add esp, 0x10
mov ebx, 0x80004005
jmp 0x40e75a
push eax
call fcn.0040e040
add esp, 4
mov ebx, 0x80004005
jmp 0x40e75a
mov ecx, edi
call fcn.0040e000
call sub.usysdiag.dll_vif_assist_get
lea ecx, [ebp - 0xc4]
push ecx
mov eax, dword [eax + 4]
call eax
xor eax, eax
add esp, 4
cmp dword [ebp - 0x30], eax
sete al
cmp dword [ebp - 0xc4], 6
mov dword [edi + 0x4c], eax
jb 0x40e6e6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ChangeWindowMessageFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x593eac], eax
test eax, eax
je 0x40e6e6
push 1
push 0x4a
call eax
push 1
push 0x233
call dword [0x593eac]
push 1
push 0x49
call dword [0x593eac]
lea ecx, [edi + 0xc0]
call fcn.004451b0
mov ebx, eax
test ebx, ebx
js 0x40e75a
push str.hr_monitor
lea ecx, [edi + 0xc4]
call fcn.00454d50
test eax, eax
js 0x40e71b
push str.hr_monitor
lea ecx, [edi + 0xc4]
call fcn.00454e70
lea eax, [edi + 0xc0]
push eax
lea ecx, [edi + 0x5c]
call fcn.004c1200
mov ebx, eax
test ebx, ebx
js 0x40e75a
lea ecx, [edi + 0x2a0]
call fcn.004220c0
lea ecx, [edi + 0x2c4]
call fcn.004a3560
lea ecx, [edi + 0x3b4]
call fcn.00502c40
mov ecx, edi
call fcn.00410470
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e4c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40e4c3
push 0x80070057
call fcn.004049a0
int3