Function at 0x421ced
Capabilities:
Copy file
Delete file

Disassembly:
push 0x270
mov eax, 0x4acbf3
call fcn.00468fdc
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.004137d1
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.0041e330
test eax, eax
jne 0x421f2f
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 0x421dd3
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.004130a0
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 0x421ecb
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.00413882
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.004137d1
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 0x421f1a
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.004130a0
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 0x42239b
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.0041b690
pop ecx
pop ecx
cmp eax, 6
jne 0x42208d
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00481750
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 0x42208d
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.004130a0
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.0043f9e3
test eax, eax
je 0x422052
cmp dword [ebp - 0x240], 0x800
jbe 0x422052
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.0042ab6c
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x264]
test eax, eax
jne 0x422035
xor esi, esi
push str.valid_after_BITs_download:
inc esi
call fcn.00402829
mov dword [ebp - 4], 0xd
jmp 0x422069
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 0x42206e
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.004130a0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x514e18], 0
je 0x42209d
xor eax, eax
jmp 0x42239b
test esi, esi
jne 0x422265
call fcn.0044f181
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, 0x514d30
push eax
call fcn.0040c21c
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x26c]
mov ecx, 0x514d30
push eax
call fcn.0040b93d
mov ecx, dword [ebp - 0x278]
push ebx
push ebx
push ebx
push dword [ebp - 0x268]
push edi
call fcn.004210f6
test eax, eax
je 0x42224b
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00481750
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 0x42221d
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.004130a0
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.0043f9e3
test eax, eax
je 0x422207
cmp dword [ebp - 0x240], 0x800
jbe 0x422207
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.0042ab6c
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x268]
test eax, eax
jne 0x4221ed
push str.valid_after_BB_download:
inc esi
call fcn.00402829
mov byte [ebp - 4], 0x13
jmp 0x42222b
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 0x422230
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov byte [ebp - 4], 0x15
jmp 0x42222b
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.004130a0
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 0x422399
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 0x4222f5
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.00413882
mov esi, ebx
jmp 0x422320
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.004130a0
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 0x42237d
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.004130a0
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.00468f86
ret 4