Function at 0x404c30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19bc
call fcn.00430e90
mov eax, dword [0x4e3074]
xor eax, esp
mov dword [esp + 0x19b8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x4c2cf4
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 str.Install_silent
push 0x4c2d24
push 0x4c2d30
call sym.Install_silent.exe_void___cdecl_DoReport_wchar_t_const___wchar_t_const___wchar_t_const__
add esp, 0xc
lea eax, [esp + 0x17b0]
push 0x20a
push 0
push eax
call fcn.00456880
add esp, 0xc
lea eax, [esp + 0x17b0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x17b0]
push eax
call sym.Install_silent.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov esi, eax
mov edi, edx
call fcn.00405d90
mov ecx, eax
test ecx, ecx
je 0x404ee2
mov eax, dword [ecx]
call dword [eax + 0xc]
push edi
add eax, 0x10
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push str.ns_installer__I64d
push eax
call fcn.00405800
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 edi, 0xffffffff
cmp eax, 0xb7
jne 0x404d22
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404eb4
lea ecx, [esp + 0x18]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x404e84
push ebx
lea ecx, [esp + 0x10]
call fcn.00405080
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x404e05
push 0x4c2d9c
push eax
call fcn.00455f3b
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x404e01
mov eax, dword [esp + 0xc]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x404e05
push ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x16d4], 1
push eax
lea ecx, [esp + 0x14]
call fcn.00404ef0
mov ebx, dword [esp + 0xc]
add ebx, 0xfffffff0
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x404de6
cmp dword [ebx + 0xc], 0
jl 0x404dd9
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x404dd9
call fcn.004053e0
mov dword [esp + 0x14], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404dd0
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0xc], eax
jmp 0x404de6
push dword [edx - 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.00405450
mov edx, dword [esp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x16c8]
lea edx, [eax - 0x10]
add ebx, 0xfffffff0
mov dword [esp + 0x10], edx
cmp edx, ebx
je 0x404e6d
cmp dword [ebx + 0xc], 0
jl 0x404e59
mov edx, dword [edx]
cmp edx, dword [ebx]
jne 0x404e59
mov ecx, dword [esp + 0x10]
call fcn.004053e0
mov dword [esp + 0x10], eax
lea edx, [ebx + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e4d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x16c8], eax
jmp 0x404e69
push dword [eax - 0xc]
lea ecx, [esp + 0x16cc]
push eax
call fcn.00405450
mov eax, dword [esp + 0xc]
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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], edi
dec edi
test edi, edi
jg 0x404ec9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x19c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00405b00
int3