Function at 0x423fc0
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c483
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x45d520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x10], 0
jne 0x424119
push str.PISSharedMem
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x10], 0
je 0x424112
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0xc], 0
jne 0x42405b
push str.PISFree
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x14], 0
jne 0x42408b
push 0x208
push 0
push 0
push 2
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0xa4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 4], 0
jne 0x4240b2
push str.PISExec
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 8], 0
jne 0x4240d9
push str.PISDone
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0xc], 0
je 0x424109
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 4], 0
je 0x424109
mov ecx, dword [ebp - 0xa4]
cmp dword [ecx + 8], 0
je 0x424109
mov edx, dword [ebp - 0xa4]
cmp dword [edx + 0x14], 0
jne 0x424110
xor eax, eax
jmp 0x424387
jmp 0x424119
xor eax, eax
jmp 0x424387
mov eax, dword [ebp - 0xa4]
cmp dword [eax + 0x10], 0
je 0x42430c
cmp dword [ebp - 0x10], 0
jle 0x42430a
push 0x7d0
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x424297
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x18]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0x14]
add eax, 4
push eax
call fcn.00435ff0
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4241dd
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x14]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
call fcn.00435ff0
add esp, 8
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
jmp 0x424285
movzx ecx, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
push edx
push str.TrayControl:__d_Timeout_waiting_for_server__retry_d__reply_d
mov eax, dword [ebp - 0xa4]
add eax, 0x1c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x424277
cmp dword [ebp - 0x10], 0
jle 0x424223
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x424275
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0xa4]
add edx, 0x1c
push edx
lea ecx, [ebp - 0x5c]
call fcn.004018c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00424900
push 0x459940
lea ecx, [ebp - 0x40]
push ecx
call fcn.00433b6d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401940
jmp 0x424285
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x424305
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x4242fe
cmp dword [ebp - 0x10], 0
jle 0x4242b0
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4242fc
push str.Could_not_get_shared_mem_mutex
lea ecx, [ebp - 0xa0]
call fcn.004018c0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x84]
call fcn.00424900
push 0x459940
lea ecx, [ebp - 0x84]
push ecx
call fcn.00433b6d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00401940
jmp 0x424305
mov dword [ebp - 0x10], 0
jmp 0x424129
jmp 0x42431e
push str.TrayControl:_PIS_not_active
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 0
push str.TRUE
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
call fcn.00436150
add esp, 8
test eax, eax
jne 0x42436c
push 0x452128
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436150
add esp, 8
test eax, eax
jne 0x42435a
push str.TrayControl:_PIS_is_dead
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x424365
push str.TrayControl:_PIS_is_active
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 1
push 0x400
push 0
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
call fcn.004340c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc