Function at 0x40d430
Capabilities:
Link many functions at runtime
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4433f8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x40d67d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MsiOpenDatabaseA
push ebp
call esi
push str.MsiCloseHandle
push ebp
mov edi, eax
call esi
push str.MsiDatabaseOpenViewA
push ebp
mov dword [esp + 0x3c], eax
call esi
push str.MsiViewExecute
push ebp
mov dword [esp + 0x2c], eax
call esi
push str.MsiViewFetch
push ebp
mov dword [esp + 0x30], eax
call esi
push str.MsiRecordGetStringA
push ebp
mov dword [esp + 0x34], eax
call esi
cmp edi, ebx
mov dword [esp + 0x30], eax
je 0x40d676
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x40d676
cmp dword [esp + 0x24], ebx
je 0x40d676
cmp dword [esp + 0x28], ebx
je 0x40d676
cmp dword [esp + 0x2c], ebx
je 0x40d676
cmp eax, ebx
je 0x40d676
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov eax, dword [eax]
mov dword [esp + 0x24], ebx
push eax
call edi
cmp eax, ebx
jne 0x40d676
mov edx, dword [0x4553d4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], ebx
xor edi, edi
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x40d63e
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jae 0x40d63e
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [eax + edi*8]
lea eax, [esp + 0x20]
push edx
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00434dec
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call dword [esp + 0x30]
test eax, eax
jne 0x40d622
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call dword [esp + 0x30]
test eax, eax
jne 0x40d622
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
call dword [esp + 0x34]
test eax, eax
jne 0x40d622
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x48]
push ecx
push edx
push 1
push eax
mov dword [esp + 0x20], 1
call dword [esp + 0x40]
cmp eax, 0xea
jne 0x40d606
mov eax, dword [esp + 0x10]
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.0043658d
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push 1
push edx
call dword [esp + 0x40]
test eax, eax
jne 0x40d5f9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
push esi
mov byte [esi + eax], bl
mov edx, dword [ecx + 4]
lea ecx, [edx + edi*8 + 4]
call fcn.004361b5
push esi
call fcn.004365b6
mov esi, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d611
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d638
push eax
call esi
inc edi
jmp 0x40d514
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40d62d
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40d638
push eax
call esi
inc edi
jmp 0x40d514
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40d649
push eax
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call fcn.0043602c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret