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

Disassembly:
push 0x18
mov eax, 0x46257d
call fcn.00449ec2
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.004366fe
push eax
lea ecx, [ebp - 0x18]
call fcn.00411d53
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 0x80000000
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 0x41d5ae
mov esi, dword [esi]
xor ebx, ebx
or edi, 0xffffffff
call fcn.0041e379
test eax, eax
jne 0x41d551
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x41d25d
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 0x41d50e
push str.ProductCode
lea ecx, [ebp + 0x10]
call fcn.0040130b
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.00433c79
add esp, 0xc
test eax, eax
jne 0x41d2b3
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
je 0x41d2b3
xor bl, bl
jmp 0x41d2b5
mov bl, 1
push 2
pop edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
test bl, bl
je 0x41d324
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.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41d312
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
push 0xd
jmp 0x41d5f6
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.004366fe
push eax
lea ecx, [ebp + 0x10]
call fcn.00411d53
mov byte [ebp - 4], 8
mov esi, dword [ebp + 8]
push 0x5c
mov ecx, esi
call fcn.00407707
cmp eax, 0xffffffff
je 0x41d4c3
inc eax
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00407796
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.004063a1
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004017c4
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 0x41d410
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.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], ebx
je 0x41d59f
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x41d59f
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41d475
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.0040fcf3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], 0
jmp 0x41d3fd
push dword [ebp - 0x14]
mov eax, dword [esi]
push eax
push dword [ebp + 0xc]
call fcn.0040601e
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004063a1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], ebx
je 0x41d4b1
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x41d5f7
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.0040fcf3
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], ebx
je 0x41d507
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov esi, edi
jmp 0x41d59f
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.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
jmp 0x41d308
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.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41d59c
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push 0xd
pop esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, esi
jmp 0x41d5f7
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.0040fcf3
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
cmp dword [ebp - 0x10], edi
je 0x41d5e9
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
push 2
pop eax
call fcn.00449f9a
ret 0xc