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

Disassembly:
push 0x18
mov eax, 0x460067
call fcn.00447d5b
xor esi, esi
mov dword [ebp - 0x20], esi
call fcn.00434582
push eax
lea ecx, [ebp - 0x18]
call fcn.0040210b
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
push esi
push 0x80
push 3
push esi
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
inc edi
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 2
je 0x41dc40
mov esi, dword [ebx]
or ebx, 0xffffffff
call fcn.0041e29e
test eax, eax
je 0x41dbe5
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
je 0x41d916
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 ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
jne 0x41dba4
push str.ProductCode
lea ecx, [ebp - 0x1c]
call fcn.00402060
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
call fcn.004329f8
add esp, 0xc
test eax, eax
jne 0x41d96c
mov eax, dword [ebp - 0x18]
mov byte [ebp + 0x13], 0
cmp dword [eax - 0xc], ebx
jne 0x41d970
mov byte [ebp + 0x13], 1
push 2
pop ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp byte [ebp + 0x13], 0
je 0x41d9df
push esi
lea eax, [ebp + 0x10]
push str.failed_to_get_ProductCode_from
push eax
call fcn.00401dd1
add esp, 0xc
push 0xd
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41d9cd
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
push 0xd
jmp 0x41dc88
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
call fcn.00434582
push eax
lea ecx, [ebp + 0x10]
call fcn.0040210b
mov byte [ebp - 4], 8
mov esi, dword [ebp + 8]
push 0x5c
mov ecx, esi
call fcn.0040a4e4
cmp eax, 0xffffffff
je 0x41db58
inc eax
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040a573
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.00409158
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401d7a
add esp, 0xc
mov byte [ebp - 4], 0xb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dac9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push str.will_not_move__directory_already_exists:
push eax
call fcn.00401dd1
add esp, 0xc
mov esi, 0xb7
push esi
push eax
push ebx
mov byte [ebp - 4], 0xc
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], 0
je 0x41dc31
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41dc31
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41db09
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push str.MoveFile_failed:
push eax
call fcn.00401dd1
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push ebx
call fcn.00411fad
mov ecx, dword [ebp + 0xc]
jmp 0x41da91
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
push dword [ebp + 0xc]
call fcn.00408dd5
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00409158
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], 0
je 0x41db46
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x41dc89
push esi
lea eax, [ebp - 0x20]
push str.failed_to_process_Extract_Dir:
push eax
call fcn.00401dd1
add esp, 0xc
push ebx
push eax
push ebx
mov byte [ebp - 4], 0xa
call fcn.00411fad
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], 0
je 0x41db9d
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, ebx
jmp 0x41dc31
push esi
lea eax, [ebp + 0x10]
push str.failed_to_open_database:
push eax
call fcn.00401dd1
add esp, 0xc
push 0xd
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jmp 0x41d9c3
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push str.file_not_valid:
push eax
call fcn.00401dd1
add esp, 0xc
push 0xd
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41dc2e
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
jmp 0x41dc89
push ebx
lea eax, [ebp + 0x10]
push str.failed_to_lock_file:
push eax
call fcn.00401dd1
add esp, 0xc
push 2
push eax
push 2
mov byte [ebp - 4], 7
call fcn.00411fad
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x10], esi
je 0x41dc7b
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
push 2
pop eax
call fcn.00447e33
ret 0xc