Function at 0x4207db
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ff57
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x497d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.ProcessOnDemandManifest...
lea ecx, [esp + 0x24]
call fcn.00402060
xor esi, esi
push esi
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x4c], esi
call fcn.00411fad
or ebx, 0xffffffff
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [esp + 0x1c]
push eax
mov eax, 0x49ca4c
call fcn.00405210
push esi
push 0x80
push 3
push esi
xor eax, eax
inc eax
push eax
mov dword [esp + 0x54], eax
mov esi, dword [esp + 0x30]
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
inc edi
neg edi
sbb edi, edi
and edi, eax
mov dword [esp + 0x30], edi
mov byte [esp + 0x40], 2
je 0x420b97
call fcn.0041e29e
test eax, eax
je 0x420b80
mov esi, dword [ebp + 8]
add esi, 4
mov eax, dword [esi]
test eax, eax
je 0x4208a5
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [esi], 0
push esi
push 0
push dword [esp + 0x24]
call sub.msi.dll_MsiOpenProductW
mov ebx, eax
test ebx, ebx
jne 0x420b6a
call fcn.00434582
push eax
lea ecx, [esp + 0x28]
call fcn.0040210b
lea eax, [esp + 0x24]
push eax
push 0x49ccf4
mov byte [esp + 0x48], 3
call fcn.004147ae
push str.SELECT__FROM__OnDemand__WHERE__OnDemandID_
lea ecx, [esp + 0x1c]
call fcn.00402060
mov byte [esp + 0x40], 4
mov ebx, dword [esp + 0x24]
push dword [ebx - 0xc]
lea ecx, [esp + 0x1c]
push ebx
call fcn.00401eca
push 0x4816f8
lea eax, [esp + 0x1c]
push eax
call fcn.00408ceb
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x40], 6
mov esi, dword [esi]
and dword [esp + 0x14], 0
push eax
push dword [esp + 0x1c]
push esi
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
je 0x4209d0
push 0x4816fc
lea ecx, [esp + 0x24]
call fcn.00402060
mov byte [esp + 0x40], 7
push esi
lea eax, [esp + 0x24]
push eax
push 1
call fcn.00411fad
add esp, 0xc
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [esp + 0x10], 0
je 0x42097d
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x14], 0
je 0x42098d
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
push edi
mov byte [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push dword [esp + 0x18]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
je 0x4209f9
push 0x481708
lea ecx, [esp + 0x24]
call fcn.00402060
mov byte [esp + 0x40], 8
jmp 0x420951
cmp dword [esp + 0x10], 0
je 0x420a09
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
neg eax
sbb eax, eax
inc eax
je 0x420b05
call fcn.00434582
push eax
lea ecx, [esp + 0x24]
call fcn.0040210b
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x44], 9
push 2
push dword [esp + 0x18]
call fcn.00432b8b
mov esi, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x420acc
push str.Empty_FileSequences_data
lea ecx, [esp + 0x2c]
call fcn.00402060
push 0xd
lea eax, [esp + 0x2c]
push eax
push 1
mov byte [esp + 0x4c], 0xa
call fcn.00411fad
mov ecx, dword [esp + 0x34]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esi - 0x10]
call fcn.0040253e
cmp dword [esp + 0x10], 0
je 0x420aa0
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x14], 0
je 0x420ab0
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [ebx - 0x10]
call fcn.0040253e
push 0xd
pop esi
jmp 0x4209a1
call fcn.00434582
push eax
lea ecx, [esp + 0x2c]
call fcn.0040210b
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 8]
mov byte [esp + 0x4c], 0xb
call fcn.00421202
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040253e
jmp 0x420961
push 0x481708
lea ecx, [esp + 0x30]
call fcn.00402060
xor esi, esi
push esi
lea eax, [esp + 0x30]
push eax
push 1
mov byte [esp + 0x4c], 0xc
call fcn.00411fad
mov ecx, dword [esp + 0x38]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [esp + 0x10], esi
je 0x420b45
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [esp + 0x14], esi
je 0x420b54
push dword [esp + 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
add ebx, 0xfffffff0
mov ecx, ebx
jmp 0x42099c
push str.MODB:
lea ecx, [esp + 0x30]
call fcn.00402060
mov byte [esp + 0x40], 0xd
push ebx
jmp 0x420baf
push str.Manifest_file_not_valid
lea ecx, [esp + 0x30]
call fcn.00402060
mov byte [esp + 0x40], 0xe
push 0
jmp 0x420baf
push str.Failed_to_lock_Manifest_file
lea ecx, [esp + 0x30]
call fcn.00402060
mov byte [esp + 0x40], 0xf
push 0x186a0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 2
call fcn.00411b27
mov ecx, dword [esp + 0x3c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov byte [esp + 0x40], 1
test edi, edi
je 0x420bdf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
pop esi
jmp 0x4209ad