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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0608
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x4ea00c]
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_rocket.exe_public:_void___thiscall_CNsInstaller::CheckValid_void_
mov eax, dword [ebp - 0x4b8]
add eax, 0x24
push eax
push str.install
push 0x4cc018
call sym.Install_rocket.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_rocket.exe_private:_void___thiscall_CNsInstaller::InitPath_struct_tagSetupInfo__
mov ecx, dword [ebp - 0x4b8]
call sym.Install_rocket.exe_private:_void___thiscall_CNsInstaller::InstallComponent_void_
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
push 0x4cc05c
push 0x1f5a
call sym.Install_rocket.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 0x490f58
jl 0x490f51
mov ecx, dword [ebp - 0x4cc]
cmp dword [ecx + 0x10], 0
ja 0x490f58
xor al, al
jmp 0x4913d6
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00479dbd
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 0x4cc064
push 0x1f5a
call sym.Install_rocket.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0x4e4], eax
cmp dword [ebp - 0x4e4], 0
jne 0x490fe8
mov edx, dword [ebp - 0x4b8]
mov eax, dword [edx + 0x1620]
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
push ecx
call fcn.00479db8
add esp, 4
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x1620], 0
xor al, al
jmp 0x4913d6
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d0], eax
mov ecx, dword [ebp - 0x4d0]
cmp dword [ecx + 0x14], 0
jg 0x491020
jl 0x491011
mov edx, dword [ebp - 0x4d0]
cmp dword [edx + 0x10], 0x6400000
jae 0x491020
mov eax, dword [ebp - 0x4b8]
mov dword [eax + 0x20], 0
jmp 0x491065
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4d4], ecx
mov edx, dword [ebp - 0x4d4]
cmp dword [edx + 0x14], 0
jg 0x491058
jl 0x491049
mov eax, dword [ebp - 0x4d4]
cmp dword [eax + 0x10], 0x40000000
jae 0x491058
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x20], 1
jmp 0x491065
mov edx, dword [ebp - 0x4b8]
mov dword [edx + 0x20], 2
push 0x4cc06c
mov ecx, dword [ebp - 0x4b8]
add ecx, 0x16b0
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x4b8]
call sym.Install_rocket.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 0x491169
jl 0x4910d1
mov edx, dword [ebp - 0x4d8]
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x10]
jae 0x491169
mov edx, dword [ebp - 0x4b8]
movzx eax, byte [edx + 8]
test eax, eax
je 0x491117
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 0x1620]
mov dword [ebp - 0x4ec], edx
mov eax, dword [ebp - 0x4ec]
push eax
call fcn.00479db8
add esp, 4
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x1620], 0
xor al, al
jmp 0x4913d6
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_rocket.exe_private:_bool___thiscall_CNsInstaller::ExtractFileEx_struct_tagPacketInfo__
jmp 0x491087
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 0x1620]
mov dword [ebp - 0x4f4], edx
mov eax, dword [ebp - 0x4f4]
push eax
call fcn.00479db8
add esp, 4
mov ecx, dword [ebp - 0x4b8]
mov dword [ecx + 0x1620], 0
lea ecx, [ebp - 0x4c4]
call fcn.004097c0
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 0x4cc070
lea edx, [ebp - 0x4c4]
push edx
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x4c4]
call sym.Install_rocket.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 0x4912ca
lea ecx, [ebp - 0x4c0]
call fcn.004097c0
mov byte [ebp - 4], 1
call sym.Install_rocket.exe_int___cdecl_isEnglish_void_
test eax, eax
je 0x49121e
push str.Installation_failed__does_not_have_write_permission_
lea ecx, [ebp - 0x4c0]
call fcn.004095c0
jmp 0x49122e
push 0x4cc0f4
lea ecx, [ebp - 0x4c0]
call fcn.004095c0
lea ecx, [ebp - 0x4b4]
call fcn.0040c9c0
mov byte [ebp - 4], 2
push 1
push 9
push 8
push 0xa0
push 0x12c
push 6
push 0
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
lea ecx, [ebp - 0x4c0]
call sym.Install_rocket.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0040d200
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_rocket.exe_public:_void___thiscall_CNsApp::ExitApp_void_
mov byte [ebp - 0x4b9], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b4]
call fcn.0040cbf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c4]
call fcn.00409680
mov al, byte [ebp - 0x4b9]
jmp 0x4913d6
mov ecx, dword [ebp - 0x4b8]
movzx edx, byte [ecx + 0x16b8]
test edx, edx
jne 0x49131c
mov eax, dword [ebp - 0x4b8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x4b8]
call sym.Install_rocket.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_rocket.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_rocket.exe_public:_void___thiscall_CNsInstaller::CreateUninstallCfg_struct_tagSetupInfo__
jmp 0x491379
lea ecx, [ebp - 0x4c8]
call fcn.004097c0
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 0x4cc07c
lea eax, [ebp - 0x4c8]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x4c8]
call sym.Install_rocket.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.00409680
mov ecx, dword [ebp - 0x4b8]
add ecx, 0xe98
push ecx
mov ecx, dword [ebp - 0x4b8]
call sym.Install_rocket.exe_public:_void___thiscall_CNsInstaller::ExecScript_wchar_t_const__
mov ecx, dword [ebp - 0x4b8]
call sym.Install_rocket.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.00409680
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.0042e29e
mov esp, ebp
pop ebp
ret