Function at 0x402f30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
push edi
mov edi, dword [ebp + 0xc]
jle 0x402f73
push 0x427928
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
call fcn.004239b0
test al, al
je 0x402f90
push str.RtpPerfLog:_entering_main__
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceQMRtpSvc.cpp
call fcn.00423d80
add esp, 0xc
call fcn.0040be90
mov dword [ebp - 0x424], eax
mov eax, dword [0x4338c8]
test eax, eax
jne 0x402fba
push str.QMTryHookToResuseInject
call fcn.0041eb20
add esp, 4
test eax, eax
mov dword [0x4338c8], eax
je 0x402fbc
call eax
call fcn.00402ea0
cmp esi, 2
jne 0x403272
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push 0x4279c4
push eax
call esi
add esp, 8
test eax, eax
jne 0x4030a5
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x41c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
mov word [ebp - 0x210], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x4279cc
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call esi
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x210]
push 0x104
push eax
call esi
push 0x4279d0
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call esi
push 0x4279d8
lea edx, [ebp - 0x210]
push 0x104
push edx
call esi
lea eax, [ebp - 0x210]
push eax
call fcn.004096d0
add esp, 0x40
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
push 0x427a30
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403122
call fcn.004032a0
test eax, eax
jne 0x4030f0
call fcn.004239b0
test al, al
je 0x4030dd
push str.Parent_Process_without_TX_Sign
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceQMRtpSvc.cpp
call fcn.00423b70
add esp, 0xc
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
call fcn.004239b0
test al, al
je 0x40310d
push str.Parent_Process_with_TX_Sign.
push 0xf
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMServiceQMRtpSvc.cpp
call fcn.00423b70
add esp, 0xc
call fcn.00409780
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0x427ab4
push edx
call esi
add esp, 8
test eax, eax
jne 0x403149
call fcn.00409b20
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
push 0x427abc
push eax
call esi
add esp, 8
test eax, eax
jne 0x403165
call fcn.00402c90
jmp 0x403272
mov ecx, dword [edi + 4]
push 0x4279d8
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4031d2
push str.Global9F07EDA1_EF07_47e7_A7EE_59069A1247DD
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 1
mov esi, eax
call fcn.00406b90
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4031b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret
call fcn.00402de0
call fcn.00401d10
call fcn.00409630
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403272
mov edx, dword [edi + 4]
push 0x427b24
push edx
call esi
add esp, 8
test eax, eax
jne 0x4031f2
push eax
call fcn.00401fd0
add esp, 4
jmp 0x403272
mov eax, dword [edi + 4]
push 0x427b2c
push eax
call esi
add esp, 8
test eax, eax
jne 0x40321f
call fcn.00402de0
mov dword [0x433268], 0xa
mov dword [0x43326c], 0x67
jmp 0x403263
mov ecx, dword [edi + 4]
push 0x427b34
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403238
call fcn.00402520
jmp 0x403272
mov edx, dword [edi + 4]
push str._uid
push edx
call esi
add esp, 8
test eax, eax
jne 0x403272
call fcn.00402de0
mov dword [0x433268], 0xb
mov dword [0x43326c], 0x68
mov dword [ebp - 0x420], 1
call fcn.00402040
cmp dword [ebp - 0x424], 0
je 0x403280
call fcn.0040bf90
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041f808
mov esp, ebp
pop ebp
ret