Function at 0x45f670
Capabilities:
Check if file exists
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474dc4
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xabc], ecx
lea eax, [ebp - 0x4fc]
push eax
mov ecx, dword [ebp - 0xabc]
call sym.Install_adv.exe_public:_bool___thiscall_CNsInstaller::GetCollectionInfo_struct_tagCollectionInfo__
movzx ecx, al
test ecx, ecx
jne 0x45f6da
push 0
push 0xffffffffffffffff
push 0x7e9
mov edx, dword [ebp - 0xabc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x45fd14
lea ecx, [ebp - 0x4e8]
push ecx
push str.install_collection
push 0x48ad40
call sym.Install_adv.exe_void___cdecl_DoReport_wchar_t_const___wchar_t_const___wchar_t_const__
add esp, 0xc
push 0x48ad2c
push 0x1f63
call sym.Install_adv.exe_int___cdecl_NsResSize_int__wchar_t_const__
add esp, 8
mov dword [ebp - 0xae0], eax
cmp dword [ebp - 0xae0], 0
jg 0x45f734
push 0
push 0xffffffffffffffff
push 0x7e9
mov edx, dword [ebp - 0xabc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x45fd14
mov ecx, dword [ebp - 0xae0]
push ecx
call fcn.00450b8d
add esp, 4
mov dword [ebp - 0xaec], eax
mov edx, dword [ebp - 0xaec]
mov dword [ebp - 0xad4], edx
mov eax, dword [ebp - 0xad4]
push eax
push 0x48ad84
push 0x1f63
call sym.Install_adv.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0xae8], 0
mov ecx, dword [ebp - 0xad4]
mov dword [ebp - 0xac8], ecx
push 4
mov edx, dword [ebp - 0xac8]
push edx
lea eax, [ebp - 0xae8]
push eax
call fcn.0042be50
add esp, 0xc
mov ecx, dword [ebp - 0xac8]
add ecx, 4
mov dword [ebp - 0xac8], ecx
lea edx, [ebp - 0xaf4]
push edx
push 0x48ad8c
push 0x1f41
call sym.Install_adv.exe_int___cdecl_NsResGetBuff_int__wchar_t_const___void__
add esp, 0xc
mov dword [ebp - 0xaf0], eax
cmp dword [ebp - 0xaf0], 0
jne 0x45f7f3
push 0
push 0xffffffffffffffff
push 0x7e9
mov eax, dword [ebp - 0xabc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x45fd14
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0042b9d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x48ad94
lea ecx, [ebp - 0x420]
push ecx
call fcn.004346e6
add esp, 8
mov dword [ebp - 0xab8], eax
cmp dword [ebp - 0xab8], 0
jne 0x45f860
push 0
push 0xffffffffffffffff
push 0x7e9
mov edx, dword [ebp - 0xabc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor al, al
jmp 0x45fd14
push 0
mov ecx, dword [ebp - 0xaf4]
push ecx
mov edx, dword [ebp - 0xab8]
push edx
call fcn.004370ea
add esp, 0xc
mov dword [ebp - 0xae4], 0
mov eax, dword [ebp - 0xab8]
push eax
push 1
push 4
lea ecx, [ebp - 0xae4]
push ecx
call fcn.00436cd4
add esp, 0x10
cmp dword [ebp - 0xae4], 0
je 0x45f94f
mov edx, dword [ebp - 0xab8]
push edx
call fcn.004347ba
add esp, 4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xad0]
call fcn.004095e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xad0]
call fcn.0040d800
push 0x48ad9c
push 0x48ad34
lea ecx, [ebp - 0xad0]
call fcn.0040d860
push 0x48ada4
lea ecx, [ebp - 0xad0]
call fcn.00409710
push eax
call fcn.004346e6
add esp, 8
mov dword [ebp - 0xab8], eax
cmp dword [ebp - 0xab8], 0
jne 0x45f93d
mov byte [ebp - 0xac1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad0]
call fcn.004095a0
mov al, byte [ebp - 0xac1]
jmp 0x45fd14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xad0]
call fcn.004095a0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0042b9d0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx ecx, word [ebp + eax*2 - 0x21a]
cmp ecx, 0x5c
jne 0x45f9a5
push 0x48adac
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x45f9b7
push str.hf_collection_setup.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [ebp - 0xacc], 0
jmp 0x45f9d2
mov ecx, dword [ebp - 0xacc]
add ecx, 1
mov dword [ebp - 0xacc], ecx
mov edx, dword [ebp - 0xacc]
cmp edx, dword [ebp - 0xae8]
jge 0x45fccc
push 0x5b8
mov eax, dword [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xab4]
push ecx
call fcn.0042be50
add esp, 0xc
mov edx, dword [ebp - 0xac8]
add edx, 0x5b8
mov dword [ebp - 0xac8], edx
cmp dword [ebp - 0x4ec], 0
jne 0x45fa92
mov eax, dword [ebp - 0xacc]
push eax
lea ecx, [ebp - 0xb08]
push ecx
mov ecx, dword [ebp - 0xabc]
add ecx, 0xcb8
call fcn.0041d920
mov ecx, eax
call fcn.0041d8b0
movzx edx, al
test edx, edx
jne 0x45fa92
cmp dword [ebp - 0x9ec], 0
jne 0x45fa8d
xorps xmm0, xmm0
movlpd qword [ebp - 0xb00], xmm0
mov eax, dword [ebp - 0xab8]
push eax
push 1
push 8
lea ecx, [ebp - 0xb00]
push ecx
call fcn.00436cd4
add esp, 0x10
push 1
mov edx, dword [ebp - 0xb00]
push edx
mov eax, dword [ebp - 0xab8]
push eax
call fcn.004370ea
add esp, 0xc
jmp 0x45f9c3
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xac0]
call fcn.004096c0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x754]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x45fafb
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xac0]
call fcn.004094f0
push 0x48ae10
push str..exe
lea ecx, [ebp - 0xac0]
call fcn.0040d860
lea ecx, [ebp - 0xac0]
call fcn.00409710
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x9ec], 0
je 0x45fb88
push 1
push sym.Install_adv.exe_private:_static_void___stdcall_CNsInstaller::DownNotify2_int__wchar_t_const___long_long___int64___long_long___int64___double_
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x9ac]
push edx
call sym.Install_adv.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
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_
lea ecx, [ebp - 0xac0]
call fcn.00412710
movzx eax, al
test eax, eax
jne 0x45fb65
push 1
push sym.Install_adv.exe_private:_static_void___stdcall_CNsInstaller::DownNotify2_int__wchar_t_const___long_long___int64___long_long___int64___double_
push 0
lea ecx, [ebp - 0xac0]
call fcn.00409710
push eax
lea ecx, [ebp - 0x9ac]
push ecx
call sym.Install_adv.exe_public:_static_class_CNsDownload____cdecl_CNsDownload::Instance_void_
mov ecx, eax
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 edx, dword [ebp - 0xacc]
push edx
push 0xfffffffffffffffe
push 0x7e9
mov eax, dword [ebp - 0xabc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x45fc55
mov edx, dword [ebp - 0xacc]
push edx
push 0xfffffffffffffffe
push 0x7e9
mov eax, dword [ebp - 0xabc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xorps xmm0, xmm0
movlpd qword [ebp - 0xadc], xmm0
mov edx, dword [ebp - 0xab8]
push edx
push 1
push 8
lea eax, [ebp - 0xadc]
push eax
call fcn.00436cd4
add esp, 0x10
mov ecx, dword [ebp - 0xab8]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0xad8]
push eax
mov ecx, dword [ebp - 0xadc]
push ecx
mov ecx, dword [ebp - 0xabc]
call sym.Install_adv.exe_private:_bool___thiscall_CNsInstaller::ExtractCollection_long_long___int64___wchar_t_const___struct__iobuf__
lea ecx, [ebp - 0xac0]
call fcn.00412710
movzx edx, al
test edx, edx
jne 0x45fc55
xorps xmm0, xmm0
movlpd qword [ebp - 0xadc], xmm0
mov eax, dword [ebp - 0xab8]
push eax
push 1
push 8
lea ecx, [ebp - 0xadc]
push ecx
call fcn.00436cd4
add esp, 0x10
mov edx, dword [ebp - 0xab8]
push edx
lea ecx, [ebp - 0xac0]
call fcn.00409710
push eax
mov eax, dword [ebp - 0xad8]
push eax
mov ecx, dword [ebp - 0xadc]
push ecx
mov ecx, dword [ebp - 0xabc]
call sym.Install_adv.exe_private:_bool___thiscall_CNsInstaller::ExtractCollection_long_long___int64___wchar_t_const___struct__iobuf__
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fcb5
push 5
push 1
lea eax, [ebp - 0x9e8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sym.Install_adv.exe_int___cdecl_DoRun_wchar_t_const___wchar_t_const___int__int_
add esp, 0x10
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xac0]
call fcn.00409710
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45fcb5
lea ecx, [ebp - 0xac0]
call fcn.00409710
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac0]
call fcn.004095a0
jmp 0x45f9c3
mov eax, dword [ebp - 0xad4]
mov dword [ebp - 0xaf8], eax
mov ecx, dword [ebp - 0xaf8]
push ecx
call fcn.00450b88
add esp, 4
mov edx, dword [ebp - 0xab8]
push edx
call fcn.004347ba
add esp, 4
push 0
push 0x2710
push 0x7e9
mov eax, dword [ebp - 0xabc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret