Function at 0x420e14
Capabilities:
Copy file
Delete file

Disassembly:
push 0x4c4
mov eax, 0x479059
call fcn.0045bedd
mov ebx, ecx
mov edi, edx
push str.DownloadUpgradeManifest...
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x4cc], edi
call fcn.004020a6
xor esi, esi
push esi
lea eax, [ebp - 0x4bc]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
add ebx, 0x10
push ebx
push str.UpgradeManifestPath
mov dword [ebp - 0x4c0], ebx
call fcn.0041d6a7
test eax, eax
jne 0x420e8a
inc eax
jmp 0x42142b
push dword [ebx]
call dword [sym.imp.wininet.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi]
push 0xea60
push eax
push ebx
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4bc], 1
call fcn.0041ac5f
add esp, 0xc
push 0x24c
lea eax, [ebp - 0x4ac]
push esi
push eax
mov dword [ebp - 0x4b0], esi
call fcn.00459cf0
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x4b0]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x421056
push str.download_success_with_BITs:
lea ecx, [ebp - 0x4bc]
call fcn.004020a6
push esi
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push edi
call dword [sym.imp.kernel32.dll_FindClose]
push str..msi
mov ecx, ebx
call fcn.0043d115
pop ecx
test eax, eax
je 0x42101a
cmp dword [ebp - 0x490], 0x800
jbe 0x42101a
mov esi, dword [ebx]
mov ebx, 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
or edi, 0xffffffff
call main
mov esi, eax
lea ecx, [ebp - 0x4bc]
test esi, esi
jne 0x420fb7
push str.valid_after_BITs_download:
mov dword [ebp - 0x4c8], 1
call fcn.004020a6
push 2
pop eax
push esi
push dword [ebp - 0x4c0]
lea ecx, [ebp - 0x4bc]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x421010
push str.invalid_after_BITs_download:
call fcn.004020a6
push esi
push dword [ebp - 0x4c0]
lea eax, [ebp - 0x4bc]
push eax
push 1
mov dword [ebp - 4], 3
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x4b1]
push eax
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
mov byte [ebp - 0x4b1], 0
call fcn.0040b14d
mov ebx, dword [ebp - 0x4c0]
xor esi, esi
jmp 0x421056
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4bc]
call fcn.004020a6
push esi
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 2
mov dword [ebp - 4], 4
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [0x4c47a8], esi
je 0x421065
xor eax, eax
jmp 0x42142b
cmp dword [ebp - 0x4c8], esi
jne 0x4212ab
call fcn.0044825c
push eax
lea ecx, [ebp - 0x4bc]
call fcn.0041872d
push 0x484b78
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 4], 5
call fcn.004020a6
lea edi, [ebp - 0x4bc]
lea ecx, [ebp - 0x4b8]
mov esi, 0x4c46e8
mov byte [ebp - 4], 6
call fcn.0040e2a6
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
push eax
mov eax, esi
call fcn.0040db68
push 1
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 0x4cc]
push ebx
push dword [ebp - 0x4c4]
call fcn.0042028c
cmp eax, esi
je 0x42128b
push 0x24c
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.00459cf0
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
lea ecx, [ebp - 0x4b8]
cmp edi, 0xffffffff
je 0x42125c
push str.download_success_with_BB:
call fcn.004020a6
push esi
push ebx
lea eax, [ebp - 0x4b8]
push eax
push 2
mov byte [ebp - 4], 7
call fcn.00414e01
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push edi
call dword [sym.imp.kernel32.dll_FindClose]
push str..msi
mov ecx, ebx
call fcn.0043d115
pop ecx
test eax, eax
je 0x421246
cmp dword [ebp - 0x240], 0x800
jbe 0x421246
mov esi, dword [ebx]
mov ebx, 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
or edi, 0xffffffff
call main
mov esi, eax
lea ecx, [ebp - 0x4b8]
test esi, esi
jne 0x4211e6
push str.valid_after_BB_download:
mov dword [ebp - 0x4c8], 1
call fcn.004020a6
push esi
push dword [ebp - 0x4c0]
lea eax, [ebp - 0x4b8]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00414e01
mov ecx, dword [ebp - 0x4b8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x42123c
push str.invalid_after_BB_download:
call fcn.004020a6
push esi
push dword [ebp - 0x4c0]
lea eax, [ebp - 0x4b8]
push eax
push 1
mov byte [ebp - 4], 9
call fcn.00414e01
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x4b1]
push eax
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
mov byte [ebp - 0x4b1], 0
call fcn.0040b14d
mov ebx, dword [ebp - 0x4c0]
xor esi, esi
jmp 0x42128b
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4b8]
call fcn.004020a6
mov byte [ebp - 4], 0xa
jmp 0x42126a
push str.not_found_after_BB_download:
call fcn.004020a6
mov byte [ebp - 4], 0xb
push esi
push ebx
lea eax, [ebp - 0x4b8]
push eax
push 2
call fcn.00414e01
mov ecx, dword [ebp - 0x4b8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4bc]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x4c8], esi
je 0x421425
xor esi, esi
mov eax, dword [ebp - 0x4c4]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x4b8]
push eax
call fcn.0040adb6
add esp, 0xc
push esi
mov dword [ebp - 4], 0xc
push dword [ebp - 0x4b8]
mov eax, dword [ebx]
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x42137f
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov edi, eax
lea eax, [ebp - 0x4cc]
push str.Copy_Manifest
push eax
call fcn.00401e40
add esp, 0xc
push str._failed:
push eax
lea eax, [ebp - 0x4c4]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040adb6
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x4cc]
add ecx, 0xfffffff0
call fcn.004025d2
push edi
push 1
lea esi, [ebp - 0x4c4]
call fcn.004153a2
pop ecx
pop ecx
lea eax, [ebp - 0x4b1]
push eax
push edi
mov edi, str.Transfer_Manifest_Failed
mov ebx, 0x4c46e8
mov byte [ebp - 0x4b1], 0
call fcn.0040b14d
and dword [ebp - 0x4c8], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c4]
add ecx, 0xfffffff0
call fcn.004025d2
mov ebx, dword [ebp - 0x4c0]
jmp 0x4213be
push str.Transfered:
lea ecx, [ebp - 0x4c4]
call fcn.004020a6
push esi
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4c4]
push eax
push 2
mov byte [ebp - 4], 0x10
call fcn.00414e01
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c4]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebx]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x421409
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x4d0]
call fcn.004020a6
mov byte [ebp - 4], 0x11
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push ebx
lea eax, [ebp - 0x4d0]
push eax
push 1
call fcn.00414e01
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4d0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x4b8]
push eax
mov ecx, ebx
call fcn.00402573
mov ecx, dword [ebp - 0x4b8]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x4c8]
call fcn.0045bf60
ret