Function at 0x401280
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x49804c]
xor eax, ebp
mov dword [ebp - 0x44], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
push str.ClassPlayer
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x2f5], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012e0
xor eax, eax
jmp 0x40177f
push str.kernel32.DLL
mov ecx, dword [ebp - 0x134]
add ecx, 0xa4
call fcn.0040db70
mov ecx, dword [ebp - 0x134]
call fcn.0042e92f
push 0x479888
mov ecx, dword [ebp - 0x134]
call fcn.00433913
lea ecx, [ebp - 0x18]
call fcn.00403fd0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x134]
add ecx, 0x301
call fcn.0040d970
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0xa1d], 0
je 0x401372
push 0
push 0
push 0x4798a0
call fcn.0043105b
mov dword [ebp - 0x108], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x108]
jmp 0x40177f
push 0x4798dc
push 0x4798e0
push 0x4798fc
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00433b3b
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0xa29
call fcn.004040b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00404090
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00402f80
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x134]
call fcn.00401f70
mov dword [section..data], eax
xor ecx, ecx
cmp dword [section..data], 0x415346
sete cl
mov dword [section..data], ecx
lea ecx, [ebp - 0x10]
call fcn.00428a50
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xa29
call fcn.00403300
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4014fb
mov edx, dword [ebp - 0x134]
add edx, 0x60d
mov dword [ebp - 0x100], edx
lea ecx, [ebp - 0x7c]
call fcn.0040b7d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x100]
push eax
call fcn.0045bb00
add esp, 4
push eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040b890
lea ecx, [ebp - 0x7c]
call fcn.0040b8c0
mov dword [ebp - 0x104], eax
push 0
lea ecx, [ebp - 0xfc]
call fcn.0040a0b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x88]
call fcn.00404110
lea ecx, [ebp - 0xfc]
call fcn.00433622
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.0040a190
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.0040b800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x110]
jmp 0x40177f
mov dword [0x49973d], 1
mov ecx, dword [ebp - 0x134]
call fcn.00402170
test eax, eax
jne 0x401552
push 0
push 0
push 0x47990c
call fcn.0043105b
mov dword [ebp - 0x114], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x114]
jmp 0x40177f
call fcn.0040f260
call fcn.0040fd70
call fcn.00432e09
test eax, eax
jne 0x4015a0
push 0xffffffffffffffff
push 0
push 0x64
call fcn.004310a4
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x118]
jmp 0x40177f
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00402040
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x144]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0x2c9
call fcn.004040b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call fcn.00404090
push str.DragonDoor
call fcn.0045baa6
add esp, 4
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x50], eax
push 0
call fcn.00432768
add esp, 4
mov ecx, dword [ebp - 0x134]
call fcn.00401f30
push 0x6c
call fcn.00403ee0
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x40165b
push 0x479f84
push 0x47ab9c
push 0x479c7c
push 0x80
mov ecx, dword [ebp - 0x124]
call fcn.00431bdd
mov dword [ebp - 0x148], eax
jmp 0x401665
mov dword [ebp - 0x148], 0
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x120], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4016b4
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x128]
jmp 0x40177f
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x134]
call fcn.004308ca
lea ecx, [ebp - 0x40]
call fcn.0042ef9f
mov byte [ebp - 4], 7
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x134]
call fcn.0042e49b
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.0043074c
test eax, eax
jne 0x40172a
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0042efde
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x12c]
jmp 0x40177f
push 5
mov ecx, dword [ebp - 0x134]
mov ecx, dword [ecx + 0x20]
call fcn.004312f5
mov edx, dword [ebp - 0x134]
mov ecx, dword [edx + 0x20]
call fcn.00403fb0
mov dword [ebp - 0x130], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0042efde
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404090
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.0045ba52
mov esp, ebp
pop ebp
ret