Function at 0x40a910
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov rax, qword [0x004bf230]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rdi, r8
mov qword [rsp + 0x58], r8
mov qword [rsp + 0xd8], rdx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rcx
mov qword [r11 - 0x28], r8
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x60], 1
lea rsi, [rcx + 0x158]
lea r8, str.INSTALLLEVEL
mov edx, dword [rcx + 0x138]
mov rcx, rsi
call fcn.00403734
cmp rax, rbx
je 0x40a99f
mov rcx, rax
call fcn.0044531c
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x80]
cmp dword [rsi], ebx
jne 0x40a9b1
mov dword [rsp + 0x48], ebx
jmp 0x40a9c1
mov ecx, dword [rcx + 0x138]
call qword [rsi + 0x88]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x188], 7
mov qword [rsp + 0x180], rbx
mov word [rsp + 0x170], bx
mov r8d, 0x3c
lea rdx, str.SELECT__FROM__Feature__WHERE__Feature_._Feature_Parent___
lea rcx, [rsp + 0x168]
call fcn.00404e54
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x168]
call fcn.0040490c
mov r8d, 0x70
lea rdx, str._AND__Feature_._Display__IS_NOT_NULL_AND__Feature_._Display_____0_AND__Level_____0_ORDER_BY__Feature_._Display_
lea rcx, [rsp + 0x168]
call fcn.00404a40
lea r8, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae r8, qword [rsp + 0x170]
lea r9, [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov edx, edi
mov rcx, rsi
call fcn.0040391c
mov dword [rsp + 0x4c], eax
cmp eax, ebx
je 0x40aae4
mov ecx, 0x840
call fcn.004443a8
mov qword [rsp + 0x58], rax
cmp rax, rbx
je 0x40aac8
lea rcx, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rcx, qword [rsp + 0x170]
mov edx, dword [rsp + 0x4c]
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str.MsiDatabaseOpenView__d___s___d__returned__d
mov edx, 0x19dc
mov r8d, 0x654
mov rcx, rax
call fcn.00401de0
mov rbx, rax
mov qword [rsp + 0xd0], rbx
lea rdx, [0x004bc148]
lea rcx, [rsp + 0xd0]
call fcn.00449f60
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov rcx, rsi
call fcn.00403950
mov edi, eax
cmp eax, ebx
je 0x40ab57
mov ecx, 0x840
call fcn.004443a8
mov qword [rsp + 0x58], rax
cmp rax, rbx
je 0x40ab3b
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rbx
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x20], ecx
lea r9, str.MsiViewExecute__d___d__returned__d
mov edx, 0x19dc
mov r8d, 0x654
mov rcx, rax
call fcn.00401de0
mov rbx, rax
mov qword [rsp + 0xf0], rbx
lea rdx, [0x004bc148]
lea rcx, [rsp + 0xf0]
call fcn.00449f60
lea r8, [rsp + 0x40]
mov edx, dword [rsp + 0x44]
mov rcx, rsi
call fcn.00403980
cmp eax, ebx
jne 0x40aef9
mov r8d, 1
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.004039b0
lea rdi, [0x004998e4]
cmp rax, rbx
cmovne rdi, rax
mov qword [rsp + 0x70], rdi
mov r8d, 3
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.004039b0
lea rcx, [0x004998e4]
cmp rax, rbx
cmovne rcx, rax
mov qword [rsp + 0xb0], rcx
mov r8d, 4
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.004039b0
lea rcx, [0x004998e4]
cmp rax, rbx
cmovne rcx, rax
mov qword [rsp + 0x68], rcx
cmp dword [rsi], ebx
jne 0x40abec
mov dword [rsp + 0x50], ebx
jmp 0x40ac6b
mov edx, 6
mov ecx, dword [rsp + 0x40]
call qword [rsi + 0xb8]
mov dword [rsp + 0x50], eax
cmp eax, 0x80000000
jne 0x40ac6b
mov ecx, 0x840
call fcn.004443a8
mov qword [rsp + 0x58], rax
cmp rax, rbx
je 0x40ac4f
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 6
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
lea r9, str.MsiRecordGetInteger__d___d__returned__d
mov edx, 0x19dc
mov r8d, 0x654
mov rcx, rax
call fcn.00401de0
mov rbx, rax
mov qword [rsp + 0xc0], rbx
lea rdx, [0x004bc148]
lea rcx, [rsp + 0xc0]
call fcn.00449f60
cmp dword [rsi], ebx
jne 0x40ac75
mov dword [rsp + 0x4c], ebx
jmp 0x40acf4
mov edx, 8
mov ecx, dword [rsp + 0x40]
call qword [rsi + 0xb8]
mov dword [rsp + 0x4c], eax
cmp eax, 0x80000000
jne 0x40acf4
mov ecx, 0x840
call fcn.004443a8
mov qword [rsp + 0x58], rax
cmp rax, rbx
je 0x40acd8
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 8
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
lea r9, str.MsiRecordGetInteger__d___d__returned__d
mov edx, 0x19dc
mov r8d, 0x654
mov rcx, rax
call fcn.00401de0
mov rbx, rax
mov qword [rsp + 0xb8], rbx
lea rdx, [0x004bc148]
lea rcx, [rsp + 0xb8]
call fcn.00449f60
mov ecx, 0x98
call fcn.004443a8
mov qword [rsp + 0xe0], rax
cmp rax, rbx
je 0x40ae3c
lea rax, [rsp + 0x120]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], rbx
mov word [rsp + 0x128], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x68]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x120]
call fcn.00404e54
nop
mov qword [rsp + 0x118], 7
mov qword [rsp + 0x110], rbx
mov word [rsp + 0x100], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0xb0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xf8]
call fcn.00404e54
nop
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdi, qword [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x88]
call fcn.00404e54
nop
lea r9, [rsp + 0x120]
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xe0]
call fcn.004066dc
mov rcx, rax
mov qword [rsp + 0x68], rax
jmp 0x40ae44
mov rcx, rbx
mov qword [rsp + 0x68], rbx
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x50], eax
setle al
mov byte [rcx + 0x90], al
test byte [rsp + 0x4c], 0x10
je 0x40ae62
mov byte [rcx + 0x91], bl
lea rax, [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rbx
mov word [rsp + 0x90], bx
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
call fcn.00404e54
nop
lea r8, [rsp + 0x88]
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, qword [rsp + 0x80]
call fcn.0040a910
mov rax, qword [rsp + 0xd8]
mov rdx, qword [rax + 8]
mov r8, rdi
mov rdx, qword [rdx]
mov rcx, rax
call fcn.0040c1f4
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.0040382c
jmp 0x40ab57
mov edx, dword [rsp + 0x44]
cmp edx, ebx
je 0x40af09
mov rcx, rsi
call fcn.0040382c
mov edi, dword [rsp + 0x48]
cmp edi, ebx
je 0x40af1c
mov edx, edi
mov rcx, rsi
call fcn.0040382c
nop
cmp qword [rsp + 0x188], 8
jb 0x40af34
mov rcx, qword [rsp + 0x170]
call fcn.00443d3c
mov esi, 7
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x180], rbx
mov word [rsp + 0x170], bx
mov rdi, qword [rsp + 0x58]
cmp qword [rdi + 0x20], 8
jb 0x40af66
mov rcx, qword [rdi + 8]
call fcn.00443d3c
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x18], rbx
mov word [rdi + 8], bx
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.00443d60
add rsp, 0x1a0
pop rdi
pop rsi
pop rbx
ret