Function at 0x491a20
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0ef7
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x4eb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9e8], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00433560
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x218]
push edx
call sym.Install_vip.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
lea edx, [ebp - 0xa0c]
push edx
push 0x4cbeb4
push 0x1f41
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0xa00], eax
cmp dword [ebp - 0xa00], 0
jne 0x491adf
push 0x15c8
push 0
mov eax, dword [ebp - 0x9e8]
add eax, 0x24
push eax
call fcn.00433560
add esp, 0xc
xor al, al
jmp 0x4921ff
push 0x4cbebc
lea ecx, [ebp - 0x218]
push ecx
call fcn.0043c75a
add esp, 8
mov dword [ebp - 0x9ec], eax
cmp dword [ebp - 0x9ec], 0
jne 0x491b09
xor al, al
jmp 0x4921ff
push 0
mov edx, dword [ebp - 0xa0c]
push edx
mov eax, dword [ebp - 0x9ec]
push eax
call fcn.0043f340
add esp, 0xc
push 0x15c8
push 0
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x24
push ecx
call fcn.00433560
add esp, 0xc
mov edx, dword [ebp - 0x9ec]
push edx
push 1
push 0x15c8
mov eax, dword [ebp - 0x9e8]
add eax, 0x24
push eax
call fcn.0043eee4
add esp, 0x10
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_private:_void___thiscall_CNsInstaller::InitPath_struct_tagSetupInfo__
mov edx, dword [ebp - 0x9e8]
add edx, 0x24
push edx
push 0x4cbec4
push 0x4cbed8
call sym.Install_vip.exe_void___cdecl_DoReport_wchar_t_const___wchar_t_const___wchar_t_const__
add esp, 0xc
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::CheckValid_void_
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_private:_void___thiscall_CNsInstaller::InstallComponent_void_
push 0x4cbed4
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x16b0
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::CheckDir_wchar_t_const___wchar_t_const__
mov dword [ebp - 0xa08], 0
lea eax, [ebp - 0xa08]
push eax
push 0x4cbf1c
push 0x1f5b
call sym.Install_vip.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0xa00], eax
cmp dword [ebp - 0xa00], 0
je 0x491d9b
cmp dword [ebp - 0xa08], 0
je 0x491d9b
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0x194
push 0
lea edx, [ebp - 0x3ac]
push edx
call fcn.00433560
add esp, 0xc
mov eax, dword [ebp - 0x9ec]
push eax
push 1
push 0x194
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.0043eee4
add esp, 0x10
mov edx, dword [ebp - 0x9ec]
push edx
lea eax, [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_private:_bool___thiscall_CNsInstaller::ExtractFile_struct_tagPacketInfo___struct__iobuf__
push 0x194
push 0
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.00433560
add esp, 0xc
mov edx, dword [ebp - 0x9ec]
push edx
push 1
push 0x194
lea eax, [ebp - 0x3ac]
push eax
call fcn.0043eee4
add esp, 0x10
push str.SPLIT
lea ecx, [ebp - 0x3ac]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x491cb8
cmp dword [ebp - 0x21c], 0
je 0x491cbf
xor al, al
jmp 0x4921ff
mov edx, dword [ebp - 0x9ec]
push edx
call fcn.0043c850
add esp, 4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x9f4]
call fcn.004096a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9f4]
call fcn.0040d410
push 0x4cbf30
push 0x4cbf38
lea ecx, [ebp - 0x9f4]
call fcn.0040d470
lea ecx, [ebp - 0x9f4]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_vip.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x9e8]
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
push 0x4cbf44
lea ecx, [ebp - 0x9f4]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0043c75a
add esp, 8
mov dword [ebp - 0x9ec], eax
cmp dword [ebp - 0x9ec], 0
jne 0x491d87
mov byte [ebp - 0x9ed], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9f4]
call fcn.00409680
mov al, byte [ebp - 0x9ed]
jmp 0x4921ff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9f4]
call fcn.00409680
jmp 0x491dd2
mov eax, dword [ebp - 0xa0c]
cdq
mov ecx, dword [ebp - 0x9e8]
mov esi, dword [ecx + 0x10]
sub esi, eax
mov eax, dword [ecx + 0x14]
sbb eax, edx
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x9e8]
mov dword [edx + 0x18], 0x15c8
mov dword [edx + 0x1c], 0
mov dword [ebp - 0xa1c], 0x100000
mov dword [ebp - 0xa18], 0
push 0
push 0x190
mov eax, dword [ebp - 0xa18]
push eax
mov ecx, dword [ebp - 0xa1c]
push ecx
call fcn.0047a940
mov ecx, dword [ebp - 0x9e8]
mov dword [ebp - 0xa10], ecx
mov dword [ebp - 0xa24], eax
mov dword [ebp - 0xa20], edx
mov edx, dword [ebp - 0xa10]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 0xa20]
jg 0x491e4b
jl 0x491e3c
mov ecx, dword [ebp - 0xa10]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xa24]
jae 0x491e4b
mov eax, dword [ebp - 0x9e8]
mov dword [eax + 0x20], 0
jmp 0x491ec8
push 0
push 0x400
mov ecx, dword [ebp - 0xa18]
push ecx
mov edx, dword [ebp - 0xa1c]
push edx
call fcn.0047a940
push 0
push 4
push edx
push eax
call fcn.0047a940
mov ecx, dword [ebp - 0x9e8]
mov dword [ebp - 0xa14], ecx
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa28], edx
mov edx, dword [ebp - 0xa14]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 0xa28]
jg 0x491ebb
jl 0x491eac
mov ecx, dword [ebp - 0xa14]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xa2c]
jae 0x491ebb
mov eax, dword [ebp - 0x9e8]
mov dword [eax + 0x20], 1
jmp 0x491ec8
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x20], 2
mov edx, dword [ebp - 0x9ec]
push edx
call fcn.0043f015
add esp, 4
test eax, eax
jne 0x491fb4
mov eax, dword [ebp - 0x9e8]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x491ef4
xor al, al
jmp 0x4921ff
push 0x194
push 0
lea edx, [ebp - 0x540]
push edx
call fcn.00433560
add esp, 0xc
mov eax, dword [ebp - 0x9ec]
push eax
push 1
push 0x194
lea ecx, [ebp - 0x540]
push ecx
call fcn.0043eee4
add esp, 0x10
push 0x4cbf4c
lea edx, [ebp - 0x540]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x491f4a
cmp dword [ebp - 0x3b0], 0
jne 0x491f4a
jmp 0x491fb4
cmp dword [ebp - 0x3b0], 0xffffffff
jne 0x491f6c
push 0
lea eax, [ebp - 0x540]
push eax
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::CheckDir_wchar_t_const___wchar_t_const__
jmp 0x491ec8
mov ecx, dword [ebp - 0x9e8]
mov edx, dword [ecx + 0x18]
add edx, 0x194
mov eax, dword [ecx + 0x1c]
adc eax, 0
mov ecx, dword [ebp - 0x9e8]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x9ec]
push edx
lea eax, [ebp - 0x540]
push eax
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_private:_bool___thiscall_CNsInstaller::ExtractFile_struct_tagPacketInfo___struct__iobuf__
movzx ecx, al
test ecx, ecx
jne 0x491faf
jmp 0x491fb4
jmp 0x491ec8
mov edx, dword [ebp - 0x9ec]
push edx
call fcn.0043c850
add esp, 4
lea ecx, [ebp - 0x9fc]
call fcn.004097c0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x9e8]
add eax, 0x72c
push eax
mov ecx, dword [ebp - 0x9e8]
mov edx, dword [ecx + 0x16b0]
push edx
push 0x4cbf54
lea eax, [ebp - 0x9fc]
push eax
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0x9fc]
call sym.Install_vip.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 0x4920f2
lea ecx, [ebp - 0x9f8]
call fcn.004097c0
mov byte [ebp - 4], 2
call sym.Install_vip.exe_int___cdecl_isEnglish_void_
test eax, eax
je 0x492046
push 0x4cbf60
lea ecx, [ebp - 0x9f8]
call fcn.004095c0
jmp 0x492056
push 0x4cbfd8
lea ecx, [ebp - 0x9f8]
call fcn.004095c0
lea ecx, [ebp - 0x9e4]
call fcn.0040dbe0
mov byte [ebp - 4], 3
push 1
push 9
push 8
push 0xa0
push 0x12c
push 6
push 0
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
lea ecx, [ebp - 0x9f8]
call sym.Install_vip.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x9e4]
call fcn.0040e350
call sym.Install_vip.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_vip.exe_public:_void___thiscall_CNsApp::ExitApp_void_
mov byte [ebp - 0x9ee], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9e4]
call fcn.0040de10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9f8]
call fcn.00409680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9fc]
call fcn.00409680
mov al, byte [ebp - 0x9ee]
jmp 0x4921ff
mov edx, dword [ebp - 0x9e8]
movzx eax, byte [edx + 0x16b8]
test eax, eax
jne 0x492144
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x24
push ecx
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_int___thiscall_CNsInstaller::WriteReg_struct_tagSetupInfo__
mov edx, dword [ebp - 0x9e8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::CreateShortcuts_struct_tagSetupInfo__
mov eax, dword [ebp - 0x9e8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::CreateUninstallCfg_struct_tagSetupInfo__
jmp 0x4921a2
lea ecx, [ebp - 0xa04]
call fcn.004097c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9e8]
add ecx, 0x72c
push ecx
mov edx, dword [ebp - 0x9e8]
mov eax, dword [edx + 0x16b0]
push eax
push 0x4cbfcc
lea ecx, [ebp - 0xa04]
push ecx
call fcn.00409d70
add esp, 0x10
lea ecx, [ebp - 0xa04]
call sym.Install_vip.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], 1
lea ecx, [ebp - 0xa04]
call fcn.00409680
mov edx, dword [ebp - 0x9e8]
add edx, 0xe98
push edx
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::ExecScript_wchar_t_const__
mov ecx, dword [ebp - 0x9e8]
call sym.Install_vip.exe_public:_void___thiscall_CNsInstaller::ImportReg_void_
push 0
push 0x2710
push 0x7e9
mov eax, dword [ebp - 0x9e8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 0x9ef], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9fc]
call fcn.00409680
mov al, byte [ebp - 0x9ef]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e9de
mov esp, ebp
pop ebp
ret