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

Disassembly:
push 0x18
mov eax, 0x46d2c8
call fcn.004529c4
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.0043eec2
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 0x420e9e
mov esi, dword [esi]
xor ebx, ebx
or edi, 0xffffffff
call main
test eax, eax
jne 0x420e41
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x420b4d
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 0x420dfe
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.00439991
add esp, 0xc
test eax, eax
jne 0x420ba3
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
je 0x420ba3
xor bl, bl
jmp 0x420ba5
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 0x420c14
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.004117b0
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 0x420c02
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
push 0xd
jmp 0x420ee6
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.0043eec2
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.00408b0c
cmp eax, 0xffffffff
je 0x420db3
inc eax
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call main
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.00407768
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 0x420d00
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.004117b0
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 0x420e8f
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x420e8f
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
jne 0x420d65
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.004117b0
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 0x420ced
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
push dword [ebp + 0xc]
call main
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00407768
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 0x420da1
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
jmp 0x420ee7
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.004117b0
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 0x420df7
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
jmp 0x420e8f
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.004117b0
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 0x420bf8
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.004117b0
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 0x420e8c
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 0x420ee7
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.004117b0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
cmp dword [ebp - 0x10], edi
je 0x420ed9
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.00452a9c
ret 0xc