Function at 0x425fa8
Capabilities:
Copy file
Delete file

Disassembly:
push 0x274
mov eax, 0x4b06ae
call fcn.0046c66c
mov esi, ecx
mov dword [ebp - 0x278], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x268]
push str.DownloadUpgradeManifest...
mov dword [ebp - 0x26c], eax
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x268]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00417741
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea edi, [esi + 0x10]
push edi
push str.UpgradeManifestPath
call fcn.004221ce
test eax, eax
jne 0x426206
lea eax, [esi + 0xc]
push str.UpgradeManifest.msi
push eax
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x274]
push eax
call fcn.00402459
add esp, 0xc
mov dword [ebp - 4], 1
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42608e
push str.cleanup_old_Manifest_file_return_code:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x274]
xor ecx, ecx
push eax
lea edx, [ebp - 0x268]
inc ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
push dword [ebp - 0x274]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4261a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x27c]
push str.Transfer_local_Manifest
push eax
call fcn.004023f1
push str._to_destination_folder
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
push eax
call fcn.00402459
mov byte [ebp - 4], 4
push dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004024b8
push str._failed:
push eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 5
push eax
call fcn.00402459
add esp, 0x30
mov ecx, dword [ebp - 0x280]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x270]
push esi
inc ecx
call fcn.004177f2
pop ecx
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x519e58
call fcn.00409e80
push str.Cannot_continue_Upgrade
lea ecx, [ebp - 0x268]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 0xa
pop ecx
call fcn.00417741
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4261f1
push str.Transfer_succes:
lea ecx, [ebp - 0x268]
call fcn.00402829
push ebx
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0xb
push eax
push 2
lea edx, [ebp - 0x268]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x274]
mov ecx, edi
push eax
call fcn.00402e14
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
jmp 0x42679e
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push 0xea60
mov esi, ebx
mov dword [ebp - 0x268], 1
push eax
mov edx, dword [edx]
mov ecx, edi
mov dword [ebp - 0x274], esi
call fcn.0041f510
pop ecx
pop ecx
cmp eax, 6
je 0x426259
lea eax, [ebp - 0x261]
push eax
push dword [ebp - 0x268]
push str.BITS_Upgrade_Manifest
jmp 0x42639c
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00484ac0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x4263e9
push str.download_success_with_BITs:
lea ecx, [ebp - 0x268]
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x268]
mov dword [ebp - 4], 0xc
pop ecx
call fcn.00417010
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.004444d5
test eax, eax
je 0x4263ae
cmp dword [ebp - 0x240], 0x800
jbe 0x4263ae
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push ebx
push str.BITS_Upgrade_Manifest
mov ecx, 0x519e58
call fcn.00409e80
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.0042f1d5
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x268]
test eax, eax
jne 0x426350
xor esi, esi
inc esi
push str.valid_after_BITs_download:
mov dword [ebp - 0x274], esi
call fcn.00402829
mov dword [ebp - 4], 0xd
jmp 0x4263c5
push str.invalid_after_BITs_download:
call fcn.00402829
mov dword [ebp - 4], 0xe
lea edx, [ebp - 0x268]
push dword [ebp - 0x270]
xor ecx, ecx
push edi
inc ecx
call fcn.00417010
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x261]
push eax
push dword [ebp - 0x270]
push str.Signature_Validation_Error
mov ecx, 0x519e58
mov byte [ebp - 0x261], bl
call fcn.00409e80
jmp 0x4263e9
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov dword [ebp - 4], 0xf
push ebx
push edi
push 2
lea edx, [ebp - 0x268]
pop ecx
call fcn.00417010
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x519f40], 0
je 0x4263f9
xor eax, eax
jmp 0x42679e
test esi, esi
jne 0x42664a
call fcn.004527d1
push eax
lea ecx, [ebp - 0x268]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0x10
call fcn.00402829
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x270]
mov esi, 0x519e58
push eax
mov ecx, esi
call fcn.0040d25c
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
call fcn.0040c982
push str.WinINet_Upgrade_Manifest
lea ecx, [ebp - 0x270]
call fcn.00402829
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x278]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x26c]
push edi
call fcn.00425317
mov byte [ebp - 4], 0x10
mov esi, eax
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402e64
test esi, esi
je 0x42662a
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00484ac0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
lea ecx, [ebp - 0x26c]
cmp esi, 0xffffffff
je 0x4265fc
push str.download_success_with_BB:
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x26c]
mov byte [ebp - 4], 0x13
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.004444d5
test eax, eax
je 0x4265e6
cmp dword [ebp - 0x240], 0x800
jbe 0x4265e6
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.0042f1d5
mov esi, eax
pop ecx
lea ecx, [ebp - 0x26c]
test esi, esi
jne 0x426595
push str.valid_after_BB_download:
inc esi
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x26c]
mov byte [ebp - 4], 0x14
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x426630
push str.invalid_after_BB_download:
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0x15
push esi
push edi
lea edx, [ebp - 0x26c]
inc ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x519e58
call fcn.00409e80
jmp 0x42662a
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x26c]
call fcn.00402829
mov byte [ebp - 4], 0x16
jmp 0x42660a
push str.not_found_after_BB_download:
call fcn.00402829
mov byte [ebp - 4], 0x17
push ebx
push edi
push 2
lea edx, [ebp - 0x26c]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x274]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
je 0x42679c
mov eax, dword [ebp - 0x278]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00402459
add esp, 0xc
push ebx
mov dword [ebp - 4], 0x18
push dword [ebp - 0x270]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4266f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x27c]
push str.Copy_Manifest
push eax
call fcn.004023f1
push str._failed:
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x19
push eax
call fcn.00402459
add esp, 0x18
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x278]
push esi
inc ecx
call fcn.004177f2
pop ecx
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x519e58
call fcn.00409e80
mov esi, ebx
jmp 0x426724
push str.Transferred:
lea ecx, [ebp - 0x278]
call fcn.00402829
push ebx
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0x1c
push eax
push 2
lea edx, [ebp - 0x278]
pop ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 0x18
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 0x426780
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x280]
call fcn.00402829
mov byte [ebp - 4], 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
lea edx, [ebp - 0x280]
push edi
inc ecx
call fcn.00417010
pop ecx
pop ecx
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x280]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x270]
mov ecx, edi
push eax
call fcn.00402e14
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.0046c616
ret 4