Function at 0x4744d0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b26d6
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
mov dword fs:[0], esp
call fcn.0049f1f0
mov eax, dword [0x4f0dd0]
xor eax, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebp
push esi
push edi
mov dword [esp + 0x1048], eax
mov esi, ecx
call ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push str.Xunlei.UIEngine.XLFS.MP.951E5636_D499_4ff1_B1EE_D59E297D45E2
lea eax, [esp + 0x850]
push str._s_d
push eax
call ebp
add esp, 0x10
xor edi, edi
push edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push str.S:_ML__NW___LW_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4745d8
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], edi
call fcn.004233c1
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x1058], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call fcn.00423b67
push 0xf001f
push 4
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x858]
push edx
lea ecx, [esi + 8]
push 0x83000
call fcn.00423336
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x2c], vtable.ATL::CSecurityDesc.0
call fcn.00423650
lea ecx, [esp + 0x10]
mov dword [esp + 0x1054], 0xffffffff
mov dword [esp + 0x10], vtable.ATL::CSecurityDesc.0
call fcn.00423650
jmp 0x4745fc
push 0xf001f
push 4
push edi
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x858]
push edx
lea ecx, [esi + 8]
push 0x83000
call fcn.00423336
mov edi, eax
test edi, edi
mov edi, dword [esp + 0x1c]
jl 0x4746f3
call ebx
push eax
push 0x4c5c18
lea eax, [esp + 0x50]
push str._s_d
push eax
call ebp
add esp, 0x10
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
push str.S:_ML__NW___LW_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4746c9
mov edx, dword [esp + 0x18]
mov ebx, vtable.ATL::CSecurityDesc.0
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
call fcn.004233c1
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x1058], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00423b67
test edi, edi
je 0x474698
lea edx, [esp + 0x48]
push edx
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
jmp 0x4746aa
lea eax, [esp + 0x48]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [esp + 0x40]
mov dword [esi + 0x28], eax
mov dword [esp + 0x40], ebx
call fcn.00423650
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
call fcn.00423650
jmp 0x4746f3
test edi, edi
je 0x4746e1
lea edx, [esp + 0x48]
push edx
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
jmp 0x4746f0
lea eax, [esp + 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
jne 0x474719
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x103c]
pop ebx
xor ecx, esp
call fcn.0049f127
add esp, 0x1048
ret