Function at 0x412c40
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x456dd1
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4731fc]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa0]
push 0xa
push edi
call fcn.0043d0a0
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x412ef7
push edi
lea ecx, [esp + 0x24]
call fcn.004031c0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x9c], ebx
call fcn.00405ba0
mov esi, eax
mov ecx, esi
mov byte [esp + 0x98], 1
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412ce4
or eax, 1
sub eax, 1
push eax
mov ecx, esi
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x44]
mov byte [esp + 0x98], bl
call fcn.00401d80
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
call fcn.00401d80
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
mov dword [esp + 0xa4], 2
mov dword [esp + 0x1c], ebx
call sub.msi.dll_MsiOpenProductW
cmp eax, ebx
je 0x412d3f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412d35
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, 0x20
jmp 0x412ef7
lea ecx, [esp + 0x68]
call fcn.00401cf0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x68]
push edx
push eax
mov byte [esp + 0xa0], 3
call fcn.00412a70
mov esi, eax
add esp, 8
cmp esi, ebx
lea ecx, [esp + 0x68]
je 0x412d8e
mov byte [esp + 0x98], 2
call fcn.00401d80
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412d87
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
jmp 0x412ef7
call fcn.00401e40
mov edi, dword [sym.imp.MSVCR80.dll__wtoi]
push eax
call edi
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412ed3
push 0x463660
call edi
add esp, 4
cmp esi, eax
jg 0x412ed3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.004105f0
push eax
push str.AdskNIWUI
push esi
call sub.msi.dll_MsiDatabaseMergeW
test eax, eax
jne 0x412e79
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.004105f0
push eax
push str.AdskNIWOverride
push esi
call sub.msi.dll_MsiDatabaseMergeW
test eax, eax
jne 0x412e79
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.004105f0
push eax
push str.AdskNiwCustomFile
push esi
call sub.msi.dll_MsiDatabaseMergeW
test eax, eax
jne 0x412e79
mov ecx, dword [esp + 0x10]
push ecx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412e3a
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x412e48
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412e56
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [esp + 0x68]
mov byte [esp + 0x98], 2
call fcn.00401d80
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412e75
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
jmp 0x412ef7
mov edx, dword [esp + 0x10]
push edx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412e91
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x412e9f
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412ead
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea ecx, [esp + 0x68]
mov byte [esp + 0x98], 2
call fcn.00401d80
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412ecc
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, 0x1f
jmp 0x412ef7
lea ecx, [esp + 0x68]
mov byte [esp + 0x98], 2
call fcn.00401d80
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412ef2
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, 0x4f
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004420bc
add esp, 0x8c
ret