Function at 0x487450
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b8], ecx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::CheckValid_void_
mov eax, dword [ebp - 0x4b8]
add eax, 0x24
push eax
push str.install
push 0x4c5458
call sym.Install_silent.exe_void___cdecl_DoReport_wchar_t_const___wchar_t_const___wchar_t_const__
add esp, 0xc
mov ecx, dword [ebp - 0x4b8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_private:_void___thiscall_CNsInstaller::InitPath_struct_tagSetupInfo__
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_private:_void___thiscall_CNsInstaller::InstallComponent_void_
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
push 0x4c549c
push 0x1f5a
call sym.Install_silent.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
cdq
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4cc], edx
mov eax, dword [ebp - 0x4cc]
cmp dword [eax + 0x14], 0
jg 0x487528
jl 0x487521
mov ecx, dword [ebp - 0x4cc]
cmp dword [ecx + 0x10], 0
ja 0x487528
xor al, al
jmp 0x4879a6
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00430705
add esp, 4
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ebp - 0x4e0]
mov dword [ecx + 0x1620], edx
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [eax + 0x1620]
push ecx
push 0x4c54a4
push 0x1f5a
call sym.Install_silent.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x4e4], eax
cmp dword [ebp - 0x4e4], 0
jne 0x4875b8
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x1620]
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
push ecx
call fcn.004303f9
add esp, 4
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x1620], 0
xor al, al
jmp 0x4879a6
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d0], eax
mov ecx, dword [ebp - 0x4d0]
cmp dword [ecx + 0x14], 0
jg 0x4875f0
jl 0x4875e1
mov edx, dword [ebp - 0x4d0]
cmp dword [edx + 0x10], 0x6400000
jae 0x4875f0
mov eax, dword [ebp - 0x4b8]
mov dword [eax + 0x20], 0
jmp 0x487635
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d4], ecx
mov edx, dword [ebp - 0x4d4]
cmp dword [edx + 0x14], 0
jg 0x487628
jl 0x487619
mov eax, dword [ebp - 0x4d4]
cmp dword [eax + 0x10], 0x40000000
jae 0x487628
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x20], 1
jmp 0x487635
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x20], 2
push 0x4c54ac
mov ecx, dword [ebp - 0x4b8]
add ecx, 0x16b0
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::CheckDir_wchar_t_const___wchar_t_const__
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4dc], ecx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [edx + 0x1c]
cmp ecx, dword [eax + 0x14]
jg 0x487739
jl 0x4876a1
mov edx, dword [ebp - 0x4d8]
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x10]
jae 0x487739
mov edx, dword [ebp - 0x4b8]
movzx eax, byte [edx + 8]
test eax, eax
je 0x4876e7
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 0x1620]
mov dword [ebp - 0x4ec], edx
mov eax, dword [ebp - 0x4ec]
push eax
call fcn.004303f9
add esp, 4
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x1620], 0
xor al, al
jmp 0x4879a6
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x4b8]
add eax, dword [ecx + 0x1620]
mov dword [ebp - 0x4f0], eax
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x18]
add eax, 0x194
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x4f0]
push eax
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_private:_bool___thiscall_CNsInstaller::ExtractFileEx_struct_tagPacketInfo__
jmp 0x487657
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 0x1620]
mov dword [ebp - 0x4f4], edx
mov eax, dword [ebp - 0x4f4]
push eax
call fcn.004303f9
add esp, 4
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x1620], 0
lea ecx, [ebp - 0x4c4]
call fcn.00405120
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x4b8]
add edx, 0x72c
push edx
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [eax + 0x16b0]
push ecx
push 0x4c54b0
lea edx, [ebp - 0x4c4]
push edx
call fcn.00405800
add esp, 0x10
lea ecx, [ebp - 0x4c4]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48789a
lea ecx, [ebp - 0x4c0]
call fcn.00405120
mov byte [ebp - 4], 1
call sym.Install_silent.exe_int___cdecl_isEnglish_void_
test eax, eax
je 0x4877ee
push str.Installation_failed__does_not_have_write_permission_
lea ecx, [ebp - 0x4c0]
call fcn.00405250
jmp 0x4877fe
push 0x4c5534
lea ecx, [ebp - 0x4c0]
call fcn.00405250
lea ecx, [ebp - 0x4b4]
call fcn.004149d0
mov byte [ebp - 4], 2
push 1
push 9
push 8
push 0xa0
push 0x12c
push 6
push 0
call sym.Install_silent.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
lea ecx, [ebp - 0x4c0]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_silent.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.004150a0
call sym.Install_silent.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_silent.exe_public:_void___thiscall_CNsApp::ExitApp_void_
mov byte [ebp - 0x4b9], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b4]
call fcn.00414b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.00405060
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c4]
call fcn.00405060
mov al, byte [ebp - 0x4b9]
jmp 0x4879a6
mov ecx, dword [ebp - 0x4b8]
movzx edx, byte [ecx + 0x16b8]
test edx, edx
jne 0x4878ec
mov eax, dword [ebp - 0x4b8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_int___thiscall_CNsInstaller::WriteReg_struct_tagSetupInfo__
mov ecx, dword [ebp - 0x4b8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::CreateShortcuts_struct_tagSetupInfo__
mov edx, dword [ebp - 0x4b8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::CreateUninstallCfg_struct_tagSetupInfo__
jmp 0x487949
lea ecx, [ebp - 0x4c8]
call fcn.00405120
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4b8]
add eax, 0x72c
push eax
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 0x16b0]
push edx
push 0x4c54bc
lea eax, [ebp - 0x4c8]
push eax
call fcn.00405800
add esp, 0x10
lea ecx, [ebp - 0x4c8]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c8]
call fcn.00405060
mov ecx, dword [ebp - 0x4b8]
add ecx, 0xe98
push ecx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::ExecScript_wchar_t_const__
mov ecx, dword [ebp - 0x4b8]
call sym.Install_silent.exe_public:_void___thiscall_CNsInstaller::ImportReg_void_
push 0
push 0x2710
push 0x7e9
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 0x4ba], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c4]
call fcn.00405060
mov al, byte [ebp - 0x4ba]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret