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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
movups xmm0, xmmword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x34]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x1c], edi
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x50], xmm0
mov edx, dword [eax + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
test edx, edx
jne 0x49c614
cmp dword [eax + 0x3c], edx
jne 0x49c614
mov esi, dword [ecx + 8]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x49b6fe
cmp dword [ecx + 0x74], esi
jne 0x49b6f3
mov eax, dword [esp + 0x24]
test byte [eax + 0x4c], 8
jne 0x49b6f3
mov byte [ecx + 0x17], 1
call fcn.00452e00
mov esi, eax
mov dword [esp + 0x28], eax
cmp byte [esp + 0x40], 0xc
jne 0x49b767
mov ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49b72f
push 0
push edx
push eax
mov edx, 0x64
mov ecx, esi
call fcn.00453030
add esp, 0xc
jmp 0x49b762
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [esp + 0x40], 0xe
mov eax, dword [edi + 4]
test eax, 0x400
je 0x49b7be
mov edx, dword [edi + 0x3c]
mov eax, edi
test edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], 0
mov ecx, 1
mov edx, dword [esp + 0x2c]
sete dl
mov dword [esp + 0x38], eax
cmp dword [edi + 0x44], 0
mov dword [esp + 0x34], ecx
jne 0x49b7bb
nop
mov eax, dword [eax + 0x34]
test eax, eax
je 0x49b82f
add ecx, edx
mov dword [esp + 0x38], eax
cmp dword [eax + 0x44], 0
mov dword [esp + 0x34], ecx
je 0x49b7a0
mov eax, dword [edi + 4]
test eax, 0x2000
je 0x49b8ac
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, edi
call fcn.0049af90
add esp, 4
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x24], 0
jne 0x49c5d7
test byte [edi + 4], 0x20
je 0x49c5d7
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x24]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x38], eax
call fcn.004993d0
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x49c478
mov ecx, 7
mov dword [esp + 0x18], ecx
jmp 0x49c5db
mov edi, dword [esp + 0xc]
cmp ecx, 1
mov edx, 0x517ba8
mov eax, 0x50df2b
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push edi
call fcn.00453420
mov esi, dword [esp + 0x4c]
add esp, 0x14
nop dword [eax]
push 1
push 1
lea eax, [esp + 0x48]
mov edx, esi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.004981a0
add esp, 0x18
cmp dword [esp + 0x20], 0
jne 0x49b891
mov eax, dword [esp + 0x34]
mov word [esi + 2], ax
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x49b860
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x30], 0
je 0x49b8ca
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, edi
call fcn.0049ced0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x49b8fe
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x14]
call fcn.00453420
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x14]
call fcn.00453420
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movzx eax, byte [edi]
sub eax, 0x84
je 0x49c038
sub eax, 1
je 0x49bdae
sub eax, 1
je 0x49c038
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x14], eax
inc eax
mov dword [esp + 0x20], eax
inc eax
mov dword [ecx + 0x28], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x49b955
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x64
mov ecx, esi
call fcn.00453030
add esp, 0xc
mov edx, eax
jmp 0x49b98c
mov edi, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x14], edx
mov ecx, edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x49b9a1
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x49b998
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x64], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call fcn.004a09c0
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x49c5db
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x49ba0c
push eax
push eax
push dword [esp + 0x28]
lea edx, [eax + 0x64]
mov ecx, esi
call fcn.00453030
add esp, 0xc
mov edx, eax
jmp 0x49ba43
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x18], edx
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
movzx eax, byte [edi]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
sub eax, 0x85
je 0x49ba8c
sub eax, 1
je 0x49ba85
sub eax, 1
je 0x49ba7e
mov eax, str.UNION
jmp 0x49ba91
mov eax, str.INTERSECT
jmp 0x49ba91
mov eax, str.EXCEPT
jmp 0x49ba91
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x18]
call fcn.00453420
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x70]
push eax
mov edx, edi
call fcn.004a09c0
mov dword [esp + 0x2c], eax
add esp, 0x14
mov eax, dword [edi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
movzx eax, word [eax + 2]
cmp word [edi + 2], ax
jle 0x49bad5
mov word [edi + 2], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x49bae5
mov ecx, dword [esp + 0x24]
call fcn.00469930
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
mov dword [edi + 0x3c], eax
jne 0x49c40a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x30], eax
lea edx, [eax - 1]
mov dword [esp + 0x14], edx
mov dword [ecx + 0x38], edx
mov edx, edi
call fcn.0049aae0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x49bb3c
mov edx, dword [esp + 0x2c]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 0x25
call fcn.00453030
add esp, 0xc
jmp 0x49bb6f
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + 0x13]
test al, al
jne 0x49bb82
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
jmp 0x49bb91
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edx, dword [ecx + eax*4 + 0x98]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x70], ecx
jg 0x49bbc1
push 0
push edx
push dword [esp + 0x1c]
mov edx, 0x7e
mov ecx, esi
call fcn.00453030
mov edx, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x38], eax
jmp 0x49bbf4
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x70], ecx
jg 0x49bc20
push edx
push dword [esp + 0x14]
mov edx, 0x1d
mov ecx, esi
push dword [esp + 0x28]
call fcn.00453030
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, eax
jmp 0x49bc57
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x49bc72
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
test edx, edx
je 0x49bc8e
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x49bc8e
movzx eax, al
mov dword [ecx + eax*4 + 0x98], edx
inc byte [ecx + 0x13]
push dword [esp + 0x2c]
lea eax, [esp + 0x44]
mov edx, edi
push dword [esp + 0x14]
push eax
push 0
push 0
push dword [esp + 0x28]
call fcn.004981a0
mov ecx, dword [esi + 0xc]
add esp, 0x18
mov edx, dword [esp + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49bccb
push edx
mov edx, esi
call fcn.00453590
add esp, 4
jmp 0x49bcd4
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49bcf8
mov edx, dword [esp + 0x38]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 5
call fcn.00453030
add esp, 0xc
jmp 0x49bd2b
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49bd49
push edx
mov edx, esi
call fcn.00453590
add esp, 4
jmp 0x49bd52
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49bd76
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x74
mov ecx, esi
call fcn.00453030
add esp, 0xc
jmp 0x49c3b6
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x49c3b6
xor eax, eax
mov edx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a09c0
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x49c5db
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
test edx, edx
je 0x49bec0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x70], ecx
jg 0x49be2f
push 0
push 0
push edx
mov edx, 0x14
mov ecx, esi
call fcn.00453030
add esp, 0xc
mov dword [esp + 0x38], eax
jmp 0x49be5e
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0xc]
test edx, edx
je 0x49bec0
mov ecx, dword [edi + 8]
lea eax, [edx + 1]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49be8e
push edx
push eax
push dword [esp + 0x3c]
mov edx, 0x98
mov ecx, esi
call fcn.00453030
add esp, 0xc
jmp 0x49bec0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 4], esi
lea esi, [edx + 1]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x98
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push str.UNION_ALL
push 1
push dword [esp + 0x14]
call fcn.00453420
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
add esp, 0xc
mov edx, edi
push eax
call fcn.004a09c0
movzx ecx, word [edi + 2]
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [esp + 0x3c], ecx
movsx ecx, cx
movzx eax, word [eax + 2]
movsx edx, ax
cmp word [esp + 0x3c], ax
jl 0x49bf47
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x49bf22
movzx eax, word [edi + 2]
mov edx, dword [esp + 0x10]
jmp 0x49bf81
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x49bf34
movzx eax, word [edi + 2]
mov edx, dword [esp + 0x10]
inc eax
jmp 0x49bf7e
sub ecx, edx
mov edx, dword [esp + 0x10]
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 2]
jmp 0x49bf7b
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x49bf58
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 2]
jmp 0x49bf81
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x49bf6a
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 2]
inc eax
jmp 0x49bf7e
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
mov edx, dword [esp + 0x10]
movzx ecx, word [edx + 2]
add ax, cx
movzx eax, ax
mov word [edi + 2], ax
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x49bffa
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x49bffa
test dword [ecx + 4], 0x400
je 0x49bfa5
mov eax, dword [ecx + 8]
jmp 0x49bfe0
movzx eax, byte [ecx]
sub eax, 0xaa
je 0x49bfca
sub eax, 1
jne 0x49bffa
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.0046ae60
test eax, eax
je 0x49bffa
mov eax, dword [esp + 0x3c]
jmp 0x49bfe0
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.0046ae60
test eax, eax
je 0x49bffa
mov eax, dword [esp + 0x3c]
neg eax
test eax, eax
jle 0x49bffa
cdq
push edx
push eax
call fcn.00436540
add esp, 8
cmp word [esp + 0x20], ax
jle 0x49bffa
mov word [edi + 2], ax
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x49c40a
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x49c01e
mov eax, 0x525494
mov dword [eax + 8], edx
jmp 0x49c40a
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x49c40a
cmp byte [esp + 0x40], 1
jne 0x49c04c
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
jmp 0x49c0d3
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x14], edx
lea eax, [edx + 1]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x70], ecx
jg 0x49c083
push 0
push 0
push edx
mov edx, 0x64
mov ecx, esi
call fcn.00453030
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x49c0ba
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x14], eax
mov ecx, edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x49c0cf
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x49c0c6
or dword [ecx + 4], 0x20
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x10]
push eax
mov byte [esp + 0x7c], 1
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.004a09c0
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x49c5db
cmp byte [edi], 0x86
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x38], eax
sete al
inc al
mov dword [edi + 0x3c], ecx
mov byte [esp + 0x78], al
movzx eax, byte [edi]
sub eax, 0x85
je 0x49c162
sub eax, 1
je 0x49c15b
sub eax, 1
je 0x49c154
mov eax, str.UNION
jmp 0x49c167
mov eax, str.INTERSECT
jmp 0x49c167
mov eax, str.EXCEPT
jmp 0x49c167
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x18]
call fcn.00453420
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x88]
push eax
mov edx, edi
call fcn.004a09c0
mov dword [esp + 0x2c], eax
add esp, 0x14
cmp byte [edi], 0x84
mov eax, dword [edi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
jne 0x49c231
movzx ecx, word [edi + 2]
movzx eax, word [eax + 2]
mov dword [esp + 0x3c], ecx
movsx ecx, cx
movsx edx, ax
cmp word [esp + 0x3c], ax
jl 0x49c1f3
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x49c1d6
movzx eax, word [edi + 2]
jmp 0x49c22d
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x49c1e4
movzx eax, word [edi + 2]
inc eax
jmp 0x49c22a
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 2]
jmp 0x49c227
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x49c204
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 2]
jmp 0x49c22d
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x49c216
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 2]
inc eax
jmp 0x49c22a
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
mov edx, dword [esp + 0x10]
movzx ecx, word [edx + 2]
add ax, cx
movzx eax, ax
mov word [edi + 2], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x49c241
mov ecx, dword [esp + 0x24]
call fcn.00469930
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x38]
mov dword [edi + 0x3c], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
je 0x49c40a
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x51], 0
jne 0x49c40a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x30], eax
lea edx, [eax - 1]
mov dword [esp + 0x3c], edx
mov dword [ecx + 0x38], edx
mov edx, edi
call fcn.0049aae0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x49c2b4
mov edx, dword [esp + 0x2c]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 0x25
call fcn.00453030
add esp, 0xc
jmp 0x49c2e7
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x2c]
mov eax, dword [esi + 0x6c]
mov edx, edi
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
push dword [esp + 0x28]
call fcn.004981a0
mov ecx, dword [esi + 0xc]
add esp, 0x18
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49c32f
push edx
mov edx, esi
call fcn.00453590
add esp, 4
jmp 0x49c338
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49c35c
mov edx, dword [esp + 0x34]
mov ecx, esi
push 0
push edx
push dword [esp + 0x1c]
mov edx, 5
call fcn.00453030
add esp, 0xc
jmp 0x49c38f
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49c3ad
push edx
mov edx, esi
call fcn.00453590
add esp, 4
jmp 0x49c3b6
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49c3d7
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x74
mov ecx, esi
call fcn.00453030
add esp, 0xc
jmp 0x49c40a
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4], 0x74
cmp dword [edi + 0x38], 0
jne 0x49b7e2
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xd8]
test edx, edx
jne 0x49c42f
xor eax, eax
mov dword [ecx + 0xd8], eax
jmp 0x49b7e6
mov eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
test edx, edx
jns 0x49c43e
mov edx, dword [eax + 0x6c]
dec edx
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x49c459
mov eax, 0x525494
mov eax, dword [eax + 8]
mov dword [ecx + 0xd8], eax
jmp 0x49b7e6
mov eax, dword [esp + 0x3c]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 0x68]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [ecx + 0xd8], eax
jmp 0x49b7e6
xor ecx, ecx
lea edx, [edi + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x34], ecx
jle 0x49c517
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x49c4c2
push ecx
mov edx, eax
mov ecx, esi
call fcn.0049adf0
mov ecx, dword [esp + 0x30]
add esp, 4
mov edx, dword [esp + 0x20]
test eax, eax
jne 0x49c4e9
jmp 0x49c4c4
xor eax, eax
mov esi, dword [edi + 0x1c]
cmp ecx, dword [esi]
mov esi, dword [esp + 0xc]
jge 0x49c4e9
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov edx, dword [esp + 0x38]
mov edx, dword [eax + edx + 4]
call fcn.00468910
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [edx], eax
test eax, eax
jne 0x49c4f8
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 0x38], 0x14
inc ecx
add edx, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
cmp ecx, dword [esp + 0x34]
jl 0x49c4a0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
nop dword [eax + eax]
add eax, 0x14
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], eax
nop
mov eax, dword [eax]
test eax, eax
js 0x49c5bd
lea ecx, [eax + eax*4]
mov eax, dword [esi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x49c54f
mov eax, 0x525494
jmp 0x49c554
mov eax, dword [esi + 0x68]
add eax, ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
inc dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x49c577
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.00453940
add esp, 4
jmp 0x49c59a
mov eax, dword [esi + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x49c593
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.00453aa0
add esp, 8
jmp 0x49c59a
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x38], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x2c], eax
cmp ecx, 2
jl 0x49c530
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x49c520
mov ecx, edi
call fcn.00499490
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49c674
mov ecx, dword [esp + 0x24]
mov edx, eax
push 1
call fcn.00496e50
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi]
sub eax, 0x85
je 0x49c63d
sub eax, 1
je 0x49c636
sub eax, 1
je 0x49c62f
mov eax, str.UNION
jmp 0x49c642
mov eax, str.INTERSECT
jmp 0x49c642
mov eax, str.EXCEPT
jmp 0x49c642
mov eax, str.UNION_ALL
push eax
test edx, edx
mov eax, str.ORDER_BY
mov edi, str.LIMIT
cmove eax, edi
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.00435200
mov eax, dword [esp + 0x58]
add esp, 0x10
mov dword [esi + 8], eax
mov ecx, 1
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], eax
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret