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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0x44], eax
xor edx, edx
mov dword [esp + 0x30], esi
movups xmm0, xmmword [eax]
push edi
mov edi, dword [esi + 0x34]
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x44], edx
movq xmm0, qword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x38], edx
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x68], eax
mov edx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edi
test edx, edx
jne 0x4c9312
cmp dword [edi + 0x3c], edx
jne 0x4c9312
mov edi, dword [ecx + 8]
mov dword [esp + 0x40], edi
test edi, edi
jne 0x4c8407
cmp dword [ecx + 0x74], edi
jne 0x4c83fc
mov eax, dword [esp + 0x38]
test byte [eax + 0x4c], 8
jne 0x4c83fc
mov byte [ecx + 0x17], 1
call fcn.0047a090
mov edi, eax
mov dword [esp + 0x40], eax
cmp byte [esp + 0x50], 0xc
jne 0x4c8470
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c8438
push 0
push edx
push eax
mov edx, 0x64
mov ecx, edi
call fcn.0047a300
add esp, 0xc
jmp 0x4c846b
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x40]
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 + 0x50], 0xe
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
test eax, 0x400
je 0x4c84d1
mov eax, esi
mov dword [esp + 0x28], 0
mov ecx, 1
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x3c]
test edx, edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
sete dl
cmp dword [eax + 0x44], 0
jne 0x4c84c9
nop word [eax + eax]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4c8542
mov esi, eax
add ecx, edx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x44], 0
je 0x4c84b0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
test eax, 0x2000
je 0x4c85a0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
mov edx, esi
call fcn.004c7b80
add esp, 4
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x24], 0
jne 0x4c92c6
test byte [esi + 4], 0x20
je 0x4c92c6
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x38]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x2c], eax
call fcn.004c5e40
mov edx, eax
add esp, 4
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x4c9170
mov ecx, 7
mov dword [esp + 0x30], ecx
jmp 0x4c92ca
mov edi, dword [esp + 0x14]
cmp ecx, 1
mov edx, 0x602e7c
mov eax, 0x5f8cb8
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push edi
call fcn.0047a8e0
add esp, 0x14
push 1
push 1
lea eax, [esp + 0x58]
mov edx, esi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call fcn.004c4a30
add esp, 0x18
cmp dword [esp + 0x24], 0
jne 0x4c8599
mov eax, dword [esp + 0x1c]
mov word [esi + 2], ax
mov esi, dword [esi + 0x38]
test esi, esi
jne 0x4c8568
xor ecx, ecx
jmp 0x4c9364
cmp dword [esi + 0x30], 0
je 0x4c85cd
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push edx
mov edx, esi
call fcn.004c9c50
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x34], 0
jne 0x4c8601
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x1c]
call fcn.0047a8e0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x1c]
call fcn.0047a8e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movzx eax, byte [esi]
sub eax, 0x84
je 0x4c8d1a
sub eax, 1
je 0x4c8acd
sub eax, 1
je 0x4c8d1a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0x2c], eax
inc eax
mov dword [ecx + 0x28], eax
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x4c8658
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x64
mov ecx, edi
call fcn.0047a300
add esp, 0xc
mov edx, eax
jmp 0x4c868f
mov esi, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x34]
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 [esi + 0x14], edx
mov ecx, esi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c86a9
nop dword [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4c86a0
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
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.004cdba0
mov ecx, eax
add esp, 4
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x4c92ca
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x4c8728
push eax
push eax
push dword [esp + 0x34]
lea edx, [eax + 0x64]
mov ecx, edi
call fcn.0047a300
add esp, 0xc
mov edx, eax
jmp 0x4c875f
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x40]
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 [esi + 0x18], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
movzx eax, byte [esi]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
sub eax, 0x85
je 0x4c87a8
sub eax, 1
je 0x4c87a1
sub eax, 1
je 0x4c879a
mov eax, str.UNION
jmp 0x4c87ad
mov eax, str.INTERSECT
jmp 0x4c87ad
mov eax, str.EXCEPT
jmp 0x4c87ad
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x20]
call fcn.0047a8e0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x84]
push eax
mov edx, esi
call fcn.004cdba0
mov edx, dword [esi + 0x34]
add esp, 0x14
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov dword [esp + 0x44], edx
movzx eax, word [eax + 2]
cmp word [esi + 2], ax
jle 0x4c87f4
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x4c8804
mov ecx, dword [esp + 0x38]
call fcn.00492560
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x3c], eax
jne 0x4c9102
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x28], eax
lea edx, [eax - 1]
mov dword [esp + 0x24], edx
mov dword [ecx + 0x38], edx
mov edx, esi
call fcn.004c76d0
mov ecx, dword [edi + 0x6c]
add esp, 4
cmp dword [edi + 0x70], ecx
jg 0x4c885b
mov edx, dword [esp + 0x24]
mov ecx, edi
push 0
push edx
push dword [esp + 0x20]
mov edx, 0x25
call fcn.0047a300
add esp, 0xc
jmp 0x4c888e
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
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 + 0x14]
mov al, byte [ecx + 0x13]
test al, al
jne 0x4c88a1
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
jmp 0x4c88b0
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edx, dword [ecx + eax*4 + 0x98]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x70], ecx
jg 0x4c88e0
push 0
push edx
push dword [esp + 0x20]
mov edx, 0x7e
mov ecx, edi
call fcn.0047a300
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x4c8913
mov esi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x34]
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 [edi + 0x6c]
mov dword [esp + 0x3c], ecx
cmp dword [edi + 0x70], ecx
jg 0x4c893f
push edx
push dword [esp + 0x24]
mov edx, 0x1d
mov ecx, edi
push dword [esp + 0x34]
call fcn.0047a300
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, eax
jmp 0x4c8976
mov esi, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x34]
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 [edi]
cmp byte [eax + 0x51], 0
jne 0x4c8991
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x4c89ad
mov al, byte [ecx + 0x13]
cmp al, 8
jae 0x4c89ad
movzx eax, al
mov dword [ecx + eax*4 + 0x98], edx
inc byte [ecx + 0x13]
push dword [esp + 0x24]
lea eax, [esp + 0x54]
mov edx, esi
push dword [esp + 0x24]
push eax
push 0
push 0
push dword [esp + 0x2c]
call fcn.004c4a30
mov ecx, dword [edi + 0xc]
add esp, 0x18
mov edx, dword [esp + 0x20]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c89ea
push edx
mov edx, edi
call fcn.0047aae0
add esp, 4
jmp 0x4c89f3
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c8a17
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
push edx
push dword [esp + 0x20]
mov edx, 5
call fcn.0047a300
add esp, 0xc
jmp 0x4c8a4a
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
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 [edi + 0xc]
mov edx, dword [esp + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c8a68
push edx
mov edx, edi
call fcn.0047aae0
add esp, 4
jmp 0x4c8a71
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c8a95
push 0
push 0
push dword [esp + 0x34]
mov edx, 0x74
mov ecx, edi
call fcn.0047a300
add esp, 0xc
jmp 0x4c90ae
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 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 0x4c90ae
xor eax, eax
mov edx, ecx
mov dword [esp + 0x1c], 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 + 0x50]
mov ecx, dword [esp + 0x14]
push eax
call fcn.004cdba0
mov ecx, eax
mov dword [esi + 0x3c], 0
add esp, 4
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x4c92ca
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
test edx, edx
je 0x4c8be3
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x1c], ecx
cmp dword [edi + 0x70], ecx
jg 0x4c8b4e
push 0
push 0
push edx
mov edx, 0x14
mov ecx, edi
call fcn.0047a300
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x4c8b81
mov esi, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 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 [esi + 0xc]
test edx, edx
je 0x4c8be3
mov ecx, dword [esi + 8]
lea eax, [edx + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c8bb1
push edx
push eax
push dword [esp + 0x30]
mov edx, 0x98
mov ecx, edi
call fcn.0047a300
add esp, 0xc
jmp 0x4c8be3
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edi
lea edi, [edx + 1]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x40]
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 + 0x1c]
call fcn.0047a8e0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
add esp, 0xc
mov edx, esi
push eax
call fcn.004cdba0
mov edx, dword [esi + 0x34]
add esp, 4
movzx ecx, word [esi + 2]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
movzx eax, word [eax + 2]
movsx ecx, cx
movsx edx, ax
cmp word [esp + 0x3c], ax
jl 0x4c8c6a
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4c8c45
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
jmp 0x4c8ca4
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4c8c57
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
inc eax
jmp 0x4c8ca1
sub ecx, edx
mov edx, dword [esp + 0x20]
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [esi + 2]
jmp 0x4c8c9e
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x4c8c7b
mov edx, dword [esp + 0x20]
movzx eax, word [edx + 2]
jmp 0x4c8ca4
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x4c8c8d
mov edx, dword [esp + 0x20]
movzx eax, word [edx + 2]
inc eax
jmp 0x4c8ca1
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 2]
add ax, cx
movzx eax, ax
mov word [esi + 2], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4c8cdc
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x4c]
call fcn.00493b30
test eax, eax
je 0x4c8cdc
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x4c8cdc
cdq
push edx
push eax
call fcn.0045cda0
add esp, 8
cmp word [esi + 2], ax
jle 0x4c8cdc
mov word [esi + 2], ax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4c9102
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4c8d00
mov eax, 0x60d7e0
mov dword [eax + 8], edx
jmp 0x4c9102
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4c9102
cmp byte [esp + 0x50], 1
jne 0x4c8d2e
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
jmp 0x4c8db4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x18], eax
inc eax
mov dword [ecx + 0x28], eax
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x4c8d60
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x64
mov ecx, edi
call fcn.0047a300
add esp, 0xc
mov edx, eax
jmp 0x4c8d97
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x40]
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 [esi + 0x14], edx
mov ecx, esi
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c8dac
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x4c8da3
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x94], 1
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call fcn.004cdba0
mov ecx, eax
add esp, 4
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x4c92ca
cmp byte [esi], 0x86
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
sete al
inc al
mov dword [esi + 0x3c], ecx
mov byte [esp + 0x90], al
movzx eax, byte [esi]
sub eax, 0x85
je 0x4c8e5a
sub eax, 1
je 0x4c8e53
sub eax, 1
je 0x4c8e4c
mov eax, str.UNION
jmp 0x4c8e5f
mov eax, str.INTERSECT
jmp 0x4c8e5f
mov eax, str.EXCEPT
jmp 0x4c8e5f
mov eax, str.UNION_ALL
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x20]
call fcn.0047a8e0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa0]
push eax
mov edx, esi
call fcn.004cdba0
mov edx, dword [esi + 0x34]
add esp, 0x14
cmp byte [esi], 0x84
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
jne 0x4c8f29
movzx ecx, word [esi + 2]
movzx eax, word [eax + 2]
mov dword [esp + 0x4c], ecx
movsx ecx, cx
movsx edx, ax
cmp word [esp + 0x4c], ax
jl 0x4c8eeb
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4c8ece
movzx eax, word [esi + 2]
jmp 0x4c8f25
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4c8edc
movzx eax, word [esi + 2]
inc eax
jmp 0x4c8f22
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [esi + 2]
jmp 0x4c8f1f
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x4c8efc
mov edx, dword [esp + 0x20]
movzx eax, word [edx + 2]
jmp 0x4c8f25
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x4c8f0e
mov edx, dword [esp + 0x20]
movzx eax, word [edx + 2]
inc eax
jmp 0x4c8f22
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 2]
add ax, cx
movzx eax, ax
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x4c8f39
mov ecx, dword [esp + 0x38]
call fcn.00492560
cmp byte [esp + 0x50], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x4c9102
mov eax, dword [esp + 0x38]
cmp byte [eax + 0x51], 0
jne 0x4c9102
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
dec eax
push eax
mov dword [esp + 0x28], eax
lea edx, [eax - 1]
mov dword [esp + 0x20], edx
mov dword [ecx + 0x38], edx
mov edx, esi
call fcn.004c76d0
mov ecx, dword [edi + 0x6c]
add esp, 4
cmp dword [edi + 0x70], ecx
jg 0x4c8fac
mov edx, dword [esp + 0x24]
mov ecx, edi
push 0
push edx
push dword [esp + 0x20]
mov edx, 0x25
call fcn.0047a300
add esp, 0xc
jmp 0x4c8fdf
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
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 + 0x24]
mov eax, dword [edi + 0x6c]
mov edx, esi
push dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x58]
push eax
push 0
push 0
push dword [esp + 0x2c]
call fcn.004c4a30
mov ecx, dword [edi + 0xc]
add esp, 0x18
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c9027
push edx
mov edx, edi
call fcn.0047aae0
add esp, 4
jmp 0x4c9030
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c9054
mov edx, dword [esp + 0x28]
mov ecx, edi
push 0
push edx
push dword [esp + 0x20]
mov edx, 5
call fcn.0047a300
add esp, 0xc
jmp 0x4c9087
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
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 [edi + 0xc]
mov edx, dword [esp + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c90a5
push edx
mov edx, edi
call fcn.0047aae0
add esp, 4
jmp 0x4c90ae
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c90cf
push 0
push 0
push dword [esp + 0x20]
mov edx, 0x74
mov ecx, edi
call fcn.0047a300
add esp, 0xc
jmp 0x4c9102
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 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 [esi + 0x38], 0
jne 0x4c84f5
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xd8]
test edx, edx
jne 0x4c9127
xor eax, eax
mov dword [ecx + 0xd8], eax
jmp 0x4c84f9
mov eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
test edx, edx
jns 0x4c9136
mov edx, dword [eax + 0x6c]
dec edx
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
je 0x4c9151
mov eax, 0x60d7e0
mov eax, dword [eax + 8]
mov dword [ecx + 0xd8], eax
jmp 0x4c84f9
mov eax, dword [esp + 0x3c]
lea ecx, [edx + edx*4]
mov eax, dword [eax + 0x68]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov dword [ecx + 0xd8], eax
jmp 0x4c84f9
xor ecx, ecx
lea eax, [edx + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], ecx
jle 0x4c9200
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
nop
mov edx, dword [esi + 0x34]
test edx, edx
je 0x4c91ac
push ecx
mov ecx, edi
call fcn.004c79e0
mov ecx, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x4c91c8
jmp 0x4c91ae
xor eax, eax
mov edx, dword [esi + 0x1c]
cmp ecx, dword [edx]
jge 0x4c91c8
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [edx + eax + 4]
call fcn.004914c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [edx], eax
test eax, eax
jne 0x4c91db
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
mov dword [edx], eax
add dword [esp + 0x1c], 0x14
inc ecx
add edx, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
cmp ecx, dword [esp + 0x28]
jl 0x4c9190
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
nop word [eax + eax]
lea eax, [esi + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea esi, [edi + 0x68]
mov eax, dword [eax]
test eax, eax
js 0x4c92ac
lea ecx, [eax + eax*4]
mov eax, dword [edi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x4c9231
mov eax, 0x60d7e0
jmp 0x4c9235
mov eax, dword [esi]
add eax, ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
inc dword [edx]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4c9263
push edx
mov edx, 0xfffffff7
mov ecx, eax
call fcn.0047af00
mov edx, dword [esp + 0x30]
lea esi, [edi + 0x68]
add esp, 4
jmp 0x4c9289
mov eax, dword [esi]
add eax, ecx
cmp byte [eax + 1], 0
je 0x4c9282
push 0xfffffffffffffff7
push edx
mov edx, eax
mov ecx, edi
call fcn.0047b0d0
mov edx, dword [esp + 0x34]
add esp, 8
jmp 0x4c9289
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x24], eax
cmp ecx, 2
jl 0x4c9212
mov esi, dword [esp + 0x34]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x34], esi
test esi, esi
jne 0x4c9200
mov ecx, edx
call fcn.004c5f00
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c9376
mov ecx, dword [esp + 0x38]
mov edx, eax
push 1
call fcn.004c3630
mov ecx, dword [esp + 0x34]
add esp, 4
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi]
sub eax, 0x85
je 0x4c933b
sub eax, 1
je 0x4c9334
sub eax, 1
je 0x4c932d
mov eax, str.UNION
jmp 0x4c9340
mov eax, str.INTERSECT
jmp 0x4c9340
mov eax, str.EXCEPT
jmp 0x4c9340
mov eax, str.UNION_ALL
push eax
test edx, edx
mov eax, str.ORDER_BY
mov esi, str.LIMIT
cmove eax, esi
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.0045b840
add esp, 0x10
mov ecx, 1
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 0x10], eax
mov eax, ecx
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret