Function at 0x422547
Capabilities:
Copy file
Delete file

Disassembly:
push 0x4bc
mov eax, 0x48890b
call fcn.00464e7c
mov ebx, ecx
mov dword [ebp - 0x4c0], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4b8]
push str.DownloadUpgradeManifest...
mov dword [ebp - 0x4bc], eax
call fcn.0040279b
and dword [ebp - 4], 0
lea edx, [ebp - 0x4b8]
push 0
push 2
pop ecx
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea edi, [ebx + 0x10]
push edi
push str.UpgradeManifestPath
call fcn.0041e894
test eax, eax
jne 0x4225b6
inc eax
jmp 0x422a9f
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x4b8]
push 0xea60
push eax
mov ecx, edi
mov dword [ebp - 0x4b8], 1
mov edx, dword [edx]
xor esi, esi
call fcn.0041bc50
push 0x250
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00466990
add esp, 0x14
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42273e
push str.download_success_with_BITs:
lea ecx, [ebp - 0x4b8]
call fcn.0040279b
push esi
push edi
push 2
lea edx, [ebp - 0x4b8]
mov dword [ebp - 4], 1
pop ecx
call fcn.00413900
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402def
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.0043f971
test eax, eax
je 0x422702
cmp dword [ebp - 0x240], 0x800
jbe 0x422702
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.0042d48a
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x4b8]
test ebx, ebx
jne 0x4226ad
push str.valid_after_BITs_download:
inc esi
call fcn.0040279b
push 2
pop eax
push ebx
mov dword [ebp - 4], eax
mov ecx, eax
push edi
jmp 0x42271f
push str.invalid_after_BITs_download:
call fcn.0040279b
xor ecx, ecx
mov dword [ebp - 4], 3
push ebx
push edi
lea edx, [ebp - 0x4b8]
inc ecx
call fcn.00413900
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push ebx
push str.Signature_Validation_Error
mov ecx, 0x4e1f90
call fcn.004098f0
jmp 0x42273e
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4b8]
call fcn.0040279b
push 0
push edi
push 2
mov dword [ebp - 4], 4
pop ecx
lea edx, [ebp - 0x4b8]
call fcn.00413900
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402def
cmp dword [0x4e2078], 0
je 0x42274e
xor eax, eax
jmp 0x422a9f
test esi, esi
jne 0x422948
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00402824
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 4], 5
call fcn.0040279b
lea eax, [ebp - 0x4b8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x4c4]
mov ecx, 0x4e1f90
push eax
call fcn.0040c9da
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c4]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x4b8]
mov ecx, 0x4e1f90
push eax
call fcn.0040c24b
mov ecx, dword [ebp - 0x4c0]
push 1
push esi
push esi
push esi
push dword [ebp - 0x4bc]
push edi
call fcn.004218ce
test eax, eax
je 0x42292e
push 0x250
lea eax, [ebp - 0x4b0]
push esi
push eax
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x4b0]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
lea ecx, [ebp - 0x4bc]
cmp ebx, 0xffffffff
je 0x4228ff
push str.download_success_with_BB:
call fcn.0040279b
push esi
push edi
push 2
lea edx, [ebp - 0x4bc]
mov byte [ebp - 4], 7
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402def
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.0043f971
test eax, eax
je 0x4228e9
cmp dword [ebp - 0x490], 0x800
jbe 0x4228e9
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.0042d48a
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x4bc]
test ebx, ebx
jne 0x422897
push str.valid_after_BB_download:
inc esi
call fcn.0040279b
mov byte [ebp - 4], 8
jmp 0x42290d
push str.invalid_after_BB_download:
call fcn.0040279b
xor ecx, ecx
mov byte [ebp - 4], 9
push ebx
push edi
lea edx, [ebp - 0x4bc]
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push ebx
push str.Signature_Validation_Error
mov ecx, 0x4e1f90
call fcn.004098f0
jmp 0x42292e
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4bc]
call fcn.0040279b
mov byte [ebp - 4], 0xa
jmp 0x42290d
push str.not_found_after_BB_download:
call fcn.0040279b
mov byte [ebp - 4], 0xb
push 0
push edi
push 2
lea edx, [ebp - 0x4bc]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402def
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402def
test esi, esi
je 0x422a9d
mov eax, dword [ebp - 0x4c0]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.004023e9
add esp, 0xc
push 0
mov dword [ebp - 4], 0xc
push dword [ebp - 0x4c4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4229f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x4c8]
push str.Copy_Manifest
push eax
call fcn.00402381
push str._failed:
push eax
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 0xd
push eax
call fcn.004023e9
add esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x4c8]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor ecx, ecx
lea edx, [ebp - 0x4c0]
push esi
inc ecx
call fcn.00413f25
pop ecx
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x4e1f90
call fcn.004098f0
xor esi, esi
jmp 0x422a25
push str.Transfered:
lea ecx, [ebp - 0x4c0]
call fcn.0040279b
push 0
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 0x10
push eax
push 2
lea edx, [ebp - 0x4c0]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c0]
lea ecx, [ecx - 0x10]
call fcn.00402def
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x422a81
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x4c8]
call fcn.0040279b
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
lea edx, [ebp - 0x4c8]
push edi
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c8]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x4c4]
mov ecx, edi
push eax
call fcn.00402d9f
mov ecx, dword [ebp - 0x4c4]
add ecx, 0xfffffff0
call fcn.00402def
mov eax, esi
call fcn.00464e26
ret 4