Function at 0x40f450
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539596
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x583384]
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.0040db70
mov dword [ebp - 4], 0
call fcn.0040fb10
push str.hr_sysdiag_gui
push 0
push 0
mov dword [edi + 0x3b0], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x3a8], eax
test eax, eax
je 0x40f4ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f55e
push dword [edi + 0x3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x3b0]
mov dword [edi + 0x3a8], 0
call fcn.0040fb90
add esp, 4
mov ebx, 0x80004005
lea ecx, [ebp - 0xd0]
call fcn.004121e0
push dword [ebp - 0xd0]
call fcn.0051350d
add esp, 4
lea ecx, [ebp - 0xd8]
call fcn.004121e0
push dword [ebp - 0xd8]
call fcn.0051350d
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.004121e0
push dword [ebp - 0xe0]
call fcn.0051350d
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.00513512
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call fcn.0040f370
mov ebx, eax
test ebx, ebx
js 0x40f4f3
mov eax, dword [edi + 0x3ac]
lea esi, [edi + 0x3ac]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x40f59e
push 0x200
mov ecx, esi
call fcn.00406dd0
push 0x200
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi]
test eax, eax
jne 0x40f5b7
xor ecx, ecx
jmp 0x40f5cd
push dword [eax - 8]
push eax
call fcn.00526cb2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f7af
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40f7af
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
push 0x5c
mov byte [ecx + eax], 0
push dword [esi]
call fcn.00527131
add esp, 8
test eax, eax
je 0x40f5ff
sub eax, dword [esi]
test eax, eax
jle 0x40f5ff
push eax
mov ecx, esi
call fcn.00411820
call fcn.00406110
mov ecx, eax
test ecx, ecx
jne 0x40f614
push 0x80004005
call fcn.004063a0
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.00406950
mov esi, dword [ebp - 0xc8]
add esp, 0xc
test esi, esi
je 0x40f657
push 0x543854
push esi
call fcn.0052471f
add esp, 8
mov dword [edi + 0x50], eax
call sub.uactmon.dll_Ordinal_1
test eax, eax
js 0x40f672
call sub.usysdiag.dll_vif_get
push 0
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
jns 0x40f6aa
cmp eax, 0xffffffee
jne 0x40f697
push 0x10
push 0x86cc
push 0x8739
push 0
call fcn.004112d0
add esp, 0x10
mov ebx, 0x80004005
jmp 0x40f78a
push eax
call fcn.0040f070
add esp, 4
mov ebx, 0x80004005
jmp 0x40f78a
mov ecx, edi
call fcn.0040f030
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 0x40f716
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 [0x58c884], eax
test eax, eax
je 0x40f716
push 1
push 0x4a
call eax
push 1
push 0x233
call dword [0x58c884]
push 1
push 0x49
call dword [0x58c884]
lea ecx, [edi + 0x94]
call fcn.00444610
mov ebx, eax
test ebx, ebx
js 0x40f78a
push str.hr_monitor
lea ecx, [edi + 0x98]
call fcn.004531b0
test eax, eax
js 0x40f74b
push str.hr_monitor
lea ecx, [edi + 0x98]
call fcn.004532d0
lea eax, [edi + 0x94]
push eax
lea ecx, [edi + 0x5c]
call fcn.004bc880
mov ebx, eax
test ebx, ebx
js 0x40f78a
lea ecx, [edi + 0x274]
call fcn.004223f0
lea ecx, [edi + 0x298]
call fcn.0049f460
lea ecx, [edi + 0x388]
call fcn.004fb620
mov ecx, edi
call fcn.004114a0
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 0x40f4f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40f4f3
push 0x80070057
call fcn.004063a0
int3