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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x4f3070]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
movups xmm0, xmmword [edi]
mov edx, dword [esi + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x58], eax
movq xmm0, qword [edi + 0x10]
movq qword [esp + 0x50], xmm0
mov edi, dword [edx + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
test edi, edi
jne 0x47f057
cmp dword [edx + 0x3c], edi
jne 0x47f057
mov edi, dword [ecx + 8]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x47e867
cmp dword [ecx + 0x74], edi
jne 0x47e85c
mov eax, dword [esp + 0x28]
test byte [eax + 0x4c], 8
jne 0x47e85c
mov byte [ecx + 0x17], 1
call fcn.00439340
mov edi, eax
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x40], 0xc
jne 0x47e88b
mov ecx, dword [esi + 0x1c]
mov edx, 0x64
push dword [ecx]
mov ecx, edi
push dword [esp + 0x48]
call fcn.00439860
add esp, 8
mov byte [esp + 0x40], 0xe
test dword [esi + 4], 0x400
je 0x47e8b5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.0047e730
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jns 0x47f013
test dword [esi + 4], 0x2000
je 0x47e8d0
mov eax, esi
test dword [eax + 4], 0x2000
je 0x47e8fd
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x47e8c0
cmp dword [esi + 0x30], 0
je 0x47e91d
mov ecx, dword [esp + 0x34]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.0047f5a0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
mov ecx, edi
call fcn.0047dfa0
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x47eec0
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x34], 0
jne 0x47e951
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x18]
call fcn.00439cd0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x18]
call fcn.00439cd0
mov ecx, dword [esp + 0x20]
add esp, 0xc
movzx eax, byte [esi]
sub eax, 0x84
je 0x47ecad
sub eax, 1
je 0x47eb8b
sub eax, 1
je 0x47ecad
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x64
mov dword [esp + 0x28], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.00439860
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x38]
mov ecx, esi
test eax, eax
je 0x47e9ae
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x47e9a5
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x68], 1
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.00483560
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47f013
push eax
push dword [esp + 0x24]
lea edx, [eax + 0x64]
mov ecx, edi
call fcn.00439860
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x3c]
movzx ecx, byte [esi]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x70], eax
call fcn.0047c2a0
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x24]
call fcn.00439cd0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x7c]
push eax
mov edx, esi
call fcn.00483560
mov ecx, eax
add esp, 0x1c
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov dword [esp + 0x1c], ecx
movzx eax, word [eax + 2]
cmp word [esi + 2], ax
jle 0x47ea7f
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x47ea93
mov ecx, dword [esp + 0x28]
call fcn.00451450
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
test ecx, ecx
jne 0x47eeaf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov esi, dword [ecx + 0x38]
dec esi
push esi
mov dword [esp + 0x18], esi
lea eax, [esi - 1]
mov dword [ecx + 0x38], eax
call fcn.0047dcb0
add esp, 4
mov edx, 0x25
mov ecx, edi
push esi
push dword [esp + 0x1c]
call fcn.00439860
mov ecx, dword [esp + 0x18]
call fcn.00458ee0
mov esi, eax
mov edx, 0x7f
push esi
push dword [esp + 0x24]
mov ecx, edi
call fcn.00439860
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x24]
mov edx, 0x1d
push 0
push esi
dec eax
push eax
push dword [esp + 0x3c]
call fcn.00439e90
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.00458f00
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
push eax
lea esi, [eax - 1]
push esi
lea eax, [esp + 0x68]
push eax
push 0
push 0
push dword [esp + 0x4c]
call fcn.0047b360
mov edx, esi
mov esi, dword [esp + 0x64]
mov ecx, esi
call fcn.0043a000
push edi
mov edi, dword [esp + 0x54]
mov edx, 5
push edi
mov ecx, esi
call fcn.00439860
mov edx, dword [esp + 0x54]
add esp, 0x40
mov ecx, esi
call fcn.0043a000
lea eax, [edi + 1]
mov edx, 0x74
push 0
push eax
mov ecx, esi
call fcn.00439860
push 0
push edi
mov edx, 0x74
mov ecx, esi
call fcn.00439860
add esp, 0x10
jmp 0x47eeab
xor eax, eax
mov edx, ecx
mov dword [esp + 0x20], 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 + 0x40]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00483560
mov ecx, eax
mov dword [esi + 0x3c], 0
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47f013
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x47ec12
push ecx
mov edx, 0x14
mov ecx, edi
call fcn.00439800
mov ecx, dword [esi + 0xc]
add esp, 4
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x47ec12
push ecx
inc ecx
mov edx, 0x99
push ecx
push dword [esi + 8]
mov ecx, edi
call fcn.00439730
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x18]
call fcn.00439cd0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
add esp, 0xc
mov edx, esi
push eax
call fcn.00483560
mov cx, word [esi + 2]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov dx, word [eax + 2]
call fcn.0041c0c0
mov edx, dword [esp + 0x14]
mov word [esi + 2], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x47ec93
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.00452b50
test eax, eax
je 0x47ec93
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x47ec93
cdq
push edx
push eax
call fcn.0041c120
add esp, 8
cmp word [esi + 2], ax
jle 0x47ec93
mov word [esi + 2], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47eeaf
mov edx, eax
mov ecx, edi
call fcn.0043a2c0
jmp 0x47eeaf
cmp byte [esp + 0x40], 1
jne 0x47ecbe
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jmp 0x47ed01
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x64
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.00439860
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x38]
mov ecx, esi
test eax, eax
je 0x47ecf9
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x47ecf0
or dword [ecx + 4], 0x20
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0x84], 1
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.00483560
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47f013
cmp byte [esi], 0x86
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x3c], eax
sete al
mov dword [esi + 0x3c], ecx
inc al
movzx ecx, byte [esi]
mov byte [esp + 0x80], al
call fcn.0047c2a0
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.00439cd0
lea eax, [esp + 0x90]
mov edx, esi
push eax
mov ecx, edi
call fcn.00483560
mov dword [esp + 0x30], eax
add esp, 0x14
cmp byte [esi], 0x84
mov eax, dword [esi + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
jne 0x47edd9
mov dx, word [eax + 2]
mov cx, word [esi + 2]
call fcn.0041c0c0
mov word [esi + 2], ax
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x47ede9
mov ecx, dword [esp + 0x28]
call fcn.00451450
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x47eeb3
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x51], 0
jne 0x47eeb3
mov esi, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
dec esi
mov edx, dword [esp + 0x24]
mov ecx, eax
push esi
mov dword [esp + 0x24], esi
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.0047dcb0
add esp, 4
mov edx, 0x25
push esi
push dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00439860
push dword [esp + 0x28]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esi + 0x6c]
push edi
push eax
push 0
push 0
push dword [esp + 0x34]
call fcn.0047b360
mov edx, edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
call fcn.0043a000
push esi
mov esi, dword [esp + 0x3c]
mov edx, 5
push esi
mov ecx, edi
call fcn.00439860
mov edx, dword [esp + 0x48]
mov ecx, edi
call fcn.0043a000
push 0
push esi
mov edx, 0x74
mov ecx, edi
call fcn.00439860
add esp, 0x30
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x38], 0
jne 0x47eec0
mov ecx, edi
call fcn.00439d30
cmp dword [edi + 0x24], 0
jne 0x47f013
test byte [esi + 4], 0x20
je 0x47f013
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x28]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x24], eax
call fcn.0047c140
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
test edi, edi
jne 0x47eeff
lea esi, [eax + 7]
jmp 0x47f017
lea eax, [edi + 0x14]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], eax
jle 0x47ef50
mov edi, dword [esp + 0x10]
push eax
mov edx, esi
mov ecx, edi
call fcn.0047de00
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x47ef36
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add ecx, 4
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jl 0x47ef16
mov edi, dword [esp + 0x38]
lea eax, [esi + 0x14]
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
test eax, eax
js 0x47eff1
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x47ef7c
mov ecx, 0x4f66a4
jmp 0x47ef85
mov ecx, dword [esi + 0x68]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x47efa6
push edi
mov edx, 0xfffffff7
call fcn.0043a4e0
add esp, 4
jmp 0x47efce
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x47efc7
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.0043a6e0
add esp, 8
jmp 0x47efce
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 2
jl 0x47ef63
mov esi, dword [esp + 0x24]
mov esi, dword [esi + 0x34]
mov dword [esp + 0x24], esi
test esi, esi
jne 0x47ef50
add dword [edi], 0xffffffff
jne 0x47f013
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.004175d0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x47f041
mov ecx, dword [esp + 0x28]
mov edx, eax
push 1
call fcn.0047a1a0
add esp, 4
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi]
sub eax, 0x85
je 0x47f080
sub eax, 1
je 0x47f079
sub eax, 1
je 0x47f072
mov eax, str.UNION
jmp 0x47f085
mov eax, str.INTERSECT
jmp 0x47f085
mov eax, str.EXCEPT
jmp 0x47f085
mov eax, str.UNION_ALL
push eax
mov edx, str.LIMIT
test edi, edi
mov eax, str.ORDER_BY
cmove eax, edx
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.0041abf0
add esp, 0x10
mov esi, 1
jmp 0x47f017