Function at 0x49a860
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa654
mov eax, dword fs:[0]
push eax
mov eax, 0x3218
call fcn.00479690
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x31bc], ecx
movzx eax, byte [0x4e4bb4]
test eax, eax
je 0x49a8a7
xor eax, eax
jmp 0x49b1b5
mov byte [0x4e4bb4], 1
mov ecx, dword [ebp - 0x31bc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x31bc]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x31bc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x26c
call fcn.00416970
mov dword [ebp - 0x31d8], 0x19000
mov ecx, dword [ebp - 0x31d8]
push ecx
call fcn.0047912d
add esp, 4
mov dword [ebp - 0x3224], eax
mov edx, dword [ebp - 0x3224]
mov dword [ebp - 0x31cc], edx
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::constructor_void_
mov dword [ebp - 4], 0
push 0x50
mov eax, dword [ebp - 0x31d8]
push eax
mov ecx, dword [ebp - 0x31cc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_int___thiscall_CNsNet::GetUrlInfo_wchar_t_const___char___int__int_
mov dword [ebp - 0x31f8], eax
cmp dword [ebp - 0x31f8], 0
je 0x49a986
mov eax, dword [ebp - 0x31bc]
cmp dword [eax + 0x460], 0
je 0x49a986
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_int___thiscall_CNsNet::GetInfoLen_void_
mov dword [ebp - 0x31fc], eax
mov ecx, dword [ebp - 0x31fc]
push ecx
mov edx, dword [ebp - 0x31cc]
push edx
call sym.Install_adv.exe_void___cdecl_EasyEncode_char___int_
add esp, 8
cmp dword [ebp - 0x31f8], 0
je 0x49a9a8
mov eax, dword [ebp - 0x31cc]
push eax
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_private:_bool___thiscall_CNsUpdate::CheckInfo_char_const__
movzx ecx, al
test ecx, ecx
jne 0x49a9fd
mov edx, dword [ebp - 0x31d8]
push edx
mov eax, dword [ebp - 0x31cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_private:_bool___thiscall_CNsUpdate::GetInfoEx_wchar_t_const___char___unsigned_int_
mov byte [ebp - 0x31c5], al
movzx edx, byte [ebp - 0x31c5]
test edx, edx
jne 0x49a9fd
mov dword [ebp - 0x3200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x3200]
jmp 0x49b1b5
xor ecx, ecx
mov eax, dword [ebp - 0x31d8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047912d
add esp, 4
mov dword [ebp - 0x3204], eax
mov eax, dword [ebp - 0x3204]
mov dword [ebp - 0x31e0], eax
mov ecx, dword [ebp - 0x31d8]
push ecx
mov edx, dword [ebp - 0x31e0]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x31cc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x31cc]
mov dword [ebp - 0x3208], ecx
mov edx, dword [ebp - 0x3208]
push edx
call fcn.00479128
add esp, 4
mov eax, dword [ebp - 0x31e0]
push eax
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::Parse_wchar_t_const__
mov ecx, dword [ebp - 0x31e0]
mov dword [ebp - 0x320c], ecx
mov edx, dword [ebp - 0x320c]
push edx
call fcn.00479128
add esp, 4
lea eax, [ebp - 0x27e0]
push eax
push 0x4c7c5c
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
push str.disable
lea ecx, [ebp - 0x27e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49ab7a
push 0x3e8
push 0
lea edx, [ebp - 0x3f8]
push edx
call fcn.004307d0
add esp, 0xc
lea eax, [ebp - 0x3f8]
push eax
push str.DMsg
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
lea ecx, [ebp - 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x49ab73
lea ecx, [ebp - 0x31b8]
call fcn.0040e260
mov byte [ebp - 4], 1
push 1
push 9
push 8
push 0xc8
push 0x12c
push 0xa
push 0
call sym.Install_adv.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
add eax, 0x212
push eax
lea edx, [ebp - 0x3f8]
push edx
call sym.Install_adv.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x31b8]
call fcn.0040e9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x31b8]
call fcn.0040e490
push 0
call fcn.004368e1
push 0x4c7c88
lea ecx, [ebp - 0x27e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x49abcd
cmp dword [ebp + 0xc], 0
je 0x49ab9f
push 0
push 0
push 1
call dword [ebp + 0xc]
mov byte [0x4e4bb4], 0
mov dword [ebp - 0x3210], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x3210]
jmp 0x49b1b5
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_private:_void___thiscall_CNsUpdate::CheckSetup_void_
lea edx, [ebp - 0x7e0]
push edx
push 0x4c7c90
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t__
lea eax, [ebp - 0x7e0]
push eax
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_private:_void___thiscall_CNsUpdate::CheckTask_wchar_t_const__
mov dword [ebp - 0x31f0], 0
push str.File
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeCount_wchar_t_const__
mov dword [ebp - 0x31ec], eax
cmp dword [ebp + 0xc], 0
je 0x49ac46
mov ecx, dword [ebp - 0x31ec]
push ecx
mov edx, dword [ebp - 0x31f0]
push edx
push 2
call dword [ebp + 0xc]
mov dword [ebp - 0x31e8], 0
mov dword [ebp - 0x31d0], 0
mov dword [ebp - 0x31e4], 0
jmp 0x49ac75
mov eax, dword [ebp - 0x31e4]
add eax, 1
mov dword [ebp - 0x31e4], eax
mov ecx, dword [ebp - 0x31e4]
cmp ecx, dword [ebp - 0x31ec]
jge 0x49b12d
mov edx, dword [ebp - 0x31bc]
cmp dword [edx], 0
je 0x49ace9
mov eax, dword [ebp - 0x31bc]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x31bc]
mov dword [ecx + 8], 1
cmp dword [ebp + 0xc], 0
je 0x49acbb
push 0
push 0
push 4
call dword [ebp + 0xc]
mov byte [0x4e4bb4], 0
mov dword [ebp - 0x3214], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x3214]
jmp 0x49b1b5
lea edx, [ebp - 0x31d0]
push edx
lea eax, [ebp - 0x27e0]
push eax
push 0x4c7ca4
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea ecx, [ebp - 0x27e0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x49ad23
jmp 0x49ac66
lea edx, [ebp - 0x7e0]
push edx
lea ecx, [ebp - 0x31dc]
call fcn.004093e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x27e0]
push eax
lea ecx, [ebp - 0x31dc]
call fcn.004155d0
lea ecx, [ebp - 0x31d0]
push ecx
lea edx, [ebp - 0x27e0]
push edx
push str.SavePath
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea eax, [ebp - 0x27e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x49ad94
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x31dc]
call fcn.004093c0
jmp 0x49ac66
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x31c4]
call fcn.004093e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x27e0]
push edx
lea ecx, [ebp - 0x31c4]
call fcn.004155d0
lea eax, [ebp - 0x31d0]
push eax
lea ecx, [ebp - 0x27e0]
push ecx
push str.RealPath
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea edx, [ebp - 0x31c4]
push edx
lea ecx, [ebp - 0x31d4]
call fcn.00409480
mov byte [ebp - 4], 4
mov byte [ebp - 0x31bd], 0
lea eax, [ebp - 0x27e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x49aea3
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x31d4]
call fcn.00409300
lea edx, [ebp - 0x27e0]
push edx
lea ecx, [ebp - 0x31d4]
call fcn.004155d0
mov byte [ebp - 0x31bd], 1
push 0x410
push 0
lea eax, [ebp - 0x2db0]
push eax
call fcn.004307d0
add esp, 0xc
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x2db0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x31d4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea edx, [ebp - 0x2ba8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2db0]
push eax
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x26c
call fcn.00423540
lea ecx, [ebp - 0x31d0]
push ecx
lea edx, [ebp - 0x27e0]
push edx
push str.Size
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
lea eax, [ebp - 0x27e0]
push eax
call fcn.0043ae24
add esp, 4
mov dword [ebp - 0x31f4], eax
lea ecx, [ebp - 0x31d0]
push ecx
lea edx, [ebp - 0x27e0]
push edx
push 0x4c7ce8
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
mov eax, dword [ebp - 0x31f4]
push eax
lea ecx, [ebp - 0x27e0]
push ecx
lea ecx, [ebp - 0x31d4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_public:_int___thiscall_CNsUpdate::VerifyFile_wchar_t_const___wchar_t_const___int_
test eax, eax
jne 0x49b05c
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_NsDeleteFileEx_wchar_t_const__
add esp, 4
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0x31dc]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x278
call sym.Install_adv.exe_public:_int___thiscall_CNsDownload::GetHttpFile_wchar_t_const___wchar_t_const___int__void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double___int_
mov eax, dword [ebp - 0x31e8]
add eax, 1
mov dword [ebp - 0x31e8], eax
mov ecx, dword [ebp - 0x31f4]
push ecx
lea edx, [ebp - 0x27e0]
push edx
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_public:_int___thiscall_CNsUpdate::VerifyFile_wchar_t_const___wchar_t_const___int_
test eax, eax
jne 0x49b044
mov eax, dword [ebp - 0x31bc]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x31bc]
mov dword [ecx + 0xc], 1
cmp dword [ebp + 0xc], 0
je 0x49afd7
push 0
push 0
push 5
call dword [ebp + 0xc]
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [0x4e4bb4], 0
mov dword [ebp - 0x3218], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x31d4]
call fcn.004093c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x31c4]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x31dc]
call fcn.004093c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x3218]
jmp 0x49b1b5
movzx edx, byte [ebp - 0x31bd]
test edx, edx
je 0x49b05c
mov eax, dword [ebp - 0x31bc]
mov dword [eax + 4], 1
cmp dword [ebp + 0xc], 0
je 0x49b075
mov ecx, dword [ebp - 0x31ec]
push ecx
mov edx, dword [ebp - 0x31f0]
push edx
push 2
call dword [ebp + 0xc]
lea eax, [ebp - 0x31d0]
push eax
lea ecx, [ebp - 0x27e0]
push ecx
push 0x4c7cf0
mov ecx, dword [ebp - 0x31bc]
add ecx, 0x45c
call sym.Install_adv.exe_public:_int___thiscall_CNsXml::GetXmlNodeValue_wchar_t_const___wchar_t___int__
push str.hide
lea edx, [ebp - 0x27e0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49b0cb
push 0
push 0
push 0
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
jmp 0x49b0fb
push str.show
lea eax, [ebp - 0x27e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49b0fb
push 5
push 0
push 0
lea ecx, [ebp - 0x31c4]
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x31d4]
call fcn.004093c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x31c4]
call fcn.004093c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x31dc]
call fcn.004093c0
jmp 0x49ac66
cmp dword [ebp - 0x31e8], 0
jle 0x49b17d
cmp dword [ebp + 0xc], 0
je 0x49b145
push 0
push 0
push 3
call dword [ebp + 0xc]
mov ecx, dword [ebp - 0x31bc]
call sym.Install_adv.exe_private:_void___thiscall_CNsUpdate::SaveUpdateCfg_void_
mov byte [0x4e4bb4], 0
mov dword [ebp - 0x321c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x321c]
jmp 0x49b1b5
cmp dword [ebp + 0xc], 0
je 0x49b18c
push 0
push 0
push 1
call dword [ebp + 0xc]
mov byte [0x4e4bb4], 0
mov dword [ebp - 0x3220], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29a0]
call sym.Install_adv.exe_public:_void___thiscall_CNsNet::destructor_void_
mov eax, dword [ebp - 0x3220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 0xc