Function at 0x420ba8
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0x18
mov eax, 0x46d85b
call fcn.00452eb4
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x18]
call fcn.004013a1
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
push edi
push 0x80
push 3
push edi
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
je 0x420f77
mov esi, dword [esi]
xor ebx, ebx
or edi, 0xffffffff
call fcn.00421f01
test eax, eax
jne 0x420f1a
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x420c26
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
mov dword [ebp - 0x10], edi
call sub.msi.dll_MsiOpenProductW
cmp eax, edi
jne 0x420ed7
push str.ProductCode
lea ecx, [ebp + 0x10]
call fcn.004012e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
call fcn.00439e90
add esp, 0xc
test eax, eax
jne 0x420c7c
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
je 0x420c7c
xor bl, bl
jmp 0x420c7e
mov bl, 1
push 2
pop edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
test bl, bl
je 0x420ced
push esi
lea eax, [ebp + 0x10]
push str.failed_to_get_ProductCode_from
push eax
call fcn.0040107c
add esp, 0xc
push 0xd
push eax
push edi
mov byte [ebp - 4], 4
call fcn.00411806
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x420cdb
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
push 0xd
jmp 0x420fbf
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0043f3c0
push eax
lea ecx, [ebp + 0x10]
call fcn.004013a1
mov byte [ebp - 4], 8
mov esi, dword [ebp + 8]
push 0x5c
mov ecx, esi
call fcn.00408b57
cmp eax, 0xffffffff
je 0x420e8c
inc eax
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040741a
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.004077b3
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401025
add esp, 0xc
mov byte [ebp - 4], 0xb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420dd9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push str.will_not_move__directory_already_exists:
push eax
call fcn.0040107c
add esp, 0xc
mov esi, 0xb7
push esi
push eax
push edi
mov byte [ebp - 4], 0xc
call fcn.00411806
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x420f68
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x420f68
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x420e3e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push str.MoveFile_failed:
push eax
call fcn.0040107c
add esp, 0xc
mov ebx, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push edi
call fcn.00411806
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], 0
jmp 0x420dc6
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
push dword [ebp + 0xc]
call fcn.0040724c
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004077b3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x420e7a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x420fc0
push esi
lea eax, [ebp - 0x20]
push str.failed_to_process_Extract_Dir:
push eax
call fcn.0040107c
add esp, 0xc
push edi
push eax
push edi
mov byte [ebp - 4], 0xa
call fcn.00411806
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], ebx
je 0x420ed0
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
jmp 0x420f68
push esi
lea eax, [ebp + 0x10]
push str.failed_to_open_database:
push eax
call fcn.0040107c
add esp, 0xc
push 0xd
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411806
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
jmp 0x420cd1
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push str.file_not_valid:
push eax
call fcn.0040107c
add esp, 0xc
push 0xd
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00411806
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x420f65
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
jmp 0x420fc0
push esi
lea eax, [ebp + 0x10]
push str.failed_to_lock_file:
push eax
call fcn.0040107c
add esp, 0xc
push 2
push eax
push 2
mov byte [ebp - 4], 7
call fcn.00411806
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], edi
je 0x420fb2
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
push 2
pop eax
call fcn.00452f8c
ret 0xc