Function at 0x40af80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x30cc
call fcn.00426d00
mov eax, dword [0x475080]
xor eax, esp
mov dword [esp + 0x30c8], eax
test byte [0x4780d0], 1
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
jne 0x40afcb
or dword [0x4780d0], 1
mov ecx, 0x4780d8
call sym.Install_vip.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x45de80
call fcn.0041daac
add esp, 4
push 0x465cac
push 0x4782ea
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [0x4786a0], 1
jne 0x40b002
or dword [0x4786a0], 1
mov ecx, 0x4786a4
call sym.Install_vip.exe_public:_void___thiscall_CnsDump::constructor_void_
push 0x45ded0
call fcn.0041daac
add esp, 4
push str.hf_install_dump
push 0x465cac
mov ecx, 0x4786a4
call sym.Install_vip.exe_public:_void___thiscall_CnsDump::Install_wchar_t_const___wchar_t_const__
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x2eca]
push ecx
mov word [esp + 0x2ecc], ax
call fcn.0041eb30
add esp, 0xc
push 0x104
lea edx, [esp + 0x2ec4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2ec0]
push eax
call sym.Install_vip.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.00406090
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
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 0x40b0f7
lea edx, [esp + 0x19e8]
push edx
call fcn.0040a2f0
push 9
push 8
push 0xb4
push 0x140
push 3
push 0
push 0
mov edi, 0x465d04
mov edx, 0x465d0c
lea eax, [esp + 0x1a04]
call fcn.0040ac90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x19e8]
push eax
call fcn.0040a480
jmp 0x40b343
push 0x468
lea ecx, [esp + 0x1dfc]
push 0
push ecx
call fcn.0041eb30
add esp, 0xc
lea edx, [esp + 0x1df8]
push edx
push 0x4659b8
push 0x1f5c
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
test eax, eax
je 0x40b1a4
cmp dword [esp + 0x1df8], 0
je 0x40b1a4
lea eax, [esp + 0x1dfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40b1a4
lea ecx, [esp + 0x19e8]
push ecx
call fcn.0040d900
lea edx, [esp + 0x1dfc]
lea edi, [esp + 0x1c10]
call fcn.00405a60
push 0
push 0
push 0
push 0xc8
push 0x140
push 0
push 0
xor eax, eax
lea ecx, [esp + 0x1a04]
call fcn.00407550
push 1
push 1
push 0xffffffffffffffff
lea esi, [esp + 0x19f4]
call fcn.00407730
mov edx, esi
push edx
call fcn.0040da50
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.00405940
mov eax, dword [esp + 0xc]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x40b1c5
push 0x80070057
call fcn.004064e0
mov edx, dword [eax - 8]
mov edi, 1
mov ecx, edi
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x40b1e7
mov eax, esi
lea ecx, [esp + 0xc]
call fcn.00405f70
mov eax, dword [esp + 0xc]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0041e626
mov eax, dword [esp + 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40b1bb
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0xc]
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], edx
jl 0x40b287
push 0x465d34
push eax
call fcn.0041e37c
add esp, 8
test eax, eax
je 0x40b287
sub eax, dword [esp + 0xc]
sar eax, 1
js 0x40b287
lea ecx, [esp + 0x2260]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push ebx
lea ecx, [esp + 0x2264]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::ParseParams_wchar_t_const__
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2270]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::StartInstall_wchar_t_const___struct_HWND_____int__struct_HWND____
lea ecx, [esp + 0x2260]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
push 0
push 0
lea ecx, [esp + 0x2268]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::DoUpdate_bool__wchar_t_const__
lea ecx, [esp + 0x2260]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::destructor_void_
jmp 0x40b323
lea esi, [esp + 0x18]
call fcn.00408010
push 0
push 0
push 0
push 0x1b4
push 0x232
push 0
push 0
xor eax, eax
mov ecx, esi
call fcn.00407550
push 5
push edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404d90
test byte [0x4780d0], 1
jne 0x40b2df
or dword [0x4780d0], edi
mov ecx, 0x4780d8
call sym.Install_vip.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x45de80
call fcn.0041daac
add esp, 4
test byte [0x4780d0], 1
mov ecx, dword [esp + 0x6c]
mov dword [0x4780dc], ecx
jne 0x40b30f
or dword [0x4780d0], edi
mov ecx, 0x4780d8
call sym.Install_vip.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x45de80
call fcn.0041daac
add esp, 4
mov ecx, 0x4780d8
call sym.Install_vip.exe_public:_int___thiscall_CNsApp::MsgLoop_void_
lea edx, [esp + 0x18]
push edx
call fcn.004083e0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b343
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 0x40b363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041d97a
mov esp, ebp
pop ebp
ret 0x10