Function at 0x425d28
Capabilities:
Copy file
Delete file

Disassembly:
push 0x274
mov eax, 0x4b03ae
call fcn.0046c36c
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.004174d1
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.00421f5e
test eax, eax
jne 0x425f86
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 0x425e0e
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.00416da0
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 0x425f22
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.00417582
pop ecx
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x518e58
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.004174d1
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 0x425f71
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.00416da0
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 0x42651e
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.0041f2a0
pop ecx
pop ecx
cmp eax, 6
je 0x425fd9
lea eax, [ebp - 0x261]
push eax
push dword [ebp - 0x268]
push str.BITS_Upgrade_Manifest
jmp 0x42611c
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.004847f0
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 0x426169
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.00416da0
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.00444255
test eax, eax
je 0x42612e
cmp dword [ebp - 0x240], 0x800
jbe 0x42612e
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push ebx
push str.BITS_Upgrade_Manifest
mov ecx, 0x518e58
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.0042ef54
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x268]
test eax, eax
jne 0x4260d0
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 0x426145
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.00416da0
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, 0x518e58
mov byte [ebp - 0x261], bl
call fcn.00409e80
jmp 0x426169
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.00416da0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x518f40], 0
je 0x426179
xor eax, eax
jmp 0x42651e
test esi, esi
jne 0x4263ca
call fcn.004524e1
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, 0x518e58
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.00425097
mov byte [ebp - 4], 0x10
mov esi, eax
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402e64
test esi, esi
je 0x4263aa
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.004847f0
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 0x42637c
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.00416da0
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.00444255
test eax, eax
je 0x426366
cmp dword [ebp - 0x240], 0x800
jbe 0x426366
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.0042ef54
mov esi, eax
pop ecx
lea ecx, [ebp - 0x26c]
test esi, esi
jne 0x426315
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.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x4263b0
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.00416da0
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, 0x518e58
call fcn.00409e80
jmp 0x4263aa
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x26c]
call fcn.00402829
mov byte [ebp - 4], 0x16
jmp 0x42638a
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.00416da0
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 0x42651c
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 0x426478
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.00417582
pop ecx
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x518e58
call fcn.00409e80
mov esi, ebx
jmp 0x4264a4
push str.Transfered:
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.00416da0
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 0x426500
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.00416da0
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.0046c316
ret 4