Function at 0x401080
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x445c76
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x45a0f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45a0f0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
push str.E55BEE14_68F1_4da0_8549_5CD11B60DB0F
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
je 0x401111
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401111
push 0x450c80
push 0x450bc8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
je 0x40110a
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
jmp 0x4013e4
mov dword [esp + 0x34], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x274], ebx
mov edi, dword [0x45ec9c]
lea ecx, [esp + 0x34]
add edi, 0x10
push edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x45ed3c]
lea edx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00402b20
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00406590
mov eax, 0xa
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00411ff0
push 0x4535fc
mov byte [esp + 0x278], 1
mov edx, dword [0x45e044]
push 0x6f
push edx
lea eax, [esp + 0x13c]
mov esi, 0x14c
push eax
mov dword [esp + 0x1f0], 2
lea edi, [esi - 0x5c]
call fcn.0041d9d0
mov ecx, dword [0x45e044]
push 0x4535fc
push 0x6d
push ecx
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x268], 0x12
mov dword [esp + 0x250], esi
mov dword [esp + 0x254], edi
call fcn.0041d9d0
mov eax, dword [esp + 0x144]
add esp, 0x20
push 0x24
push 0x1a
push 0x29
push 0x1a
push ebx
push eax
lea ecx, [esp + 0x84]
call fcn.0041b080
mov ecx, dword [0x45e044]
push 0x4535fc
push 0x69
push ecx
lea edx, [esp + 0x134]
mov esi, 0x28b
push edx
lea edi, [esi + 0x10]
mov ebp, 0x10
call fcn.0041d9d0
add esp, 0x10
mov dword [esp + 0x210], esi
mov dword [esp + 0x214], ebp
mov dword [esp + 0x218], edi
mov eax, 0x21
mov dword [esp + 0x21c], eax
mov eax, 0x28
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
lea ecx, [esi - 1]
mov edx, 0x21
mov esi, 0x1bd
mov dword [esp + 0x224], edx
mov dword [esp + 0x228], ecx
mov dword [esp + 0x22c], esi
cmp eax, ebx
je 0x4012b5
push eax
lea ecx, [esp + 0x1c4]
call fcn.004054e0
mov ecx, dword [0x45e044]
push 0x4535fc
push 0x6e
push ecx
lea edx, [esp + 0x138]
mov esi, 0xd4
push edx
lea edi, [esi - 0x18]
call fcn.0041d9d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, 1
mov dword [esp + 0x250], eax
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], eax
add esp, 0xc
mov eax, esp
mov dword [esp + 0x23c], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x240], edi
mov dword [esp + 0x80], edx
push ecx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x20]
lea esi, [esp + 0x74]
mov dword [eax], ecx
call fcn.00401ee0
mov ecx, esi
cmp eax, ebx
je 0x40140c
call fcn.0041ae80
mov edx, dword [esp + 0x70]
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xffffff7f
or ecx, 0x40000
cmp eax, ecx
je 0x401377
mov eax, dword [esp + 0x70]
push ecx
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esp + 0x70]
push 0x450c80
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esp + 0x70]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x34]
call fcn.00402a80
mov esi, eax
call fcn.00402930
lea ecx, [esp + 0x6c]
mov byte [esp + 0x274], bl
call fcn.00412150
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x4013c9
push eax
call fcn.0042de79
add esp, 4
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x4013e2
push eax
call fcn.0042de79
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042d98b
add esp, 0x264
ret
mov byte [esp + 0x274], bl
call fcn.00412150
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x40142d
push eax
call fcn.0042de79
add esp, 4
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x401446
push eax
call fcn.0042de79
add esp, 4
xor eax, eax
jmp 0x4013e4