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

Disassembly:
mov eax, dword [ecx + 0x44c]
sub esp, 0x108
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4108e6
mov ebp, dword [esp + 0x11c]
mov edx, dword [ebp + 4]
test edx, edx
jne 0x4106cb
mov edx, 0x445318
mov al, byte [0x469cb0]
mov ecx, 0x40
mov byte [esp + 0x14], al
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push 0
stosw word es:[edi], ax
push ecx
push 0x104
push edx
stosb byte es:[edi], al
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x14]
push edx
call ebx
cmp eax, 0xffffffff
jne 0x410714
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41076f
jmp 0x41076a
mov eax, dword [esp + 0x120]
mov edx, dword [eax + 4]
test edx, edx
jne 0x410727
mov edx, 0x445318
mov cl, byte [0x469cb0]
xor eax, eax
mov byte [esp + 0x14], cl
mov ecx, 0x40
lea edi, [esp + 0x15]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x104
push edx
call esi
lea ecx, [esp + 0x14]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x410793
mov edx, dword [esp + 0x120]
mov eax, dword [edx + 4]
test eax, eax
jne 0x41076f
mov eax, 0x445318
push eax
push str.Attempting_to_apply_transform:_File__s_does_not_exist._n
push 8
push 0x45a150
call fcn.004018d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41079f
mov eax, 0x445318
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x4107b7
mov eax, 0x445318
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
call dword [0x46a1b0]
test eax, eax
jne 0x4108a3
mov esi, dword [esp + 0x120]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4107e0
mov eax, 0x445318
mov edx, dword [esp + 0x10]
push 1
push eax
push edx
call dword [0x46a1ac]
test eax, eax
jne 0x410864
mov eax, dword [esp + 0x10]
push eax
call dword [0x46a1a8]
test eax, eax
jne 0x410832
push str.Success_Committing_Database_n
push 0x10
push 0x45a150
call fcn.004018d0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [0x46a190]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
push eax
push str.Could_not_commit_database__error__0x_x_n
push 8
push 0x45a150
call fcn.004018d0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [0x46a190]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x410870
mov ecx, 0x445318
push eax
push ecx
push str.Error_applying_transform__s__0x_x_n
push 8
push 0x45a150
call fcn.004018d0
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ecx
call dword [0x46a190]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
push eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
sub esp, 0x10
mov edx, esp
push str.MsiOpenDatabase___s__failed_:_0x_x
push 8
mov dword [edx], eax
mov eax, dword [ebp + 8]
push 0x45a150
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.004018d0
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
push str.Cannot_apply_transform_because_MSI.DLL_did_not_get_loaded
push 8
push 0x45a150
call fcn.004018d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8