Function at 0x425d78
Capabilities:
Copy file
Delete file

Disassembly:
push 0x26c
mov eax, 0x4aebc6
call fcn.0046ac3c
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x26c]
push str.DownloadUpgradeManifest...
mov dword [ebp - 0x268], eax
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x26c]
push 0
push 2
pop ecx
call fcn.004174f1
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.00421fae
test eax, eax
jne 0x425de7
inc eax
jmp 0x426352
push dword [edi]
call dword [sym.imp.wininet.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x26c]
push 0xea60
push eax
mov ecx, edi
mov dword [ebp - 0x26c], 1
mov edx, dword [edx]
xor ebx, ebx
call fcn.0041f2f0
pop ecx
pop ecx
cmp eax, 6
je 0x425e44
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], bl
push eax
push dword [ebp - 0x26c]
mov ecx, 0x515e58
push str.BITS_Upgrade_Manifest
call main
jmp 0x425fc6
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004830a0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x425fc0
push str.download_success_with_BITs:
lea ecx, [ebp - 0x26c]
call fcn.00402829
push 0
push edi
push 2
lea edx, [ebp - 0x26c]
mov dword [ebp - 4], 1
pop ecx
call fcn.00416dc0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
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.004440ab
test eax, eax
je 0x425f84
cmp dword [ebp - 0x240], 0x800
jbe 0x425f84
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], 0
push eax
push 0
push str.BITS_Upgrade_Manifest
mov ecx, 0x515e58
call main
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 main
mov esi, eax
pop ecx
lea ecx, [ebp - 0x26c]
test esi, esi
jne 0x425f2f
xor ebx, ebx
push str.valid_after_BITs_download:
inc ebx
call fcn.00402829
push 2
pop eax
push esi
mov dword [ebp - 4], eax
mov ecx, eax
push edi
jmp 0x425fa1
push str.invalid_after_BITs_download:
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 3
push esi
push edi
lea edx, [ebp - 0x26c]
inc ecx
call fcn.00416dc0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], 0
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x515e58
call main
jmp 0x425fc0
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x26c]
call fcn.00402829
push 0
push edi
push 2
mov dword [ebp - 4], 4
pop ecx
lea edx, [ebp - 0x26c]
call fcn.00416dc0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x274]
cmp dword [0x515f40], 0
je 0x425fd6
xor eax, eax
jmp 0x426352
test ebx, ebx
jne 0x4261fb
call fcn.00450db1
push eax
lea ecx, [ebp - 0x26c]
call main
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 5
call fcn.00402829
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x270]
mov ecx, 0x515e58
push eax
call fcn.0040d2ec
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x26c]
mov ecx, 0x515e58
push eax
call main
push str.WinINet_Upgrade_Manifest
lea ecx, [ebp - 0x270]
call fcn.00402829
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 7
push eax
xor eax, eax
mov ecx, esi
push eax
push eax
push eax
push dword [ebp - 0x268]
push edi
call fcn.004250e7
mov byte [ebp - 4], 5
mov esi, eax
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
je 0x4261e1
push 0x250
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.004830a0
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 - 0x268]
cmp esi, 0xffffffff
je 0x4261b2
push str.download_success_with_BB:
call fcn.00402829
push ebx
push edi
push 2
lea edx, [ebp - 0x268]
mov byte [ebp - 4], 8
pop ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x268]
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.004440ab
test eax, eax
je 0x42619c
cmp dword [ebp - 0x240], 0x800
jbe 0x42619c
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 main
mov esi, eax
pop ecx
lea ecx, [ebp - 0x268]
test esi, esi
jne 0x42614a
push str.valid_after_BB_download:
inc ebx
call fcn.00402829
mov byte [ebp - 4], 9
jmp 0x4261c0
push str.invalid_after_BB_download:
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0xa
push esi
push edi
lea edx, [ebp - 0x268]
inc ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], 0
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x515e58
call main
jmp 0x4261e1
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x268]
call fcn.00402829
mov byte [ebp - 4], 0xb
jmp 0x4261c0
push str.not_found_after_BB_download:
call fcn.00402829
mov byte [ebp - 4], 0xc
push 0
push edi
push 2
lea edx, [ebp - 0x268]
pop ecx
call fcn.00416dc0
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 ebx, ebx
je 0x426350
mov eax, dword [ebp - 0x274]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00402459
add esp, 0xc
push 0
mov dword [ebp - 4], 0xd
push dword [ebp - 0x270]
push dword [edi]
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x4262ab
call dword [sym.imp.kernel32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x278]
push str.Copy_Manifest
push eax
call fcn.004023f1
push str._failed:
push eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0xe
push eax
call fcn.00402459
add esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x268]
push esi
inc ecx
call fcn.004175da
pop ecx
lea eax, [ebp - 0x261]
mov byte [ebp - 0x261], 0
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x515e58
call main
xor ebx, ebx
jmp 0x4262d8
push str.Transfered:
lea ecx, [ebp - 0x268]
call fcn.00402829
push 0
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0x11
push eax
push 2
lea edx, [ebp - 0x268]
pop ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [edi]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x426334
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x278]
call fcn.00402829
mov byte [ebp - 4], 0x12
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
xor ecx, ecx
lea edx, [ebp - 0x278]
push edi
inc ecx
call fcn.00416dc0
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x270]
mov ecx, edi
push eax
call main
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, ebx
call fcn.0046abe6
ret 4