Function at 0x46f5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
xor eax, eax
mov dword [esp], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
movups xmm0, xmmword [eax]
mov edi, dword [ecx + 8]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], edi
movups xmmword [esp + 0x30], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
test edi, edi
jne 0x46f630
cmp dword [ecx + 0x78], edi
jne 0x46f625
mov eax, dword [esp + 0x28]
test byte [eax + 0x50], 8
jne 0x46f625
mov byte [ecx + 0x17], 1
call fcn.0042a0d0
mov edi, eax
mov dword [esp + 0x24], eax
cmp byte [esp + 0x30], 0xc
jne 0x46f699
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x46f661
push 0
push edx
push eax
mov edx, 0x76
mov ecx, edi
call fcn.0042a3d0
add esp, 0xc
jmp 0x46f694
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esp + 0x30], 0xe
test dword [esi + 4], 0x400
je 0x46f6c3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
mov edx, esi
call fcn.0046f520
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jns 0x46fe63
test dword [esi + 4], 0x2000
je 0x46f6e0
mov eax, esi
nop
test dword [eax + 4], 0x2000
je 0x46f6fe
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x46f6d0
cmp dword [esi + 0x30], 0
je 0x46f71e
mov ecx, dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00470370
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
mov edx, esi
mov ecx, edi
call fcn.0046ee70
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x46fcb8
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x34], 0
jne 0x46f752
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x10]
call fcn.0042a970
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x10]
call fcn.0042a970
mov ecx, dword [esp + 0x18]
add esp, 0xc
movzx eax, byte [esi]
sub eax, 0x86
je 0x46fab4
sub eax, 1
je 0x46f98c
sub eax, 1
je 0x46fab4
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x14], edx
push edx
lea eax, [edx + 1]
mov edx, 0x76
mov dword [esp + 0x24], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.0042a540
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x38]
mov ecx, esi
test eax, eax
je 0x46f7af
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x46f7a6
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x5c], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.00474da0
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x46fe63
push eax
push dword [esp + 0x20]
lea edx, [eax + 0x76]
mov ecx, edi
call fcn.0042a540
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x3c]
movzx ecx, byte [esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x64], eax
call fcn.0046d650
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x1c]
call fcn.0042a970
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x70]
push eax
mov edx, esi
call fcn.00474da0
mov ecx, eax
add esp, 0x1c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], ecx
movzx eax, word [eax + 2]
cmp word [esi + 2], ax
jle 0x46f880
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x46f894
mov ecx, dword [esp + 0x28]
call fcn.00442c20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], eax
test ecx, ecx
jne 0x46fca7
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + 0x38]
dec esi
push esi
mov dword [esp + 0x10], esi
lea eax, [esi - 1]
mov dword [ecx + 0x38], eax
call fcn.0046eb80
add esp, 4
mov edx, 0x24
mov ecx, edi
push esi
push dword [esp + 0x14]
call fcn.0042a540
mov ecx, dword [esp + 0x10]
call fcn.0044a510
mov esi, eax
mov edx, 0x86
push esi
push dword [esp + 0x1c]
mov ecx, edi
call fcn.0042a540
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov edx, 0x1c
push 0
push esi
dec eax
push eax
push dword [esp + 0x38]
call fcn.0042ab00
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.0044a530
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
push eax
lea esi, [eax - 1]
push esi
lea eax, [esp + 0x58]
push eax
push 0
push 0
push dword [esp + 0x44]
call fcn.0046cb50
mov edx, esi
mov esi, dword [esp + 0x5c]
mov ecx, esi
call fcn.0042acb0
push edi
mov edi, dword [esp + 0x4c]
mov edx, 0x27
push edi
mov ecx, esi
call fcn.0042a540
mov edx, dword [esp + 0x4c]
add esp, 0x40
mov ecx, esi
call fcn.0042acb0
lea eax, [edi + 1]
mov edx, 0x7a
push 0
push eax
mov ecx, esi
call fcn.0042a540
push 0
push edi
mov edx, 0x7a
mov ecx, esi
call fcn.0042a540
add esp, 0x10
jmp 0x46fca3
xor eax, eax
mov edx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 8]
push eax
call fcn.00474da0
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [eax + 0x3c], 0
test ecx, ecx
jne 0x46fe63
mov dword [esi + 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x46fa17
push ecx
mov edx, 0x11
mov ecx, edi
call fcn.0042a4e0
mov ecx, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x46fa17
push ecx
inc ecx
mov edx, 0xa0
push ecx
push dword [esi + 8]
mov ecx, edi
call fcn.0042a410
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x10]
call fcn.0042a970
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
add esp, 0xc
mov edx, esi
push eax
call fcn.00474da0
mov cx, word [esi + 2]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x34], eax
mov dx, word [eax + 2]
call fcn.0040b080
mov ecx, dword [esi + 0x3c]
mov word [esp + 0xc], ax
mov word [esi + 2], ax
test ecx, ecx
je 0x46fa9a
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x18]
call fcn.00444350
test eax, eax
je 0x46fa9a
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x46fa9a
cdq
push edx
push eax
call fcn.0040b0e0
add esp, 8
cmp word [esp + 0xc], ax
jle 0x46fa9a
mov word [esi + 2], ax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46fca7
mov edx, eax
mov ecx, edi
call fcn.0042afa0
jmp 0x46fca7
cmp byte [esp + 0x30], 1
jne 0x46fac5
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jmp 0x46fb05
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x14], edx
push edx
lea eax, [edx + 1]
mov edx, 0x76
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.0042a540
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x38]
mov ecx, esi
test eax, eax
je 0x46fafd
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x46faf4
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov ecx, edi
mov edx, dword [esp + 0xc]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x78], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.00474da0
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x46fe67
cmp byte [esi], 0x88
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
sete al
mov dword [esi + 0x3c], ecx
inc al
movzx ecx, byte [esi]
mov byte [esp + 0x74], al
call fcn.0046d650
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.0042a970
lea eax, [esp + 0x84]
mov edx, esi
push eax
mov ecx, edi
call fcn.00474da0
mov dword [esp + 0x28], eax
add esp, 0x14
cmp byte [esi], 0x86
mov eax, dword [esi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
jne 0x46fbd1
mov dx, word [eax + 2]
mov cx, word [esi + 2]
call fcn.0040b080
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x46fbe1
mov ecx, dword [esp + 0x28]
call fcn.00442c20
cmp byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x46fcab
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x57], 0
jne 0x46fcab
mov esi, dword [edi + 0x38]
mov eax, dword [esp + 8]
dec esi
mov edx, dword [esp + 0x20]
mov ecx, eax
push esi
mov dword [esp + 0x1c], esi
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.0046eb80
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0042a540
push dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x6c]
push edi
push eax
push 0
push 0
push dword [esp + 0x2c]
call fcn.0046cb50
mov edx, edi
mov edi, dword [esp + 0x44]
mov ecx, edi
call fcn.0042acb0
push esi
mov esi, dword [esp + 0x34]
mov edx, 0x27
push esi
mov ecx, edi
call fcn.0042a540
mov edx, dword [esp + 0x40]
mov ecx, edi
call fcn.0042acb0
push 0
push esi
mov edx, 0x7a
mov ecx, edi
call fcn.0042a540
add esp, 0x30
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 8]
cmp dword [esi + 0x38], 0
jne 0x46fcb8
mov ecx, edi
call fcn.0042a9d0
cmp dword [edi + 0x24], 0
jne 0x46fe67
test byte [esi + 4], 0x20
je 0x46fe67
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x28]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.0046d530
mov edi, eax
add esp, 4
mov dword [esp + 0x54], edi
test edi, edi
jne 0x46fcfb
mov edi, dword [esp + 8]
lea esi, [eax + 7]
jmp 0x46fe6b
xor ecx, ecx
lea edx, [edi + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x18], ecx
jle 0x46fda0
mov edi, dword [esp + 8]
mov dword [esp + 0x1c], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x46fd42
push ecx
mov edx, eax
mov ecx, edi
call fcn.0046ecc0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x46fd69
jmp 0x46fd44
xor eax, eax
mov edi, dword [esi + 0x1c]
cmp ecx, dword [edi]
mov edi, dword [esp + 8]
jge 0x46fd69
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov edx, dword [esp + 0x1c]
mov edx, dword [eax + edx + 8]
call fcn.00441920
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [edx], eax
test eax, eax
jne 0x46fd78
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 0x1c], 0x14
inc ecx
add edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
cmp ecx, dword [esp + 0x18]
jl 0x46fd20
mov edi, dword [esp + 0x54]
nop dword [eax]
nop word [eax + eax]
lea eax, [esi + 0x14]
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
test eax, eax
js 0x46fe41
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x46fdcc
mov ecx, 0x60992c
jmp 0x46fdd5
mov ecx, dword [esi + 0x68]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x46fdf6
push edi
mov edx, 0xfffffff8
call fcn.0042b1b0
add esp, 4
jmp 0x46fe1e
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x46fe17
push 0xfffffffffffffff8
push edi
mov edx, eax
mov ecx, esi
call fcn.0042b360
add esp, 8
jmp 0x46fe1e
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 2
jl 0x46fdb3
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x46fda0
add dword [edi], 0xffffffff
jne 0x46fe63
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.004059f0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46fe94
push eax
mov edx, fcn.0046b930
mov ecx, edi
call fcn.0046ad60
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret