Function at 0x4090d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
xor ebx, ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x20], eax
call fcn.00458270
add esp, 0xc
push 0x104
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x30]
push ecx
call esi
push str.360base.dll
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [0x4aedc0], ebx
jne 0x409184
push 0x4aeda8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4aedc0], ebx
jne 0x409179
push 0x4ae998
lea ecx, [esp + 0x34]
call fcn.0040c6c0
mov dword [0x4aedc4], eax
mov dword [0x4aedc0], 1
push 0x4aeda8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x4aedc4], ebx
je 0x4092a4
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.004030f0
mov ecx, dword [esp + 0xc]
push ecx
push str.CmdLine:_s
call fcn.00422460
add esp, 8
push str.xxxxxxMutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
je 0x4091d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4092bd
mov dword [0x4a9f40], esi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0042b967
test eax, eax
jge 0x4091f7
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push str.RICHED20.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
call fcn.00409920
mov ebx, dword [esp + 0x14]
call fcn.0041e150
mov ecx, edi
call fcn.00408e40
call fcn.00409880
test esi, esi
je 0x40925f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
call fcn.0042b9fe
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x4a9f40]
test eax, eax
je 0x409284
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4092a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00451a7d
mov esp, ebp
pop ebp
ret 0x10
push ebx
push str.LuDaShiTrayWndMainFrameClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
je 0x409284
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409284
push str.Send_WM_MSG_SHOWWINDOW_IMPL
call fcn.00422460
add esp, 4
push ebx
push ebx
push 0x7f8
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409284