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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov ebx, edx
mov dword [esp + 0x18], eax
push 7
mov eax, dword [eax]
lea edi, [esp + 0x38]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x20], eax
mov ecx, edi
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0049bbde
cmp byte [esp + 0x34], 0xc
mov esi, eax
mov dword [esp + 0xc], esi
jne 0x49c22e
mov ecx, dword [ebx + 0x1c]
push 0
push dword [ecx]
mov ecx, esi
push dword [esp + 0x40]
push 0x76
pop edx
call fcn.0046b9a1
add esp, 0xc
mov byte [esp + 0x34], 0xe
mov eax, dword [ebx + 4]
test eax, 0x400
je 0x49c258
lea eax, [esp + 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0049c13b
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jns 0x49c8ae
mov eax, dword [ebx + 4]
mov ecx, 0x2000
test ecx, eax
je 0x49c28d
mov eax, ebx
test dword [eax + 4], ecx
je 0x49c26f
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x49c263
test eax, eax
je 0x49c28d
lea eax, [esp + 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0049be19
xor eax, eax
pop ecx
mov dword [esp + 0x10], eax
jmp 0x49c7c6
xor edx, edx
cmp dword [ebx + 0x30], edx
je 0x49c2a6
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.0049cb5f
pop ecx
jmp 0x49c8db
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x34], edx
jne 0x49c2d1
push str.COMPOUND_QUERY
push 1
push edi
call fcn.0046bbd8
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.0046bbd8
add esp, 0xc
xor edx, edx
movzx eax, byte [ebx]
sub eax, 0x86
je 0x49c609
sub eax, 1
je 0x49c4ef
sub eax, 1
je 0x49c609
mov ecx, dword [edi + 0x28]
push edx
push edx
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
inc eax
push 0x76
pop edx
mov dword [edi + 0x28], eax
call fcn.0046b9a1
mov dword [ebx + 0x14], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x49c324
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x49c31f
or dword [eax + 4], 0x20
mov edx, esi
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], 1
call fcn.0049fa1a
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49c8ae
mov ecx, dword [esp + 0xc]
push eax
push eax
push dword [esp + 0x30]
push 0x76
pop edx
call fcn.0046b9a1
movzx ecx, byte [ebx]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x34], 0
and dword [ebx + 0x3c], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
call fcn.0049b0aa
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.0046bbd8
lea eax, [esp + 0x60]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0049fa1a
mov edx, dword [ebx + 0x34]
mov ecx, eax
mov dword [ebx + 0x34], esi
add esp, 0x14
movzx eax, word [esi + 2]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp word [ebx + 2], ax
jle 0x49c3dc
mov word [ebx + 2], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x49c3f0
mov ecx, dword [esp + 0x20]
call fcn.0047cbeb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
test ecx, ecx
jne 0x49c7b5
mov esi, dword [edi + 0x38]
mov ecx, edi
mov edx, dword [esp + 0x14]
dec esi
push esi
mov dword [esp + 0x30], esi
lea ebx, [esi - 1]
mov dword [edi + 0x38], ebx
call fcn.0049bbfe
pop ecx
mov ecx, dword [esp + 0xc]
push 0
push esi
push dword [esp + 0x24]
push 0x24
pop edx
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
call fcn.00481e7d
mov ecx, dword [esp + 0xc]
mov esi, eax
push 0
push esi
push dword [esp + 0x24]
mov edx, 0x86
call fcn.0046b9a1
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edi, eax
push 0
push esi
push ebx
push dword [esp + 0x34]
push 0x1c
pop edx
call fcn.0046bcab
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.00481e9c
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x24]
push esi
push ebx
push eax
push 0
push 0
push dword [esp + 0x40]
call fcn.0049a8ce
mov ecx, dword [esp + 0x34]
mov edx, ebx
call fcn.0046bd45
mov ecx, dword [esp + 0x34]
push 0
push edi
mov edi, dword [esp + 0x4c]
push edi
push 0x27
pop edx
call fcn.0046b9a1
add esp, 0x34
mov edx, esi
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.0046bd45
xor ebx, ebx
lea eax, [edi + 1]
push ebx
push ebx
push eax
push 0x7a
pop edx
mov ecx, esi
call fcn.0046b9a1
add esp, 0xc
push ebx
push ebx
push edi
push 0x7a
pop edx
mov ecx, esi
call fcn.0046b9a1
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov edi, dword [esp + 0x18]
jmp 0x49c7b9
mov eax, dword [ebx + 8]
mov ecx, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
mov edx, esi
push eax
call fcn.0049fa1a
pop ecx
mov ecx, eax
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x49c8ae
mov dword [ebx + 0x34], edx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x49c572
push edx
push edx
push ecx
mov ecx, dword [esp + 0x18]
push 0x11
pop edx
call fcn.0046b9a1
mov ecx, dword [ebx + 0xc]
add esp, 0xc
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x49c572
push ecx
inc ecx
mov edx, 0xa0
push ecx
push dword [ebx + 8]
mov ecx, dword [esp + 0x18]
call fcn.0046b9a1
add esp, 0xc
push str.UNION_ALL
push 1
push edi
call fcn.0046bbd8
add esp, 0xc
lea eax, [esp + 0x34]
mov edx, ebx
mov ecx, edi
push eax
call fcn.0049fa1a
mov edx, dword [ebx + 0x34]
pop ecx
mov cx, word [ebx + 2]
mov dword [esp + 0x24], edx
mov dword [ebx + 0x34], esi
mov dx, word [esi + 2]
mov dword [esp + 0x10], eax
call fcn.00454e0f
mov ecx, dword [ebx + 0x3c]
movzx esi, ax
mov word [ebx + 2], si
test ecx, ecx
je 0x49c5e5
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x28]
call fcn.0047dc41
test eax, eax
je 0x49c5e5
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x49c5e5
cdq
push edx
push eax
call fcn.00454e6d
pop ecx
pop ecx
cmp si, ax
jle 0x49c5e5
mov word [ebx + 2], ax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x49c7b9
mov edx, eax
mov ecx, esi
call fcn.0046c1e8
mov ecx, dword [esi + 0x6c]
mov dword [eax + 8], ecx
jmp 0x49c7b9
cmp byte [esp + 0x34], 1
jne 0x49c61a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jmp 0x49c654
mov ecx, dword [edi + 0x28]
push edx
push edx
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push 0x76
pop edx
mov dword [edi + 0x28], eax
call fcn.0046b9a1
mov dword [ebx + 0x14], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x49c648
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x49c643
or dword [eax + 4], 0x20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov edx, esi
xor eax, eax
mov byte [esp + 0x6c], 1
mov dword [esp + 0x74], eax
mov ecx, edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x6c]
push eax
call fcn.0049fa1a
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49c8ae
and dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x3c], ecx
cmp byte [ebx], 0x88
movzx ecx, byte [ebx]
mov dword [esp + 0x2c], eax
sete al
inc al
mov byte [esp + 0x6c], al
call fcn.0049b0aa
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.0046bbd8
lea eax, [esp + 0x7c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0049fa1a
mov edx, dword [ebx + 0x34]
add esp, 0x14
and dword [ebx + 0x30], 0
cmp byte [ebx], 0x86
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov dword [ebx + 0x34], esi
jne 0x49c6f7
mov dx, word [esi + 2]
mov cx, word [ebx + 2]
call fcn.00454e0f
mov word [ebx + 2], ax
mov edx, dword [ebx + 0x3c]
mov esi, dword [esp + 0x20]
test edx, edx
je 0x49c709
mov ecx, esi
call fcn.0047cbeb
and dword [ebx + 8], 0
and dword [ebx + 0xc], 0
cmp byte [esp + 0x34], 1
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
je 0x49c7b5
cmp byte [esi + 0x57], 0
jne 0x49c7b5
mov ebx, dword [edi + 0x38]
mov eax, dword [esp + 0x18]
dec ebx
mov edx, dword [esp + 0x14]
mov ecx, eax
push ebx
lea edi, [ebx - 1]
mov dword [eax + 0x38], edi
call fcn.0049bbfe
mov esi, dword [esp + 0x10]
pop ecx
push 0
push ebx
push dword [esp + 0x24]
mov ecx, esi
push 0x24
pop edx
call fcn.0046b9a1
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, dword [esi + 0x6c]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x30]
call fcn.0049a8ce
mov ecx, dword [esp + 0x24]
mov edx, edi
call fcn.0046bd45
mov edi, dword [esp + 0x34]
push 0
push esi
mov esi, dword [esp + 0x2c]
mov ecx, esi
push edi
push 0x27
pop edx
call fcn.0046b9a1
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.0046bd45
push 0
push 0
jmp 0x49c4d4
mov esi, dword [esp + 0xc]
cmp dword [ebx + 0x38], 0
jne 0x49c7c6
mov ecx, edi
call fcn.0046bc29
cmp dword [edi + 0x24], 0
jne 0x49c8ae
test byte [ebx + 4], 0x20
je 0x49c8ae
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x2c], eax
call fcn.0049af8e
mov dword [esp + 0x34], eax
pop ecx
test eax, eax
jne 0x49c801
push 7
pop ebx
jmp 0x49c8b2
add eax, 0x14
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x28], eax
jle 0x49c848
mov esi, dword [esp + 0x2c]
push eax
mov edx, ebx
mov ecx, edi
call fcn.0049bd21
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x49c832
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add esi, 4
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x28]
jl 0x49c818
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x30]
and dword [esp + 0x20], 0
lea eax, [ebx + 0x14]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov edx, dword [eax]
test edx, edx
js 0x49c894
mov ecx, esi
call fcn.0046c1e8
push 0xfffffffffffffff8
push edi
mov dword [eax + 8], ebx
inc dword [edi]
call fcn.0046c12a
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
or dword [eax], 0xffffffff
inc ecx
add eax, 4
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
cmp ecx, 2
jl 0x49c85c
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x49c84c
mov ecx, edi
call fcn.0049b007
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49c8d9
push eax
mov edx, 0x499cc0
mov ecx, edi
call fcn.00499434
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret