Function at 0x1001ccd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d42e
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], 0
call fcn.10013410
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0xa
push str.viewer.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.10002c20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10018650
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1001cda1
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001cd96
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001cf1f
test ecx, ecx
je 0x1001cda1
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov edi, eax
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.10018180
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 0x37
push str.SELECT__Data__FROM__Binary__WHERE__Name___viewer.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.10002c20
mov byte [ebp - 4], 6
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x1001ce1a
push eax
call esi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1000c200
add esp, 4
test eax, eax
je 0x1001ce82
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1001ce4b
push eax
call esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x1001ce74
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
lea edx, [eax + 1]
call fcn.1000bcc0
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x1001ce82
push eax
call esi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1001ce90
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1001cec7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001cebc
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001cf24
test ecx, ecx
je 0x1001cec7
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.100055a0
mov byte [ebp - 4], 1
test edi, edi
je 0x1001cef2
push edi
call esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100055a0
mov eax, dword [ebp - 0x6c]
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.10044a98
mov esp, ebp
pop ebp
ret
call fcn.1004872f
call fcn.1004872f
int3