Function at 0x404f60
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e73
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x432024]
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
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x50], ebx
call fcn.0040dba0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x54], eax
mov eax, dword [0x4338bc]
cmp eax, ebx
jne 0x404fcf
push str.QMGetAllAccessSecurityAttributesEx
call fcn.0041eb20
add esp, 4
cmp eax, ebx
mov dword [0x4338bc], eax
je 0x404fdc
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x5c]
push edx
call eax
push str.Global_rtpsvc_instance_mutex
push 1
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [edi + 0x40], eax
je 0x405360
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405360
push 8
call fcn.0041f81e
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x405066
push str.Global_rtp_svc_shutdown_event
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
mov dword [esi], vtable.utils::CEvent.0
cmp dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x50], 1
jae 0x40504a
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004128b0
mov ebx, esi
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], vtable.utils::CManualResetEvent.0
mov dword [ebp - 0x4c], ebx
jmp 0x405069
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x50], 1
je 0x40507f
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test ebx, ebx
je 0x405360
push 0x4277d4
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x94]
push 1
push ecx
mov dword [ebp - 4], 3
call fcn.004213a0
mov ecx, eax
call fcn.00421ec0
lea ecx, [ebp - 0x94]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.004239b0
test al, al
je 0x4050e7
push esi
push str.RtpPerfLog:_StartTray:_CReportManager::GetInstance__.Initialize___bRet___d
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0x10
call fcn.0041e7a0
push 0
push 0
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__beginthreadex]
push 0x404670
push 0
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push eax
call esi
mov edx, dword [ebp - 0x4c]
push 0
push 0
push edx
push 0x404860
push 0
push 0
call ebx
add esp, 0x18
push eax
call esi
call fcn.004239b0
test al, al
je 0x405144
push str.RtpPerfLog:_CRTPServer_StartSystemModules_begin
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
mov ecx, edi
call fcn.004054e0
mov ecx, edi
call fcn.00405960
call fcn.004239b0
test al, al
je 0x40516f
push str.RtpPerfLog:_CRTPServer_StartSystemModules_end
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
call fcn.004239b0
test al, al
je 0x40518c
push str.RtpPerfLog:_before_boot
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
call fcn.00404be0
call fcn.004239b0
test al, al
je 0x4051ae
push str.RtpPerfLog:_end_boot
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea esi, [ebp - 0x48]
mov dword [ebp - 4], 4
call fcn.00402bf0
push str.QMDns.dll
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4051eb
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0x404880
push 0
push 0
call ebx
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040dc60
mov edx, dword [ebp - 0x4c]
push 2
mov dword [edi + 0x60], edx
call fcn.00406b90
add esp, 4
call fcn.004239b0
test al, al
je 0x40523f
push str.RtpPerfLog:_before_boot
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
call fcn.00404be0
call fcn.004239b0
test al, al
je 0x405261
push str.RtpPerfLog:_end_boot
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
mov eax, dword [edi + 0x60]
mov eax, dword [eax + 4]
push 0
push 0
push eax
push 0x406a00
push 0
push 0
call ebx
add esp, 0x18
mov dword [edi + 0x70], eax
call fcn.004239b0
test al, al
je 0x40529a
push str.RtpPerfLog:_before_working_loop
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
mov ebx, edi
call fcn.00406b20
call fcn.004239b0
test al, al
je 0x4052be
push str.RtpPerfLog:_after_working_loop
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceRTPServer.cpp
call fcn.00423d80
add esp, 0xc
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4052cb
push eax
call fcn.00412830
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4052f0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4052f0
mov ecx, dword [edi + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x70], 0
lea ebx, [edi + 4]
call fcn.00406d80
push 3
call fcn.00406b90
add esp, 4
push 0x2710
call fcn.004213a0
mov ecx, eax
call fcn.00422740
call fcn.00405a50
mov eax, dword [0x4337dc]
test eax, eax
jne 0x405337
push str.QMFinalizeTaskMgr
call fcn.0041eb20
add esp, 4
test eax, eax
mov dword [0x4337dc], eax
je 0x405339
call eax
call fcn.0041e960
call fcn.0040dc10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
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.0041f808
mov esp, ebp
pop ebp
ret