Function at 0x4271e7
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push 0x44
mov eax, 0x47996d
call fcn.0045be74
mov ebx, ecx
xor esi, esi
push str.ExtractPatch...
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
call fcn.004020a6
push esi
lea eax, [ebp - 0x40]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
call fcn.0044825c
push eax
lea ecx, [ebp - 0x18]
call fcn.0041872d
mov byte [ebp - 4], 2
call fcn.0044825c
push eax
lea ecx, [ebp - 0x20]
call fcn.0041872d
mov byte [ebp - 4], 3
call fcn.0044825c
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041872d
mov byte [ebp - 4], 4
mov eax, dword [ebx]
add eax, 8
push eax
lea ecx, [ebp - 0x38]
call fcn.004020ea
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], esi
je 0x427283
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
mov dword [ebp - 0x14], esi
call sub.msi.dll_MsiOpenProductW
cmp eax, esi
je 0x42730b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push str.MsiOpenDatabase___failed:
push eax
call fcn.00401e40
add esp, 0xc
mov esi, 0x1fcfc
push esi
push eax
push 1
mov byte [ebp - 4], 6
call fcn.004152d1
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x14], 0
je 0x427304
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
jmp 0x427c12
push str.PatchFileName
lea ecx, [ebp - 0x40]
call fcn.004020a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 1
call fcn.00442b08
add esp, 0xc
test eax, eax
jne 0x427346
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0xd], 0
cmp dword [eax - 0xc], esi
jne 0x42734a
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004025d2
cmp byte [ebp - 0xd], 0
lea ecx, [ebp - 0x40]
je 0x42738c
push str.get_PatchFileName_property_failed
call fcn.004020a6
mov byte [ebp - 4], 8
mov esi, 0x1fcfc
push esi
lea eax, [ebp - 0x40]
push eax
push 1
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
jmp 0x4272c2
push str.PatchFileName_property:
call fcn.004020a6
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
mov byte [ebp - 4], 9
call fcn.00414e01
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push str.PatchFileSize
lea ecx, [ebp - 0x40]
call fcn.004020a6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 2
call fcn.00442b08
add esp, 0xc
test eax, eax
jne 0x4273f7
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xd], 0
cmp dword [eax - 0xc], esi
jne 0x4273fb
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.004025d2
cmp byte [ebp - 0xd], 0
lea ecx, [ebp - 0x40]
je 0x427429
push str.get_PatchFileSize_property_failed
call fcn.004020a6
mov byte [ebp - 4], 0xb
jmp 0x427373
push str.PatchFileSize_property:
call fcn.004020a6
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
mov byte [ebp - 4], 0xc
call fcn.00414e01
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x20]
call fcn.00459cd7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov dword [esp], str.PatchFileURL
call fcn.004020a6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 4
call fcn.00442b08
add esp, 0xc
test eax, eax
jne 0x4274a1
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
cmp dword [eax - 0xc], esi
jne 0x4274a5
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
cmp byte [ebp - 0xd], 0
je 0x4274d3
push str.get_PatchFileURL_property_failed
lea ecx, [ebp - 0x40]
call fcn.004020a6
mov byte [ebp - 4], 0xe
jmp 0x427373
push str.PatchFileURL_property:
lea ecx, [ebp - 0x30]
call fcn.004020a6
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.00414e01
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [ebx]
add esi, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [ebp - 0x48], esi
call fcn.00402573
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
add eax, 0x10
lea ecx, [esi + 8]
push eax
call fcn.00402573
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0xc]
push eax
call fcn.00402573
push 1
mov ecx, 0x4c4964
call fcn.0041c7e3
test eax, eax
jne 0x427ba2
push eax
mov ecx, 0x4c4964
call fcn.0041c7e3
test eax, eax
jne 0x427ba2
call fcn.0044825c
push eax
lea ecx, [ebp - 0x28]
call fcn.0041872d
push str.ArchiveName
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.004020a6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x12
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 8
call fcn.00442b08
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x4275ae
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0xd], bl
cmp dword [eax - 0xc], ebx
jne 0x4275b2
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
cmp byte [ebp - 0xd], bl
je 0x427635
push str.get_ArchiveName_property_failed
lea ecx, [ebp - 0x40]
call fcn.004020a6
mov esi, 0x1fcfc
push esi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x13
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x14], ebx
jmp 0x4272fa
push str.ArchiveName_property:
lea ecx, [ebp - 0x30]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
mov byte [ebp - 4], 0x14
call fcn.00414e01
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x30]
push eax
mov eax, 0x4c4964
call fcn.00424962
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x15
call fcn.00401656
pop ecx
pop ecx
test eax, eax
jne 0x4276d0
push str.extract_archive_failed
lea ecx, [ebp - 0x40]
call fcn.004020a6
mov esi, 0x1fbd0
push esi
lea eax, [ebp - 0x40]
push eax
push 1
mov byte [ebp - 4], 0x16
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
jmp 0x4275f1
call fcn.0044825c
push eax
lea ecx, [ebp - 0x24]
call fcn.0041872d
push ebx
mov byte [ebp - 4], 0x17
call fcn.00459264
pop ecx
push eax
call fcn.00459230
pop ecx
call fcn.00459242
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push str._s_d
push eax
call fcn.00402086
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401de9
add esp, 0x1c
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x40]
cdq
push str.IDS_ACTION_EXTRACTING
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
call fcn.004020a6
mov edi, 0x4c4c4c
lea ecx, [ebp - 0x44]
mov esi, 0x4c46e8
mov byte [ebp - 4], 0x19
call fcn.0040e2a6
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004025d2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x42497d
mov byte [0x4c465a], bl
mov byte [0x4c465b], 1
call fcn.0044bcbc
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401b2d
pop ecx
mov edi, eax
mov byte [0x4c44eb], 1
cmp esi, ebx
je 0x4277e3
mov esi, dword [esi + 0x2c]
cmp esi, ebx
je 0x4277e3
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4277e3
push str.wait_for_DummyProgressProc_thread_finished:
lea ecx, [ebp - 0x44]
call fcn.004020a6
mov byte [ebp - 4], 0x1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
call fcn.004152d1
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x24]
cmp edi, ebx
jne 0x42786e
push ebx
push ecx
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
pop ecx
pop ecx
push str.extract_Patch_failed
lea ecx, [ebp - 0x44]
call fcn.004020a6
mov esi, 0x1fbd0
push esi
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x1b
call fcn.004152d1
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
jmp 0x427607
push 0x48415c
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040adb6
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x1c
call fcn.00401de9
add esp, 0xc
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004025d2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427904
push ebx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push str.file_not_found_after_extraction:
push eax
call fcn.00401e40
add esp, 0x14
mov esi, 0x1fbd0
push esi
push eax
push 1
mov byte [ebp - 4], 0x1f
call fcn.004152d1
mov ecx, dword [ebp - 0x40]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x34]
jmp 0x42782f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401de9
add esp, 0xc
push ebx
mov byte [ebp - 4], 0x20
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42796a
push str.failed_to_copy_extracted_Patch__will_use_it_directly
lea ecx, [ebp - 0x44]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x21
call fcn.004152d1
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402573
jmp 0x427981
push ebx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041aaea
mov byte [ebp - 4], 0x22
mov ebx, dword [eax]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
call fcn.004289ab
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025d2
xor ebx, ebx
cmp esi, ebx
jne 0x427a79
push str.extracted_Patch_is_valid:
lea ecx, [ebp - 0x44]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
mov byte [ebp - 4], 0x23
call fcn.00414e01
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x44]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.00402573
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x14], ebx
jmp 0x427c06
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.0040ae5c
test eax, eax
jne 0x427a9f
push ebx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x48], esp
mov ecx, esp
push eax
call fcn.004020ea
call fcn.004423ba
pop ecx
pop ecx
lea eax, [ebp - 0xd]
push eax
mov byte [ebp - 0xd], bl
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
call fcn.0040b14d
push str.removed_extraction_folder__invalid_after_extraction:
lea ecx, [ebp - 0x44]
call fcn.004020a6
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
mov byte [ebp - 4], 0x24
call fcn.00414e01
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x44]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push str.Patch_invalid_after_extraction
lea ecx, [ebp - 0x44]
call fcn.004020a6
mov byte [ebp - 4], 0x25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1fc98
mov ecx, eax
lea edx, [ebp - 0x44]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x14], 0
je 0x427b9b
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, 0x1fbd0
jmp 0x427c12
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x44]
call fcn.004020a6
push 0
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push 2
mov byte [ebp - 4], 0x10
call fcn.00414e01
mov ecx, dword [ebp - 0x44]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [edi - 0x10]
mov dword [esi + 0x14], 1
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [ebp - 0x14], 0
je 0x427c10
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
call fcn.0045bf4c
ret