Function at 0x407d00
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8460
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.00412cf0
push eax
call fcn.00412de0
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x10]
or ebp, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x407d54
mov dword [esp + 0x24], ebp
jmp 0x407f15
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
test edi, edi
je 0x407e58
lea ecx, [esp + 0x18]
push ecx
call fcn.00412cf0
push eax
call fcn.00412de0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, str.:Setting
mov byte [esp + 0x2c], 1
call fcn.0040ab10
mov ecx, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
push ebx
push ecx
call esi
cmp eax, ebx
mov eax, dword [esp + 0x14]
je 0x407e1a
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x407e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407f0d
mov edx, dword [esp + 0x10]
push 0
push edx
call esi
mov esi, eax
test esi, esi
je 0x407de1
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x407ea1
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x407eb4
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
test edi, edi
je 0x407ee9
push 0
push 0x2afb
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x407de1
call fcn.00412cf0
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x407de1
push 0
push eax
push 0x5395
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x407de1
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x407f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret