Function at 0x42329d
Capabilities:
Copy file
Delete file

Disassembly:
push 0x270
mov eax, 0x4b0453
call fcn.0046c44c
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.00414d4f
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.0041f8ae
test eax, eax
jne 0x4234df
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 0x423383
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.00414600
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 0x42347b
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.00414e00
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.00414d4f
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 0x4234ca
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.00414600
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 0x42394b
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.0041cc10
pop ecx
pop ecx
cmp eax, 6
jne 0x42363d
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00484bc0
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 0x42363d
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.00414600
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.00441676
test eax, eax
je 0x423602
cmp dword [ebp - 0x240], 0x800
jbe 0x423602
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.0042c2a3
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x264]
test eax, eax
jne 0x4235e5
xor esi, esi
push str.valid_after_BITs_download:
inc esi
call fcn.00402829
mov dword [ebp - 4], 0xd
jmp 0x423619
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 0x42361e
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.00414600
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x51ae20], 0
je 0x42364d
xor eax, eax
jmp 0x42394b
test esi, esi
jne 0x423815
call fcn.00452601
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, 0x51ad38
push eax
call fcn.0040d77c
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x26c]
mov ecx, 0x51ad38
push eax
call fcn.0040ce9c
mov ecx, dword [ebp - 0x278]
push ebx
push ebx
push ebx
push dword [ebp - 0x268]
push edi
call fcn.004226a6
test eax, eax
je 0x4237fb
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.00484bc0
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 0x4237cd
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.00414600
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.00441676
test eax, eax
je 0x4237b7
cmp dword [ebp - 0x240], 0x800
jbe 0x4237b7
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.0042c2a3
mov dword [ebp - 0x270], eax
pop ecx
lea ecx, [ebp - 0x268]
test eax, eax
jne 0x42379d
push str.valid_after_BB_download:
inc esi
call fcn.00402829
mov byte [ebp - 4], 0x13
jmp 0x4237db
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 0x4237e0
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov byte [ebp - 4], 0x15
jmp 0x4237db
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.00414600
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 0x423949
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 0x4238a5
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.00414e00
mov esi, ebx
jmp 0x4238d0
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.00414600
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 0x42392d
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.00414600
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.0046c3f6
ret 4