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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x34]
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, 7
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 8]
test edi, edi
mov dword [esp + 0x18], edx
jne 0x47dff9
cmp dword [eax + 0x78], edi
jne 0x47dfed
test byte [edx + 0x50], 8
jne 0x47dfed
mov byte [eax + 0x17], 1
mov ebx, eax
call fcn.0043c140
mov ebx, dword [ebp + 0xc]
mov edi, eax
cmp byte [esp + 0x2c], 0xc
jne 0x47e01d
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
push 0
push eax
push ecx
push 0x76
push edi
call fcn.0043c3f0
add esp, 0x14
mov byte [esp + 0x2c], 0xe
test dword [ebx + 4], 0x400
je 0x47e04c
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
mov eax, ebx
call fcn.0047df10
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jge 0x47e731
mov dword [esp + 0x10], 0
mov ecx, 0x2000
test dword [ebx + 4], ecx
je 0x47e064
mov eax, ebx
test dword [eax + 4], ecx
je 0x47e082
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x47e058
cmp dword [ebx + 0x30], 0
je 0x47e098
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push ebx
push edx
call fcn.0047eb40
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 8]
push ebx
call fcn.0047d930
add esp, 8
jmp 0x47e5f0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
jne 0x47e0c3
mov ebx, dword [ebp + 8]
push str.COMPOUND_QUERY
push 1
call fcn.0043c7b0
push str.LEFT_MOST_SUBQUERY
push 1
call fcn.0043c7b0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
movzx eax, byte [ebx]
sub eax, 0x86
je 0x47e40f
sub eax, 1
je 0x47e2e9
sub eax, 1
je 0x47e40f
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x28]
push 0
push 0
push esi
lea ecx, [esi + 2]
push 0x76
push edi
mov dword [esp + 0x34], esi
mov dword [eax + 0x28], ecx
call fcn.0043c3f0
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x38]
add esp, 0x14
test ecx, ecx
mov eax, ebx
je 0x47e119
nop
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x47e110
or dword [eax + 4], 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
lea edx, [esp + 0x48]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
mov byte [esp + 0x54], 1
mov dword [esp + 0x58], esi
call fcn.004832b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x47e731
push eax
push eax
add esi, 1
push esi
push 0x76
push edi
call fcn.0043c3f0
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x3c], eax
movzx eax, byte [ebx]
add esp, 0x14
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], esi
call fcn.0047c100
mov ebx, dword [ebp + 8]
push eax
push str._s_USING_TEMP_B_TREE
push 1
call fcn.0043c7b0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
push ecx
call fcn.004832b0
mov edx, dword [ebx + 0x34]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x34], eax
movzx eax, word [eax + 2]
add esp, 0xc
cmp word [ebx + 2], ax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
jle 0x47e1d3
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x47e1e8
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00452b80
add esp, 8
test esi, esi
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x3c], ecx
jne 0x47e5df
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
add eax, 0xffffffff
push eax
lea ecx, [eax - 1]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esi + 0x38], ecx
call fcn.0047d670
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 0
push edx
push eax
push 0x24
push edi
call fcn.0043c3f0
add esp, 0x1c
mov eax, esi
call fcn.00459eb0
mov ecx, dword [esp + 0x20]
push 0
mov esi, eax
push esi
push ecx
push 0x86
push edi
mov dword [esp + 0x38], esi
call fcn.0043c3f0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x28], eax
push 0
mov eax, esi
push 0x1c
add ecx, 0xffffffff
add edx, 1
mov esi, edi
call fcn.0043c9a0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
call fcn.00459ed0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
push ecx
add ecx, 0xffffffff
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push esi
push ebx
mov ecx, eax
call fcn.0047b700
mov eax, dword [esp + 0x38]
add esp, 0x24
add eax, 0xffffffff
mov ecx, edi
call fcn.0043caa0
mov eax, dword [esp + 0x28]
push 0
push eax
push esi
push 0x27
push edi
call fcn.0043c3f0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov ecx, edi
call fcn.0043caa0
push 0
push 0
lea eax, [esi + 1]
push eax
push 0x7a
push edi
call fcn.0043c3f0
add esp, 0x14
push 0
push 0
push esi
push 0x7a
push edi
call fcn.0043c3f0
jmp 0x47e5dc
mov ecx, dword [ebx + 8]
mov esi, dword [esp + 0x14]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0xc]
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x3c]
push esi
push edx
mov dword [esi + 0x3c], eax
call fcn.004832b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x3c], 0
jne 0x47e731
mov dword [ebx + 0x34], eax
mov eax, esi
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
mov eax, ecx
test eax, eax
mov dword [ebx + 0xc], edx
je 0x47e377
push 0
push 0
push eax
push 0x11
push edi
call fcn.0043c3f0
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
add esp, 0x14
test eax, eax
je 0x47e377
push eax
add eax, 1
push eax
mov eax, dword [ebx + 8]
push eax
push 0xa0
push edi
call fcn.0043c3f0
add esp, 0x14
mov ebx, dword [ebp + 8]
push str.UNION_ALL
push 1
call fcn.0043c7b0
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
call fcn.004832b0
mov cx, word [ebx + 2]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov eax, esi
mov dword [ebx + 0x34], eax
mov ax, word [eax + 2]
add esp, 0x14
call fcn.0041dff0
mov si, ax
mov eax, dword [ebx + 0x3c]
test eax, eax
mov word [ebx + 2], si
je 0x47e3f7
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004540f0
add esp, 8
test eax, eax
je 0x47e3f7
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x47e3f7
cdq
push edx
push eax
call fcn.0041e040
add esp, 8
cmp si, ax
jle 0x47e3f7
mov word [ebx + 2], ax
mov edx, dword [esp + 0x20]
test edx, edx
je 0x47e5df
mov eax, edi
call fcn.0043cd40
jmp 0x47e5df
cmp byte [esp + 0x2c], 1
mov esi, dword [ebp + 8]
jne 0x47e423
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jmp 0x47e45d
mov eax, dword [esi + 0x28]
push 0
push 0
push eax
lea ecx, [eax + 1]
push 0x76
push edi
mov dword [esp + 0x34], eax
mov dword [esi + 0x28], ecx
call fcn.0043c3f0
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x38]
add esp, 0x14
test ecx, ecx
mov eax, ebx
je 0x47e459
lea esp, [esp]
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x47e450
or dword [eax + 4], 0x20
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x64]
push eax
push ecx
push esi
mov byte [esp + 0x70], 1
mov dword [esp + 0x74], edx
call fcn.004832b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x47e731
mov cl, byte [ebx]
mov edx, dword [ebx + 0x3c]
cmp cl, 0x88
sete al
add al, 1
mov byte [esp + 0x64], al
movzx eax, cl
mov dword [ebx + 0x34], 0
mov dword [esp + 0x28], edx
mov dword [ebx + 0x3c], 0
call fcn.0047c100
push eax
push str._s_USING_TEMP_B_TREE
push 1
mov ebx, esi
call fcn.0043c7b0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push ebx
push ecx
call fcn.004832b0
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
xor esi, esi
add esp, 0xc
cmp byte [ebx], 0x86
mov dword [esp + 0x1c], edx
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], esi
jne 0x47e51a
mov ax, word [eax + 2]
mov cx, word [ebx + 2]
call fcn.0041dff0
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x3c]
cmp eax, esi
je 0x47e52f
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00452b80
add esp, 8
cmp byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
je 0x47e5df
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x57], 0
jne 0x47e5df
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x38]
add ebx, 0xffffffff
lea eax, [ebx - 1]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
call fcn.0047d670
mov esi, dword [esp + 0x28]
push 0
push ebx
push esi
push 0x24
push edi
call fcn.0043c3f0
mov ecx, dword [edi + 0x6c]
add esp, 0x1c
push ebx
lea eax, [ebx - 1]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x34]
push edx
push 0
push 0
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.0047b700
add esp, 0x1c
lea eax, [ebx - 1]
mov ecx, edi
call fcn.0043caa0
mov ecx, dword [esp + 0x28]
push 0
push ecx
push esi
push 0x27
push edi
call fcn.0043c3f0
add esp, 0x14
mov eax, ebx
mov ecx, edi
call fcn.0043caa0
push 0
push 0
push esi
push 0x7a
push edi
call fcn.0043c3f0
mov ebx, dword [ebp + 0xc]
add esp, 0x14
cmp dword [ebx + 0x38], 0
jne 0x47e5ed
mov ecx, dword [ebp + 8]
call fcn.0043c870
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
jne 0x47e731
test byte [ebx + 4], 0x20
je 0x47e731
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov ebx, dword [esp + 0x18]
push 1
push eax
mov dword [esp + 0x1c], eax
call fcn.0047bfd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47e632
mov dword [esp + 0x10], 7
jmp 0x47e731
xor esi, esi
cmp dword [esp + 0x14], esi
lea ecx, [ebx + 0x14]
mov dword [esp + 0x20], ecx
jle 0x47e673
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
call fcn.0047d7c0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x47e665
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov dword [ecx], eax
add dword [esp + 0x20], 4
add esi, 1
cmp esi, dword [esp + 0x14]
jl 0x47e641
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], edx
lea ebx, [ebx]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
add esi, 0x14
mov eax, dword [esi]
test eax, eax
jl 0x47e70f
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x47e6a4
mov ecx, 0x4d6798
jmp 0x47e6ad
mov ecx, dword [edi + 0x68]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x14]
mov dword [ecx + 8], edx
add dword [ebx], 1
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x47e6cd
mov eax, ebx
mov edx, 0xfffffff8
call fcn.0043cde0
jmp 0x47e6f6
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x47e6ef
push ebx
mov eax, 0xfffffff8
mov edx, edi
call fcn.0043ced0
add esp, 4
jmp 0x47e6f6
mov dword [ecx + 0x10], ebx
mov byte [ecx + 1], pe_nt_image_headers32
mov eax, dword [esp + 0x18]
add eax, 1
mov dword [esi], 0xffffffff
add esi, 4
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x47e68f
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x34]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x47e680
add dword [ebx], 0xffffffff
jne 0x47e731
mov ecx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004192c0
cmp dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
je 0x47e75a
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov ebx, fcn.0047a780
call fcn.00479b80
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret