Function at 0x404bb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xef4
mov eax, dword [0x47e014]
xor eax, esp
mov dword [esp + 0xef0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push section..hstr
call sym.Install_silent.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x46cb98
push 0x46cbb8
push 0x46cbc8
call sym.Install_silent.exe_void___cdecl_DoReport_wchar_t_const___wchar_t_const___wchar_t_const__
add esp, 0xc
lea eax, [esp + 0xce8]
push 0x20a
push 0
push eax
call fcn.00427170
add esp, 0xc
lea eax, [esp + 0xce8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xce8]
push eax
call sym.Install_silent.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov esi, eax
mov ebx, edx
call fcn.00405e20
test eax, eax
je 0x404e8e
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x404e98
lock inc dword [eax + 0x14]
add eax, 8
push ebx
add eax, 0x10
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push str.ns_installer__I64d
push eax
call fcn.00405820
mov esi, dword [esp + 0x1c]
add esp, 0x10
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
cmp eax, 0xb7
jne 0x404cac
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e4b
lea ecx, [esp + 0x18]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x404e1b
push edi
lea ecx, [esp + 0x10]
call fcn.00405020
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x404d9b
push 0x46cc34
push eax
call fcn.0042682b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x404d97
mov eax, dword [esp + 0xc]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x404d9b
push ecx
lea eax, [esp + 0x18]
mov byte [esp + 0xc0c], 1
push eax
lea ecx, [esp + 0x14]
call fcn.00404ec0
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
mov edx, dword [eax]
lea edi, [edx - 0x10]
cmp edi, ecx
je 0x404d63
cmp dword [ecx + 0xc], 0
jl 0x404d56
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x404d56
mov ecx, edi
call fcn.00405390
mov ecx, dword [esp + 0x10]
mov edi, eax
call fcn.00405b40
lea eax, [edi + 0x10]
mov dword [esp + 0xc], eax
jmp 0x404d63
push dword [edx - 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.00405400
mov ecx, dword [esp + 0x14]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x404d97
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x404ea2
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0xc00]
lea edi, [eax - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x404de8
cmp dword [ebx + 0xc], 0
jl 0x404dd4
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x404dd4
mov ecx, edi
call fcn.00405390
mov ecx, ebx
mov edi, eax
call fcn.00405b40
lea eax, [edi + 0x10]
mov dword [esp + 0xc00], eax
jmp 0x404de4
push dword [eax - 0xc]
lea ecx, [esp + 0xc04]
push eax
call fcn.00405400
mov eax, dword [esp + 0xc]
or ebx, 0xffffffff
lea ecx, [eax - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x404e1b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x404eab
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::StartInstall_wchar_t_const___struct_HWND_____int__struct_HWND____
lea ecx, [esp + 0x18]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
push 0
push 0
lea ecx, [esp + 0x20]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::DoUpdate_bool__wchar_t_const__
lea ecx, [esp + 0x18]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::destructor_void_
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x404e75
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x404eb4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0xefc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004216bd
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00405b20
mov ecx, eax
call dword [edx + 0xc]
jmp 0x404c5f
mov ecx, edx
call edi
jmp 0x404d97
mov ecx, edx
call edi
jmp 0x404e1b
call edx
jmp 0x404e75