Function at 0x4225bd
Capabilities:
Copy file
Delete file

Disassembly:
push 0x270
mov eax, 0x4aed73
call fcn.0046afbc
mov esi, ecx
mov dword [ebp - 0x278], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x26c]
push str.DownloadUpgradeManifest...
mov dword [ebp - 0x268], eax
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x26c]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414071
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea edi, [esi + 0x10]
push edi
push str.UpgradeManifestPath
call fcn.0041ebce
test eax, eax
jne 0x4227ff
lea eax, [esi + 0xc]
push str.UpgradeManifest.msi
push eax
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00402459
add esp, 0xc
mov dword [ebp - 4], 1
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4226a3
push str.cleanup_old_Manifest_file_return_code:
lea ecx, [ebp - 0x274]
call fcn.00402829
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x26c]
xor ecx, ecx
push eax
lea edx, [ebp - 0x274]
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x274]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
push dword [ebp - 0x26c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42279b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x270]
push str.Transfer_local_Manifest
push eax
call fcn.004023f1
push str._to_destination_folder
push eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 3
push eax
call fcn.00402459
mov byte [ebp - 4], 4
push dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004024b8
push str._failed:
push eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 5
push eax
call fcn.00402459
add esp, 0x30
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x264]
push esi
inc ecx
call fcn.00414122
lea ecx, [ebp - 0x274]
mov dword [esp], str.Cannot_continue_Upgrade
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x274]
mov byte [ebp - 4], 0xa
pop ecx
call fcn.00414071
pop ecx
mov ecx, dword [ebp - 0x274]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4227ea
push str.Transfer_succes:
lea ecx, [ebp - 0x264]
call fcn.00402829
push ebx
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 0xb
push eax
push 2
lea edx, [ebp - 0x264]
pop ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x26c]
mov ecx, edi
push eax
call fcn.00402e14
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
jmp 0x422c6b
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x270]
push 0xea60
push eax
mov ecx, edi
mov dword [ebp - 0x270], 1
mov edx, dword [edx]
mov esi, ebx
call fcn.0041bf30
pop ecx
pop ecx
cmp eax, 6
jne 0x42295d
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00483730
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x42295d
push str.download_success_with_BITs:
lea ecx, [ebp - 0x264]
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x264]
mov dword [ebp - 4], 0xc
pop ecx
call fcn.00413940
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.00440356
test eax, eax
je 0x422922
cmp dword [ebp - 0x240], 0x800
jbe 0x422922
mov ecx, dword [edi]
or edx, 0xffffffff
push str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
call fcn.0042b4d8
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x264]
test eax, eax
jne 0x422905
xor esi, esi
push str.valid_after_BITs_download:
inc esi
call fcn.00402829
mov dword [ebp - 4], 0xd
jmp 0x422939
push str.invalid_after_BITs_download:
call fcn.00402829
mov dword [ebp - 4], 0xe
xor ecx, ecx
push dword [ebp - 0x270]
inc ecx
push edi
jmp 0x42293e
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x264]
call fcn.00402829
mov dword [ebp - 4], 0xf
push ebx
push edi
push 2
pop ecx
lea edx, [ebp - 0x264]
call fcn.00413940
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x518e18], 0
je 0x42296d
xor eax, eax
jmp 0x422c6b
test esi, esi
jne 0x422b35
call fcn.00451171
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0x10
call fcn.00402829
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x264]
mov ecx, 0x518d30
push eax
call fcn.0040cabc
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x26c]
mov ecx, 0x518d30
push eax
call fcn.0040c1df
mov ecx, dword [ebp - 0x278]
push ebx
push ebx
push ebx
push dword [ebp - 0x268]
push edi
call fcn.004219c6
test eax, eax
je 0x422b1b
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00483730
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
lea ecx, [ebp - 0x268]
cmp eax, 0xffffffff
je 0x422aed
push str.download_success_with_BB:
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 0x12
pop ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.00440356
test eax, eax
je 0x422ad7
cmp dword [ebp - 0x240], 0x800
jbe 0x422ad7
mov ecx, dword [edi]
or edx, 0xffffffff
push str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
call fcn.0042b4d8
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x268]
test eax, eax
jne 0x422abd
push str.valid_after_BB_download:
inc esi
call fcn.00402829
mov byte [ebp - 4], 0x13
jmp 0x422afb
push str.invalid_after_BB_download:
call fcn.00402829
mov byte [ebp - 4], 0x14
xor ecx, ecx
push dword [ebp - 0x270]
inc ecx
push edi
jmp 0x422b00
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov byte [ebp - 4], 0x15
jmp 0x422afb
push str.not_found_after_BB_download:
call fcn.00402829
mov byte [ebp - 4], 0x16
push ebx
push edi
push 2
pop ecx
lea edx, [ebp - 0x268]
call fcn.00413940
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
je 0x422c69
mov eax, dword [ebp - 0x278]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00402459
add esp, 0xc
push ebx
mov dword [ebp - 4], 0x17
push dword [ebp - 0x274]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x422bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x270]
push str.Copy_Manifest
push eax
call fcn.004023f1
push str._failed:
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x18
push eax
call fcn.00402459
add esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x278]
push esi
inc ecx
call fcn.00414122
mov esi, ebx
jmp 0x422bf0
push str.Transferred:
lea ecx, [ebp - 0x278]
call fcn.00402829
push ebx
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0x1b
push eax
push 2
lea edx, [ebp - 0x278]
pop ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422c4d
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x27c]
call fcn.00402829
mov byte [ebp - 4], 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
lea edx, [ebp - 0x27c]
push edi
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x274]
mov ecx, edi
push eax
call fcn.00402e14
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.0046af66
ret 4