Function at 0x4011c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x298
mov eax, dword [0x44800c]
xor eax, esp
mov dword [esp + 0x294], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 0
call fcn.00402c10
mov eax, dword [esp + 0x24]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x40155c
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x40122e
push esi
lea ecx, [esp + 0x28]
call fcn.004029d0
mov eax, dword [esp + 0x24]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00422c2d
mov eax, dword [esp + 0x2c]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40155c
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov word [eax + esi*2], cx
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ecx
jl 0x40127e
push str.es360messenger:__
push eax
call fcn.004209a4
add esp, 8
test eax, eax
je 0x40127e
mov ecx, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
je 0x40152c
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x208
lea eax, [esp + 0x94]
push 0
push eax
call fcn.00420c30
add esp, 0xc
lea eax, [esp + 0x90]
push 0x104
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [edi], ax
jne 0x4012dc
xor ecx, ecx
jmp 0x4012f0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4012e1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x30]
call fcn.00401f00
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
cmp dword [esp + 0x38], eax
je 0x40133a
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.LxRanderProcessMutex1
push eax
push eax
call esi
mov edi, eax
test edi, edi
je 0x40133a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40133a
push str.LxRanderProcessMutex2
push 0
push 0
call esi
mov dword [esp + 8], eax
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x90]
movaps xmmword [esp + 0x60], xmm0
push eax
lea ecx, [esp + 0x64]
movaps xmmword [esp + 0x74], xmm0
call fcn.004054d0
xorps xmm0, xmm0
lea eax, [esp + 0x60]
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x90]
push str.Dup.dll
movq qword [esp + 0x54], xmm0
push eax
mov dword [esp + 0x48], vtable.LxAppDelegate.0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x90]
call fcn.00402150
test eax, eax
je 0x4014ce
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4014ce
push str.dup.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4013fb
xor esi, esi
jmp 0x401424
push str.CreateDupObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40140f
xor esi, esi
jmp 0x401424
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 2
call eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x14]
call eax
mov byte [esp + 0xc], al
mov ecx, esi
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x10]
mov esi, dword [esi]
lea ecx, [esp + 0x60]
call fcn.004055b0
mov ecx, dword [esp + 0x18]
movzx eax, al
push eax
call dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004015c0
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
add esp, 0x10
test edi, edi
je 0x40149e
push edi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [esp + 8]
test esi, esi
je 0x4014b0
push esi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0xc
call fcn.004016a0
add esp, 0xc
push 0
call dword [sym.imp.LxBase.dll_logger_flush]
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4014e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push str.Error
push str.Dup.dll_Load_Failure_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], vtable.LxAppDelegate.0
call fcn.004010b0
mov eax, dword [esp + 0x3c]
cmp eax, 8
jb 0x401511
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00402260
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
lea edx, [ecx - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401544
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x29c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00408856
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00402b40
int3