Function at 0x40e620
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3674
call fcn.0047a610
mov eax, dword [0x4eb00c]
xor eax, esp
mov dword [esp + 0x3670], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x4c9670
mov dword [esp + 0x18], eax
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20a
lea eax, [esp + 0x346c]
push 0
push eax
call fcn.00433560
add esp, 0xc
lea eax, [esp + 0x3468]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3468]
push eax
call sym.Install_vip.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov esi, eax
mov edi, edx
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40ed3d
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.00409d70
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 0x40e83b
lea ecx, [esp + 0x18]
call fcn.0040dbe0
push 0x13
push 0x4c96b0
lea ecx, [esp + 0x124]
call fcn.004099c0
push 2
push 0x4c96a8
lea ecx, [esp + 0x120]
call fcn.004099c0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x494], 0
mov dword [esp + 0x49c], 3
mov dword [esp + 0x498], 9
mov byte [esp + 0xde], 1
test eax, eax
je 0x40e775
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x4d0d00]
movups xmmword [esp + 0x24], xmm0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040b2f0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push 0
push dword [eax]
push 0
push dword [esp + 0x50]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x86000000
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x40e812
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [esp + 0x7d], 0
mov byte [esp + 0x74], 0
jne 0x40e807
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
mov byte [esp + 0x7d], 1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x18]
push 0
push 1
push 1
push 8
lea ecx, [esp + 0x28]
call fcn.0040b500
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.0040de10
jmp 0x40ed0f
push 0x468
lea eax, [esp + 0x3004]
push 0
push eax
call fcn.00433560
add esp, 0xc
lea eax, [esp + 0x3000]
push eax
push 0x4c9384
push 0x1f5c
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
add esp, 0xc
test eax, eax
je 0x40eaad
cmp dword [esp + 0x3000], 0
je 0x40eaad
lea eax, [esp + 0x3004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40eaad
lea ecx, [esp + 0x18]
call fcn.00406a90
lea ecx, [esp + 0x124]
mov dword [esp + 0x18], vtable.CPwdDlg.0
call fcn.00406a90
mov dword [esp + method.CNsTips2.virtual_0], vtable.CNsTips.0
call fcn.0040a520
test eax, eax
je 0x40ed3d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x22c], 0
mov dword [esp + 0x220], eax
mov dword [esp + 0x224], 0
mov dword [esp + 0x200], 0xec55
mov word [esp + 0x230], 0
mov dword [esp + 0x1e4], 0
mov byte [esp + 0x232], 1
mov dword [esp + method.CNsTips2.virtual_0], vtable.CNsTips2.0
call fcn.0040a520
test eax, eax
je 0x40ed3d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push 0
push 0
add eax, 0x10
mov dword [esp + 0xe0], 0x1e
push 0
push 0
mov dword [esp + 0x248], eax
mov dword [esp + 0x88], 0x6b
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x4d0c98]
cvttsd2si eax, xmm0
push eax
call sym.Install_vip.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
lea ecx, [esp + 0x3004]
mov dword [esp + 0x234], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e9a7
sub ecx, edx
lea eax, [esp + 0x3004]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x240]
call fcn.004099c0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40e9f0
push eax
call edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x4d0d10]
movups xmmword [esp + 0x24], xmm0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040b2f0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push 0
push dword [eax]
push 0
push dword [esp + 0x50]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x86020000
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x40ea8d
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [esp + 0x7d], 0
mov byte [esp + 0x74], 0
jne 0x40ea82
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
mov byte [esp + 0x7d], 1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x18]
push 0
push 1
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0040b500
lea ecx, [esp + 0x18]
call fcn.00411840
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
call fcn.004096a0
lea ecx, [esp + 0x10]
call fcn.0040d410
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x40eb32
push 0x4c96d8
push eax
call fcn.00432d5a
add esp, 8
test eax, eax
je 0x40eb32
sub eax, dword [esp + 0x10]
sar eax, 1
js 0x40eb32
lea ecx, [esp + 0x18]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::ParseParams_wchar_t_const__
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::StartInstall_wchar_t_const___struct_HWND_____int__struct_HWND____
lea ecx, [esp + 0x18]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
push 0
push 0
lea ecx, [esp + 0x20]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::DoUpdate_bool__wchar_t_const__
lea ecx, [esp + 0x18]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::destructor_void_
jmp 0x40ecf4
lea ecx, [esp + 0x18]
call fcn.0040bc50
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40eb60
push eax
call edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x4d0d30]
movups xmmword [esp + 0x24], xmm0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040b2f0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push 0
push dword [eax]
push 0
push dword [esp + 0x50]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0x86020000
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x40ebfd
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [esp + 0x7d], 0
mov byte [esp + 0x74], 0
jne 0x40ebf2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x14]
mov byte [esp + 0x7d], 1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x18]
cmp byte [esp + 0xe1], 0
jne 0x40ecd3
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2fe4]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ebx, dword [esp + 0x2fec]
mov eax, dword [esp + 0x2fe4]
sub ebx, eax
test eax, eax
jle 0x40ec83
push 0
lea eax, [esp + 0x2ff4]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 1
call edi
mov edi, dword [esp + 0x2ff4]
sub edi, dword [esp + 0x2ffc]
mov ecx, dword [esp + 0x30]
add edi, eax
sub ebx, ecx
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x40ec90
mov ecx, dword [esp + 0x30]
sub ebx, ecx
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push 0
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x34]
push dword [esp + 0x80]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esp + 0x70]
call dword [sym.imp.USER32.dll_ShowWindow]
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
cmp dword [eax + 4], 0
jne 0x40ecd0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
or ebx, 0xffffffff
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_int___thiscall_CNsApp::MsgLoop_void_
lea ecx, [esp + 0x18]
call fcn.0040c010
mov edx, dword [esp + 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40ed24
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x367c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e9de
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040a620
int3