Function at 0x100215b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045aa7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp + 8]
call fcn.10002af0
xor ecx, ecx
xor edi, edi
cmp eax, 0xffffffff
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x28]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.10002a50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x10021625
mov ecx, dword [ebp - 0x28]
mov edx, ecx
mov esi, ecx
jmp 0x1002162a
mov esi, edx
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x40], eax
cmp edx, eax
je 0x1002165e
movzx eax, word [esi]
push eax
mov dword [ebp - 0x30], eax
call fcn.100301c0
add esp, 4
test eax, eax
je 0x10021656
mov ecx, dword [ebp - 0x30]
lea edi, [edi + edi*4]
lea edi, [edi - 0x18]
lea edi, [ecx + edi*2]
add esi, 2
cmp esi, dword [ebp - 0x40]
jne 0x10021637
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003630
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
cmp edi, dword [eax]
jne 0x1002184d
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
xor edx, edx
push eax
push ecx
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
call fcn.10002fd0
push 0
push 0x10053794
push 1
push 0x10053758
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 2
call fcn.1000f090
mov esi, 2
add esp, 0x10
mov dword [ebp - 0x34], esi
and esi, 0xfffffffd
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 2
or esi, 1
lea ecx, [ebp + 8]
mov dword [ebp - 0x34], esi
call fcn.10003630
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
and esi, 0xfffffffe
mov word [ebp - 0x28], ax
movups xmmword [ebp + 8], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp + 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.10003630
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x100218c0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push str.SELECT__Name__FROM__Binary__WHERE__Name____s
push eax
call fcn.10009d30
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10021799
push eax
call edi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
cmp dword [esi - 4], 1
jle 0x100217b7
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.1000a340
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.10016e00
add esp, 4
test eax, eax
js 0x10021823
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100217e0
push eax
call edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x10021815
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jle 0x10021807
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10021879
cmp eax, 0x80070103
je 0x10021815
call fcn.10016f50
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x10021823
push eax
call edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10021831
push eax
call edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002184d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c803
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0x3c]
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae edx, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x14], 8
jb 0x10021892
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push ecx
push dword [eax]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100218ad
push eax
call edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100218bb
push eax
call edi
jmp 0x10021831
push 0x80004005
call fcn.10008190
int3