Function at 0x408a80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28a4
call fcn.0041f0c0
mov eax, dword [0x454080]
xor eax, esp
mov dword [esp + 0x28a0], eax
test byte [0x456fc0], 1
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
jne 0x408acb
or dword [0x456fc0], 1
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x444b90
call fcn.004169dc
add esp, 4
push 0x447ff8
push 0x4571da
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [0x457524], 1
jne 0x408b02
or dword [0x457524], 1
mov ecx, 0x457528
call sym.Install_classic.exe_public:_void___thiscall_CnsDump::constructor_void_
push 0x444be0
call fcn.004169dc
add esp, 4
push str.hf_install_dump
push 0x447ff8
mov ecx, 0x457528
call sym.Install_classic.exe_public:_void___thiscall_CnsDump::Install_wchar_t_const___wchar_t_const__
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x26a2]
push ecx
mov word [esp + 0x26a4], ax
call fcn.004177b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x269c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2698]
push eax
call sym.Install_classic.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
mov edi, edx
mov edx, dword [section..data]
mov esi, eax
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, section..data
call eax
push edi
add eax, 0x10
push esi
push str.ns_installer__I64d
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00405370
add esp, 0xc
push str.ns_installer
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408bf7
lea ecx, [esp + 0x17a0]
push ecx
call fcn.00407e70
push 9
push 8
push 0xb4
push 0x140
push 3
push 0
push 0
mov edi, 0x44806c
mov edx, 0x448074
lea eax, [esp + 0x17bc]
call fcn.004087b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x17a0]
push edx
call fcn.00407ff0
jmp 0x408d91
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.00404c20
mov eax, dword [esp + 0xc]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x408c18
push 0x80070057
call fcn.004057b0
mov ecx, dword [eax - 8]
mov edi, 1
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x408c3a
mov eax, esi
lea ecx, [esp + 0xc]
call fcn.00405250
mov eax, dword [esp + 0xc]
lea edx, [esi + 1]
push edx
push eax
call fcn.004175b2
mov eax, dword [esp + 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x408c0e
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0xc]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x408cd9
push 0x44809c
push eax
call fcn.00417308
add esp, 8
test eax, eax
je 0x408cd9
sub eax, dword [esp + 0xc]
sar eax, 1
js 0x408cd9
lea ecx, [esp + 0x1b38]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push ebx
lea ecx, [esp + 0x1b3c]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::ParseParams_wchar_t_const__
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1b48]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::StartInstall_wchar_t_const___struct_HWND_____int__struct_HWND____
lea ecx, [esp + 0x1b38]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
push 0
lea ecx, [esp + 0x1b3c]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::DoUpdate_bool_
lea ecx, [esp + 0x1b38]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::destructor_void_
jmp 0x408d71
lea edx, [esp + 0x18]
push edx
call fcn.00406000
push 0
push 0x174
push 0x230
xor eax, eax
lea ecx, [esp + 0x24]
call fcn.00405d90
push 5
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00404110
test byte [0x456fc0], 1
jne 0x408d2e
or dword [0x456fc0], edi
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x444b90
call fcn.004169dc
add esp, 4
test byte [0x456fc0], 1
mov eax, dword [esp + 0x64]
mov dword [0x456fcc], eax
jne 0x408d5d
or dword [0x456fc0], edi
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x444b90
call fcn.004169dc
add esp, 4
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_int___thiscall_CNsApp::MsgLoop_void_
lea ecx, [esp + 0x18]
push ecx
call fcn.004062f0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408db1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28ac]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004168aa
mov esp, ebp
pop ebp
ret 0x10