Function at 0x10001283
Capabilities:
Enumerate files on windows
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x10012080]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x4f4]
mov esi, 0x104
push esi
lea eax, [ebp + 0x2e0]
push 0
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], edi
call fcn.10003870
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x2e0]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000e4b4
lea eax, [ebp + 0x2e0]
push eax
call ebx
push esi
lea eax, [ebp + 0x3e4]
push 0
push eax
call fcn.10003870
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
je 0x1000136d
cmp dword [ebp - 0x6c], 0
jne 0x1000136d
cmp dword [ebp - 0x68], 0x10
je 0x1000135c
lea eax, [ebp - 0x3c]
push str..msi
push eax
call fcn.100037a0
test eax, eax
pop ecx
pop ecx
je 0x1000135c
push dword [ebp - 0x74]
lea eax, [ebp + 0x3e4]
push eax
call edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x3e4]
push eax
call ebx
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001316
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
je 0x10001477
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
call fcn.10001000
push eax
push ebx
lea eax, [ebp + 0x3e4]
push eax
call sub.msi.dll_MsiOpenProductA
test eax, eax
jne 0x10001450
push esi
lea eax, [ebp + 0xd8]
push ebx
push eax
call fcn.10003870
add esp, 0xc
push str.SELECT_Value_FROM_Property_WHERE_Property.PropertyProductCode
lea eax, [ebp + 0xd8]
push eax
call edi
mov edi, dword [ebp - 0x70]
lea ecx, [ebp - 0x74]
call fcn.10001000
push eax
lea eax, [ebp + 0xd8]
push eax
push edi
call sub.msi.dll_MsiEnableUIPreview
test eax, eax
jne 0x10001450
push ebx
push dword [ebp - 0x74]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x10001450
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
call fcn.10001000
push eax
push edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x10001450
push esi
lea eax, [ebp + 0x1dc]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.10003870
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1dc]
push eax
xor esi, esi
inc esi
push esi
push dword [ebp - 0x6c]
call sub.msi.dll_MsiRecordSetInteger
test eax, eax
jne 0x10001450
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10001450
mov dword [ebp - 0x78], esi
cmp dword [ebp - 0x6c], ebx
je 0x1000145d
push dword [ebp - 0x6c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x74], ebx
je 0x1000146a
push dword [ebp - 0x74]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x70], ebx
je 0x10001477
push dword [ebp - 0x70]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp + 0x4e8]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100038ea
add ebp, 0x4ec
leave
ret 4