Function at 0x40b4e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x44f4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x469720]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x80]
mov ebp, 8
cmp dword [esp + 0x94], ebp
jae 0x40b52b
lea eax, [esp + 0x80]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x40b706
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b6ff
cmp dword [esp + 0x94], ebp
mov edx, dword [esp + 0x80]
jae 0x40b56a
lea edx, [esp + 0x80]
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b580
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.00406370
lea eax, [esp + 0x3c]
push eax
push edi
mov eax, esi
mov byte [esp + 0x7c], 1
call fcn.0040bcf0
mov byte [esp + 0x74], 0
cmp dword [esp + 0x34], ebp
jb 0x40b5c4
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041218b
add esp, 4
mov esi, dword [esp + 0x3c]
cmp esi, ebx
mov ebp, dword [edi + 4]
je 0x40b5d3
cmp esi, edi
je 0x40b5d8
call fcn.0042f7d5
mov ebx, dword [esp + 0x40]
cmp ebx, ebp
jne 0x40b6b9
cmp dword [esp + 0x94], 8
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x84]
jae 0x40b601
lea edx, [esp + 0x84]
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00408380
lea esi, [esp + 0x68]
call fcn.0040c430
add esp, 0x20
mov esi, eax
xor eax, eax
mov byte [esp + 0x74], 2
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
push eax
mov ebp, 7
mov eax, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
call fcn.004062c0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x3c]
push ecx
push edi
lea ebx, [esp + 0x24]
mov byte [esp + 0x7c], 3
call fcn.0040b8b0
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x40b677
mov edx, dword [esp + 0x20]
push edx
call fcn.0041218b
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
jb 0x40b699
mov eax, dword [esp + 0x4c]
push eax
call fcn.0041218b
add esp, 4
cmp dword [esp + 0x94], esi
jb 0x40b6b2
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041218b
add esp, 4
mov al, 1
jmp 0x40b77d
test esi, esi
jne 0x40b6c2
call fcn.0042f7d5
cmp ebx, dword [esi + 4]
jne 0x40b6cc
call fcn.0042f7d5
mov edx, dword [ebx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 4]
jne 0x40b6e0
call fcn.0042f7d5
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], eax
cmp dword [esp + 0x94], 8
jb 0x40b77b
mov ecx, dword [esp + 0x80]
push ecx
jmp 0x40b773
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x40b71d
lea eax, [esp + 0x80]
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push eax
push str.32770
call edi
mov esi, eax
cmp esi, ebx
jne 0x40b752
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x40b748
lea eax, [esp + 0x80]
push eax
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x40b762
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x94], ebp
jb 0x40b77b
mov edx, dword [esp + 0x80]
push edx
call fcn.0041218b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x1c