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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x540020]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
movups xmm0, xmmword [esi]
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x34]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x2c], edi
movq xmm0, qword [esi + 0x10]
movq qword [esp + 0x50], xmm0
mov edx, dword [eax + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], eax
test edx, edx
jne 0x495a19
cmp dword [eax + 0x3c], edx
jne 0x495a19
mov esi, dword [ecx + 8]
mov dword [esp + 0x30], esi
test esi, esi
jne 0x494b74
cmp dword [ecx + 0x74], esi
jne 0x494b69
mov eax, dword [esp + 0x28]
test byte [eax + 0x4c], 8
jne 0x494b69
mov byte [ecx + 0x17], 1
call fcn.0044cdd0
mov esi, eax
mov dword [esp + 0x30], eax
mov cl, byte [esp + 0x40]
cmp cl, 0xc
jne 0x494bdf
mov eax, dword [edi]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
cmp dword [esi + 0x70], ecx
jg 0x494ba6
push 0
push edx
push eax
mov edx, 0x71
mov ecx, esi
call fcn.0044d060
add esp, 0xc
jmp 0x494bd9
mov edi, dword [esp + 8]
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 + 0x2c]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov cl, 0xe
mov byte [esp + 0x40], cl
mov eax, dword [edi + 8]
test eax, 0x400
je 0x494ca0
mov eax, dword [edi + 0x3c]
xor edx, edx
test eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x34]
mov ecx, 1
sete dl
mov dword [esp + 8], ecx
test eax, eax
je 0x494c1f
nop dword [eax + eax]
mov edi, eax
add ecx, edx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x494c10
mov dword [esp + 8], ecx
mov esi, dword [esp + 0xc]
cmp ecx, 1
mov edx, 0x52120c
mov eax, 0x51274f
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push esi
call fcn.0044d350
add esp, 0x14
push 1
push 1
lea eax, [esp + 0x48]
mov edx, edi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004916c0
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x494c76
mov eax, dword [esp + 8]
mov word [edi + 6], ax
mov edi, dword [edi + 0x38]
test edi, edi
jne 0x494c45
mov edx, dword [esp + 0x38]
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 ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
test eax, 0x2000
je 0x494cbf
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, edi
call fcn.004943c0
add esp, 4
jmp 0x495845
cmp dword [edi + 0x30], 0
je 0x494cec
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
push edx
mov edx, edi
call fcn.004962e0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x34], 0
jne 0x494d24
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x14]
call fcn.0044d350
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x14]
call fcn.0044d350
mov cl, byte [esp + 0x4c]
add esp, 0xc
mov edx, dword [esp + 0x10]
movzx eax, byte [edi + 4]
sub eax, 0x7f
je 0x495411
sub eax, 1
je 0x4951cf
sub eax, 1
je 0x495411
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x3c], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [ecx + 0x28], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x494d7a
push 0
push 0
push dword [esp + 0x44]
mov edx, 0x71
mov ecx, esi
call fcn.0044d060
add esp, 0xc
mov edx, eax
jmp 0x494db1
mov edi, dword [esp + 0x3c]
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 + 0x2c]
mov dword [eax + ecx*4], 0x71
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 ecx, edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x494dc9
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x494dc0
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x70], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.00499b20
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4959d1
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x494e37
push eax
push eax
push dword [esp + 0x24]
lea edx, [eax + 0x71]
mov ecx, esi
call fcn.0044d060
add esp, 0xc
mov edx, eax
jmp 0x494e6e
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x1c], edx
mov eax, dword [edi + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
movzx eax, byte [edi + 4]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
sub eax, 0x80
je 0x494eb8
sub eax, 1
je 0x494eb1
sub eax, 1
je 0x494eaa
mov eax, str.UNION
jmp 0x494ebd
mov eax, str.INTERSECT
jmp 0x494ebd
mov eax, str.EXCEPT
jmp 0x494ebd
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x18]
call fcn.0044d350
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push eax
mov edx, edi
call fcn.00499b20
mov dword [esp + 0x38], eax
add esp, 0x14
mov eax, dword [edi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
movzx eax, word [eax + 6]
cmp word [edi + 6], ax
jle 0x494f01
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x494f11
mov ecx, dword [esp + 0x28]
call fcn.00464300
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [edi + 0x3c], eax
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x18], eax
lea edx, [eax - 1]
mov dword [esp + 0x14], edx
mov dword [ecx + 0x38], edx
mov edx, edi
call fcn.00493f50
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x494f5d
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
push edx
push dword [esp + 0x44]
mov edx, 0x24
call fcn.0044d060
add esp, 0xc
jmp 0x494f90
mov edx, dword [esp + 0x3c]
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 + 0x14]
mov dword [eax + ecx*4], 0x24
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 0x494fa3
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
jmp 0x494fb2
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edx, dword [ecx + eax*4 + 0x94]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 8], ecx
cmp dword [esi + 0x70], ecx
jg 0x494fe2
push 0
push edx
push dword [esp + 0x44]
mov edx, 0x7f
mov ecx, esi
call fcn.0044d060
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x495015
mov edi, dword [esp + 0x3c]
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 + 0x2c]
mov dword [eax + ecx*4], 0x7f
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 + 0x20], ecx
cmp dword [esi + 0x70], ecx
jg 0x495041
push edx
push dword [esp + 0x14]
mov edx, 0x1c
mov ecx, esi
push dword [esp + 0x24]
call fcn.0044d060
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, eax
jmp 0x495078
mov edi, dword [esp + 0x1c]
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 + 0x2c]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x495093
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 0x4950af
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x4950af
movzx eax, al
mov dword [ecx + eax*4 + 0x94], edx
inc byte [ecx + 0x13]
push dword [esp + 0x14]
lea eax, [esp + 0x44]
mov edx, edi
push dword [esp + 0x14]
push eax
push 0
push 0
push dword [esp + 0x50]
call fcn.004916c0
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 0x4950ec
push edx
mov edx, esi
call fcn.0044d4c0
add esp, 4
jmp 0x4950f5
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 0x495119
mov edx, dword [esp + 8]
mov ecx, esi
push 0
push edx
push dword [esp + 0x44]
mov edx, 5
call fcn.0044d060
add esp, 0xc
jmp 0x49514c
mov edx, dword [esp + 0x3c]
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 + 8]
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 + 0x14]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49516a
push edx
mov edx, esi
call fcn.0044d4c0
add esp, 4
jmp 0x495173
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 0x495197
push 0
push 0
push dword [esp + 0x24]
mov edx, 0x75
mov ecx, esi
call fcn.0044d060
add esp, 0xc
jmp 0x4957a1
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x75
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 0x4957a1
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [edx + 0x3c], eax
lea eax, [esp + 0x40]
push eax
call fcn.00499b20
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4959d1
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
mov dword [edi + 0x10], eax
test ecx, ecx
je 0x4952e7
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x18], edx
cmp dword [esi + 0x70], edx
jg 0x495252
push 0
push 0
push ecx
mov edx, 0x14
mov ecx, esi
call fcn.0044d060
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x495285
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x20]
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 + 0x10]
test edx, edx
je 0x4952e7
mov ecx, dword [edi + 0xc]
lea eax, [edx + 1]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4952b5
push edx
push eax
push dword [esp + 0x10]
mov edx, 0x98
mov ecx, esi
call fcn.0044d060
add esp, 0xc
jmp 0x4952e7
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 8]
mov dword [eax + ecx*4 + 4], esi
lea esi, [edx + 1]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x30]
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.0044d350
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
add esp, 0xc
mov edx, edi
push eax
call fcn.00499b20
movzx ecx, word [edi + 6]
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [esp + 0x20], ecx
movsx ecx, cx
movzx eax, word [eax + 6]
mov dword [esp + 8], eax
movsx edx, ax
cmp word [esp + 0x20], ax
jl 0x495366
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x495349
movzx eax, word [edi + 6]
jmp 0x495397
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x495357
movzx eax, word [edi + 6]
inc eax
jmp 0x495394
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 6]
jmp 0x495391
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x495376
mov ecx, dword [esp + 8]
movzx eax, cx
jmp 0x495397
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x495384
mov eax, dword [esp + 8]
inc eax
jmp 0x495394
sub edx, ecx
mov ecx, dword [esp + 8]
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, cx
movzx eax, ax
mov edx, dword [esp + 0x10]
mov word [edi + 6], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4953d3
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.00465840
test eax, eax
je 0x4953d3
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4953d3
cdq
push edx
push eax
call fcn.00430f70
add esp, 8
cmp word [edi + 6], ax
jle 0x4953d3
mov word [edi + 6], ax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4957f5
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4953f7
mov eax, 0x55011c
mov dword [eax + 8], edx
jmp 0x4957f5
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 0x4957f5
cmp cl, 1
jne 0x495423
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
jmp 0x4954ad
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x3c], edx
lea eax, [edx + 1]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x70], ecx
jg 0x49545a
push 0
push 0
push edx
mov edx, 0x71
mov ecx, esi
call fcn.0044d060
mov edx, dword [esp + 0x48]
add esp, 0xc
jmp 0x495491
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x71
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 + 0x20]
mov dword [edi + 0x18], eax
mov ecx, edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4954a9
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4954a0
or dword [ecx + 8], 0x20
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x84]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x10]
push eax
mov byte [esp + 0x88], 1
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.00499b20
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4959d1
cmp byte [edi + 4], 0x81
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 8], eax
sete al
inc al
mov dword [edi + 0x3c], ecx
mov byte [esp + 0x84], al
movzx eax, byte [edi + 4]
sub eax, 0x80
je 0x49554a
sub eax, 1
je 0x495543
sub eax, 1
je 0x49553c
mov eax, str.UNION
jmp 0x49554f
mov eax, str.INTERSECT
jmp 0x49554f
mov eax, str.EXCEPT
jmp 0x49554f
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x18]
call fcn.0044d350
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x94]
push eax
mov edx, edi
call fcn.00499b20
mov edx, dword [edi + 0x30]
add esp, 0x14
mov dword [esp + 0x24], eax
test edx, edx
je 0x49558a
mov ecx, dword [esp + 0x28]
call fcn.00465470
cmp byte [edi + 4], 0x7f
mov eax, dword [edi + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
jne 0x49562a
movzx ecx, word [edi + 6]
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
movsx ecx, cx
movsx edx, ax
cmp word [esp + 0x20], ax
jl 0x4955ec
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4955cf
movzx eax, word [edi + 6]
jmp 0x495626
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4955dd
movzx eax, word [edi + 6]
inc eax
jmp 0x495623
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 6]
jmp 0x495620
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x4955fd
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 6]
jmp 0x495626
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x49560f
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 6]
inc eax
jmp 0x495623
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 + 6]
add ax, cx
movzx eax, ax
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x49563a
mov ecx, dword [esp + 0x28]
call fcn.00464300
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 8]
mov dword [edi + 0x3c], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
je 0x4957f5
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x18], eax
lea edx, [eax - 1]
mov dword [esp + 0xc], edx
mov dword [ecx + 0x38], edx
mov edx, edi
call fcn.00493f50
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x49569f
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
push edx
push dword [esp + 0x44]
mov edx, 0x24
call fcn.0044d060
add esp, 0xc
jmp 0x4956d2
mov edx, dword [esp + 0x3c]
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 + 0x14]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x14]
mov eax, dword [esi + 0x6c]
mov edx, edi
push dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
push dword [esp + 0x50]
call fcn.004916c0
mov ecx, dword [esi + 0xc]
add esp, 0x18
mov edx, dword [esp + 8]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49571a
push edx
mov edx, esi
call fcn.0044d4c0
add esp, 4
jmp 0x495723
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 0x495747
mov edx, dword [esp + 0x18]
mov ecx, esi
push 0
push edx
push dword [esp + 0x44]
mov edx, 5
call fcn.0044d060
add esp, 0xc
jmp 0x49577a
mov edx, dword [esp + 0x3c]
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 + 0x18]
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 + 0x14]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x495798
push edx
mov edx, esi
call fcn.0044d4c0
add esp, 4
jmp 0x4957a1
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 0x4957c2
push 0
push 0
push dword [esp + 0x44]
mov edx, 0x75
mov ecx, esi
call fcn.0044d060
add esp, 0xc
jmp 0x4957f5
mov edx, dword [esp + 0x3c]
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], 0x75
cmp dword [edi + 0x38], 0
jne 0x495845
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xd4]
test edx, edx
jne 0x49580d
xor eax, eax
jmp 0x49583f
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
test edx, edx
jns 0x49581c
mov edx, dword [eax + 0x6c]
dec edx
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x49582b
mov eax, 0x55011c
jmp 0x49583c
mov eax, dword [esp + 0x20]
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 + 0xd4], eax
test byte [edi + 8], 0x20
je 0x4959cd
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x1c], eax
call fcn.00492910
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49587d
mov ecx, 7
mov dword [esp + 0x24], ecx
jmp 0x4959d1
xor ecx, ecx
lea edx, [eax + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x18], ecx
jle 0x495911
mov esi, dword [esp + 0xc]
mov dword [esp + 8], ecx
nop dword [eax]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4958c2
push ecx
mov edx, eax
mov ecx, esi
call fcn.00494230
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x4958e7
jmp 0x4958c4
xor eax, eax
mov esi, dword [edi]
cmp ecx, dword [esi]
mov esi, dword [esp + 0xc]
jge 0x4958e7
mov eax, dword [edi]
mov ecx, esi
mov edx, dword [esp + 8]
mov edx, dword [eax + edx + 4]
call fcn.004630f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
test eax, eax
jne 0x4958f6
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 8], 0x18
inc ecx
add edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
cmp ecx, dword [esp + 0x18]
jl 0x4958a0
mov esi, dword [esp + 0x30]
lea eax, [edi + 0x18]
mov dword [esp + 8], 0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
test eax, eax
js 0x4959b1
lea ecx, [eax + eax*4]
mov eax, dword [esi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x495943
mov eax, 0x55011c
jmp 0x495948
mov eax, dword [esi + 0x68]
add eax, ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
inc dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x49596b
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.0044d880
add esp, 4
jmp 0x49598e
mov eax, dword [esi + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x495987
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.0044da00
add esp, 8
jmp 0x49598e
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
inc ecx
mov dword [esp + 8], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 2
jl 0x495924
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x495911
mov ecx, dword [esp + 0x10]
call fcn.004929d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x495a7a
mov ecx, dword [esp + 0x28]
mov edx, eax
push 1
call fcn.004902f0
mov ecx, dword [esp + 0x28]
add esp, 4
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x80
je 0x495a43
sub eax, 1
je 0x495a3c
sub eax, 1
je 0x495a35
mov eax, str.UNION
jmp 0x495a48
mov eax, str.INTERSECT
jmp 0x495a48
mov eax, str.EXCEPT
jmp 0x495a48
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.0042fce0
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
mov eax, ecx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.004ddc19
mov esp, ebp
pop ebp
ret