Function at 0x40dcc0
Capabilities:
Check mutex on windows
Inspect load icon resource
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x208c
call fcn.00450b90
mov eax, dword [0x49c00c]
xor eax, esp
mov dword [esp + 0x2088], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x487afc
mov dword [esp + 0x18], eax
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.hf_install_dump
push 0x487afc
call sym.Install_rocket.exe_public:_static_class_CnsDump____cdecl_CnsDump::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CnsDump::Install_wchar_t_const___wchar_t_const__
push 0x20a
lea eax, [esp + 0x1e84]
push 0
push eax
call fcn.0042b580
add esp, 0xc
lea eax, [esp + 0x1e80]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1e80]
push eax
call sym.Install_rocket.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov esi, eax
mov edi, edx
call fcn.0040a540
test eax, eax
je 0x40e542
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x40e54c
lock inc dword [eax + 0x14]
add eax, 8
push edi
add eax, 0x10
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push str.ns_installer__I64d
push eax
call fcn.00409d20
mov esi, dword [esp + 0x20]
add esp, 0x10
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
cmp eax, 0xb7
jne 0x40defd
lea ecx, [esp + 0x18]
call fcn.0040d040
push 0x13
push 0x487b5c
lea ecx, [esp + 0x124]
call fcn.00409900
push 2
push 0x487b54
lea ecx, [esp + 0x120]
call fcn.00409900
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3f8], 0
mov dword [esp + 0x400], 3
mov dword [esp + 0x3fc], 9
mov byte [esp + 0xde], 1
test eax, eax
je 0x40de39
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x48dee0]
movups xmmword [esp + 0x24], xmm0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040ae10
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_rocket.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_rocket.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 0x40ded6
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 0x40decb
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 1
push 1
push 8
lea ecx, [esp + 0x24]
call fcn.0040b020
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call fcn.0040d2d0
jmp 0x40e4fd
push 0x468
lea eax, [esp + 0x1a1c]
push 0
push eax
call fcn.0042b580
add esp, 0xc
lea eax, [esp + 0x1a18]
push eax
push 0x487b84
push 0x1f5c
call sym.Install_rocket.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
test eax, eax
je 0x40e182
cmp dword [esp + 0x1a18], 0
je 0x40e182
lea eax, [esp + 0x1a1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40e182
lea ecx, [esp + 0x18]
call fcn.00406910
lea ecx, [esp + 0x124]
mov dword [esp + 0x18], vtable.CPwdDlg.0
call fcn.00406910
mov dword [esp + method.CNsTips.virtual_0], vtable.CNsTips.0
call fcn.0040a540
test eax, eax
je 0x40e542
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x40e556
lock inc dword [eax + 0x14]
add eax, 8
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.0040a540
test eax, eax
je 0x40e542
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x40e560
lock inc dword [eax + 0x14]
add eax, 8
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_rocket.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_int___thiscall_CNsFont::GetDefaultSize_void_
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x48de98]
cvttsd2si eax, xmm0
push eax
call sym.Install_rocket.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
lea ecx, [esp + 0x1a1c]
mov dword [esp + 0x234], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e080
sub ecx, edx
lea eax, [esp + 0x1a1c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x240]
call fcn.00409900
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40e0cd
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x48def0]
movups xmmword [esp + 0x24], xmm0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040ae10
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_rocket.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_rocket.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 0x40e16a
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 0x40e15f
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 1
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.0040b020
lea ecx, [esp + 0x18]
call fcn.00411730
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edi
call fcn.004095e0
lea ecx, [esp + 0xc]
call fcn.0040e5c0
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x40e205
push 0x487b8c
push eax
call fcn.0042ad75
add esp, 8
test eax, eax
je 0x40e205
sub eax, dword [esp + 0xc]
sar eax, 1
js 0x40e205
lea ecx, [esp + 0x18]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::constructor_void_
push edi
lea ecx, [esp + 0x1c]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::ParseParams_wchar_t_const__
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::StartInstall_wchar_t_const___struct_HWND_____int__struct_HWND____
lea ecx, [esp + 0x18]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
push 0
push 0
lea ecx, [esp + 0x20]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::DoUpdate_bool__wchar_t_const__
lea ecx, [esp + 0x18]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::destructor_void_
jmp 0x40e4c5
lea ecx, [esp + 0x18]
call fcn.00406910
lea ecx, [esp + 0x138]
mov dword [esp + 0x18], vtable.CMainDlg.0
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::constructor_void_
call fcn.0040a540
test eax, eax
je 0x40e542
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x40e56a
lock inc dword [eax + 0x14]
add eax, 8
add eax, 0x10
lea ecx, [esp + 0x190c]
mov dword [esp + 0x1908], eax
call fcn.00406910
mov dword [esp + 0x190c], 0x487a38
call fcn.0040a540
test eax, eax
je 0x40e542
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x40e574
lock inc dword [eax + 0x14]
add eax, 8
add eax, 0x10
mov dword [esp + 0x19cc], 0
mov dword [esp + 0x1a08], eax
mov dword [esp + 0x1a0c], 0x1e
mov dword [esp + 0x1a10], 0xf
mov dword [esp + 0xd8], 0x1e
mov dword [esp + 0x78], 0x6b
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push 0x6b
push dword [eax]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x114], eax
mov word [esp + 0x128], 0
mov byte [esp + 0x12a], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
call sym.Install_rocket.exe_public:_static_class_CNsFont____cdecl_CNsFont::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_int___thiscall_CNsFont::isSupportYaHei_void_
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40e354
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x6c], 0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassW]
movaps xmm0, xmmword [0x48df10]
movups xmmword [esp + 0x24], xmm0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.0040ae10
mov edi, dword [esp + 0x70]
mov dword [esp + 0x44], 0
call sym.Install_rocket.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_rocket.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 0x40e41d
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffeb
push eax
call edi
push 0xffffffffffffffec
push dword [esp + 0x70]
mov byte [esp + 0x7c], 1
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esp + 0x74]
call edi
cmp byte [esp + 0x7d], 0
jne 0x40e402
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 0
push 0xf
push dword [esp + 0x78]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esp + 0xe1], 0
jne 0x40e4a4
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 1
mov dword [esp + 0x28], eax
call edi
mov ecx, dword [esp + 0x30]
sub eax, ecx
push 0
push ecx
push dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x34]
mov dword [esp + 0x3c], eax
push dword [esp + 0x80]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0xd8], 1
push eax
push 0x406520
call sym.Install_rocket.exe_public:_static_class_CNsThread____cdecl_CNsThread::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_void____thiscall_CNsThread::StartThread_unsigned_int____stdcall___void____void___int_
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
cmp dword [eax + 4], 0
jne 0x40e4a4
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], ecx
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_int___thiscall_CNsApp::MsgLoop_void_
lea ecx, [esp + 0x18]
call fcn.0040b5a0
mov ecx, dword [esp + 0xc]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40e4fd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40e57e
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x40e503
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e529
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40e587
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
mov ecx, dword [esp + 0x2094]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004298d0
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040a640
mov ecx, eax
call dword [edx + 0xc]
jmp 0x40dd76
mov ecx, eax
call dword [edx + 0xc]
jmp 0x40dfa4
mov ecx, eax
call dword [edx + 0xc]
jmp 0x40e019
mov ecx, eax
call dword [edx + 0xc]
jmp 0x40e244
mov ecx, eax
call dword [edx + 0xc]
jmp 0x40e287
mov ecx, edx
call edi
jmp 0x40e4fd
call edx
jmp 0x40e529