Function at 0x4234a0
Capabilities:
Copy file
Delete file

Disassembly:
push 0x4bc
mov eax, 0x4ad26b
call fcn.004696cc
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.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x4b8]
push 0
push 2
pop ecx
call fcn.00414cf1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea edi, [ebx + 0x10]
push edi
push str.UpgradeManifestPath
call fcn.0041f7e3
test eax, eax
jne 0x42350f
inc eax
jmp 0x4239f8
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.0041cb70
push 0x250
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00481b00
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 0x423697
push str.download_success_with_BITs:
lea ecx, [ebp - 0x4b8]
call fcn.00402829
push esi
push edi
push 2
lea edx, [ebp - 0x4b8]
mov dword [ebp - 4], 1
pop ecx
call fcn.004145c0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.00443fea
test eax, eax
je 0x42365b
cmp dword [ebp - 0x240], 0x800
jbe 0x42365b
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.0042f189
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x4b8]
test ebx, ebx
jne 0x423606
push str.valid_after_BITs_download:
inc esi
call fcn.00402829
push 2
pop eax
push ebx
mov dword [ebp - 4], eax
mov ecx, eax
push edi
jmp 0x423678
push str.invalid_after_BITs_download:
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 3
push ebx
push edi
lea edx, [ebp - 0x4b8]
inc ecx
call fcn.004145c0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push ebx
push str.Signature_Validation_Error
mov ecx, 0x515e58
call fcn.0040a240
jmp 0x423697
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4b8]
call fcn.00402829
push 0
push edi
push 2
mov dword [ebp - 4], 4
pop ecx
lea edx, [ebp - 0x4b8]
call fcn.004145c0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x515f40], 0
je 0x4236a7
xor eax, eax
jmp 0x4239f8
test esi, esi
jne 0x4238a1
call fcn.0044f841
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 4], 5
call fcn.00402829
lea eax, [ebp - 0x4b8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x4c4]
mov ecx, 0x515e58
push eax
call fcn.0040d67c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c4]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x4b8]
mov ecx, 0x515e58
push eax
call fcn.0040cd9c
mov ecx, dword [ebp - 0x4c0]
push 1
push esi
push esi
push esi
push dword [ebp - 0x4bc]
push edi
call fcn.00422827
test eax, eax
je 0x423887
push 0x250
lea eax, [ebp - 0x4b0]
push esi
push eax
call fcn.00481b00
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 0x423858
push str.download_success_with_BB:
call fcn.00402829
push esi
push edi
push 2
lea edx, [ebp - 0x4bc]
mov byte [ebp - 4], 7
pop ecx
call fcn.004145c0
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str..msi
mov ecx, edi
call fcn.00443fea
test eax, eax
je 0x423842
cmp dword [ebp - 0x490], 0x800
jbe 0x423842
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.0042f189
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x4bc]
test ebx, ebx
jne 0x4237f0
push str.valid_after_BB_download:
inc esi
call fcn.00402829
mov byte [ebp - 4], 8
jmp 0x423866
push str.invalid_after_BB_download:
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 9
push ebx
push edi
lea edx, [ebp - 0x4bc]
inc ecx
call fcn.004145c0
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push ebx
push str.Signature_Validation_Error
mov ecx, 0x515e58
call fcn.0040a240
jmp 0x423887
push str.not_msi_or_invalid_size:
lea ecx, [ebp - 0x4bc]
call fcn.00402829
mov byte [ebp - 4], 0xa
jmp 0x423866
push str.not_found_after_BB_download:
call fcn.00402829
mov byte [ebp - 4], 0xb
push 0
push edi
push 2
lea edx, [ebp - 0x4bc]
pop ecx
call fcn.004145c0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4bc]
lea ecx, [ecx - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4b8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
je 0x4239f6
mov eax, dword [ebp - 0x4c0]
add eax, 0xc
push str.UpgradeManifest.msi
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.00402459
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 0x423951
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0x4c8]
push str.Copy_Manifest
push eax
call fcn.004023f1
push str._failed:
push eax
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 0xd
push eax
call fcn.00402459
add esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x4c8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor ecx, ecx
lea edx, [ebp - 0x4c0]
push esi
inc ecx
call fcn.00414dc6
pop ecx
lea eax, [ebp - 0x4b1]
mov byte [ebp - 0x4b1], 0
push eax
push esi
push str.Transfer_Manifest_Failed
mov ecx, 0x515e58
call fcn.0040a240
xor esi, esi
jmp 0x42397e
push str.Transfered:
lea ecx, [ebp - 0x4c0]
call fcn.00402829
push 0
lea eax, [ebp - 0x4c4]
mov byte [ebp - 4], 0x10
push eax
push 2
lea edx, [ebp - 0x4c0]
pop ecx
call fcn.004145c0
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c0]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4239da
push str.failed_to_cleanup_file:
lea ecx, [ebp - 0x4c8]
call fcn.00402829
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.004145c0
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c8]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x4c4]
mov ecx, edi
push eax
call fcn.00402e14
mov ecx, dword [ebp - 0x4c4]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, esi
call fcn.00469676
ret 4