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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x583f80]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
movq xmm0, qword [ecx]
movq qword [esp + 0x38], xmm0
movq xmm0, qword [ecx + 8]
mov ebx, edx
mov edx, dword [esi]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [ecx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x2c], ecx
movq qword [esp + 0x48], xmm0
mov ecx, dword [eax + 0x30]
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x46d23f
cmp dword [eax + 0x3c], ecx
jne 0x46d23f
mov edi, dword [esi + 8]
mov dword [esp + 0x28], edi
test edi, edi
jne 0x46cacc
cmp dword [esi + 0x74], edi
jne 0x46cabf
test byte [edx + 0x44], 8
jne 0x46cabf
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0042d4c0
mov edi, eax
mov dword [esp + 0x28], eax
mov dl, byte [esp + 0x3c]
cmp dl, 0xc
jne 0x46caf2
mov eax, dword [ebx]
mov edx, 0x71
push dword [eax]
mov ecx, edi
push dword [esp + 0x44]
call fcn.0042d930
mov dl, 0xe
add esp, 8
mov byte [esp + 0x3c], dl
mov eax, dword [ebx + 8]
test eax, 0x400
je 0x46cb14
lea eax, [esp + 0x3c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.0046c9a0
add esp, 4
mov ebx, eax
jmp 0x46d1fc
test eax, 0x2000
je 0x46cb31
lea eax, [esp + 0x3c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.0046c190
add esp, 4
jmp 0x46d09c
cmp dword [ebx + 0x30], 0
je 0x46cb5a
mov ecx, dword [esp + 0x30]
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0046d760
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x46cb8c
push str.COMPOUND_QUERY
push 1
push esi
call fcn.0042dc80
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push esi
call fcn.0042dc80
mov dl, byte [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movzx eax, byte [ebx + 4]
sub eax, 0x7b
je 0x46ceb7
dec eax
je 0x46cd9b
dec eax
je 0x46ceb7
mov ecx, dword [esi + 0x28]
push 0
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
inc eax
push ecx
mov edx, 0x71
mov ecx, edi
mov dword [esi + 0x28], eax
call fcn.0042d930
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x38]
add esp, 8
mov ecx, ebx
test eax, eax
je 0x46cbe0
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x46cbd7
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov byte [esp + 0x58], 1
mov dword [esp + 0x68], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.00471580
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x46d1f8
push eax
push dword [esp + 0x18]
lea edx, [eax + 0x71]
mov ecx, edi
call fcn.0042d930
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x3c]
movzx ecx, byte [ebx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [esp + 0x60], eax
call fcn.0046ab50
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0042dc80
lea eax, [esp + 0x6c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.00471580
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x34], eax
movzx eax, word [eax + 6]
add esp, 0x1c
cmp word [ebx + 6], ax
jle 0x46cca1
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x46ccb1
mov ecx, dword [esp + 0x18]
call fcn.00443790
mov eax, dword [esp + 0x38]
mov ecx, edi
mov dword [ebx + 0x3c], eax
call fcn.0042dec0
mov esi, eax
mov ecx, edi
mov dword [esp + 0x38], esi
call fcn.0042dec0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push esi
mov ebx, eax
call fcn.0046bef0
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x10]
mov ecx, edi
call fcn.0042d930
mov ecx, dword [esp + 0x2c]
call fcn.0044a500
mov esi, eax
push esi
push dword [esp + 0x18]
mov edx, 0x80
mov ecx, edi
call fcn.0042d930
mov ecx, dword [esp + 0x38]
push 0
push esi
push ebx
push dword [esp + 0x30]
mov edx, 0x1c
mov edi, eax
call fcn.0042ddb0
mov ecx, dword [esp + 0x44]
mov edx, esi
call fcn.0044a520
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
push esi
push ebx
lea eax, [esp + 0x64]
push eax
push 0
push 0
push dword [esp + 0x40]
call fcn.00469ce0
mov edx, ebx
mov ebx, dword [esp + 0x60]
mov ecx, ebx
call fcn.0042df10
push edi
mov edi, dword [esp + 0x48]
push edi
mov edx, 5
call fcn.0042d930
add esp, 0x40
mov edx, esi
mov ecx, ebx
call fcn.0042df10
lea eax, [edi + 1]
push 0
push eax
mov edx, 0x75
call fcn.0042d930
push 0
push edi
mov edx, 0x75
mov ecx, ebx
call fcn.0042d930
add esp, 0x10
jmp 0x46d087
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, ecx
push eax
mov ecx, esi
call fcn.00471580
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
mov dword [ebx + 0x3c], 0
test ecx, ecx
jne 0x46d1f8
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x46ce21
lea edx, [ecx + 0x14]
push eax
mov ecx, edi
call fcn.0042d8c0
mov ecx, dword [ebx + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x46ce21
push ecx
inc ecx
push ecx
push dword [ebx + 0xc]
mov edx, 0x99
mov ecx, edi
call fcn.0042d7e0
add esp, 0xc
push str.UNION_ALL
push 1
push esi
call fcn.0042dc80
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.00471580
mov cx, word [ebx + 6]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
mov dx, word [eax + 6]
add esp, 4
call fcn.004103f0
mov edx, dword [esp + 0x10]
mov word [ebx + 6], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x46ce9d
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x38]
call fcn.00444d50
test eax, eax
je 0x46ce9d
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x46ce9d
cdq
push edx
push eax
call fcn.00410450
add esp, 8
cmp word [ebx + 6], ax
jle 0x46ce9d
mov word [ebx + 6], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46d08f
mov edx, eax
mov ecx, edi
call fcn.0042e250
jmp 0x46d08f
cmp dl, 1
jne 0x46cec6
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
jmp 0x46cf02
mov ecx, dword [esi + 0x28]
push 0
lea eax, [ecx + 1]
mov dword [esp + 0x10], ecx
push ecx
mov edx, 0x71
mov ecx, edi
mov dword [esi + 0x28], eax
call fcn.0042d930
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x38]
add esp, 8
mov ecx, ebx
test eax, eax
je 0x46cefa
mov ecx, eax
mov eax, dword [ecx + 0x38]
test eax, eax
jne 0x46cef1
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
mov byte [esp + 0x70], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.00471580
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x46d1f8
cmp byte [ebx + 4], 0x7d
mov edx, dword [ebx + 0x3c]
sete al
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x3c], ecx
movzx ecx, byte [ebx + 4]
inc al
mov dword [esp + 0x38], edx
mov byte [esp + 0x6c], al
call fcn.0046ab50
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.0042dc80
lea eax, [esp + 0x7c]
push eax
mov edx, ebx
mov ecx, esi
call fcn.00471580
mov edx, dword [ebx + 0x30]
add esp, 0x14
mov dword [esp + 0x1c], eax
test edx, edx
je 0x46cf9d
mov ecx, dword [esp + 0x18]
call fcn.004447d0
cmp byte [ebx + 4], 0x7b
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], 0
jne 0x46cfc9
mov dx, word [eax + 6]
mov cx, word [ebx + 6]
call fcn.004103f0
mov word [ebx + 6], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x46cfd9
mov ecx, dword [esp + 0x18]
call fcn.00443790
cmp byte [esp + 0x3c], 1
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
je 0x46d08f
mov ecx, edi
call fcn.0042dec0
mov ecx, edi
mov ebx, eax
call fcn.0042dec0
mov edx, dword [esp + 0x20]
push ebx
mov ecx, esi
mov edi, eax
call fcn.0046bef0
mov esi, dword [esp + 0x2c]
add esp, 4
mov edx, 0x24
push ebx
push dword [esp + 0x10]
mov ecx, esi
call fcn.0042d930
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esi + 0x88]
push ebx
push edi
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push dword [esp + 0x28]
call fcn.00469ce0
mov edx, edi
mov edi, dword [esp + 0x48]
mov ecx, edi
call fcn.0042df10
push esi
mov esi, dword [esp + 0x30]
push esi
mov edx, 5
call fcn.0042d930
mov edx, ebx
mov ecx, edi
call fcn.0042df10
push 0
push esi
mov edx, 0x75
call fcn.0042d930
add esp, 0x30
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
cmp dword [ebx + 0x38], 0
jne 0x46d09c
mov ecx, esi
call fcn.0042dce0
test byte [ebx + 8], 0x20
je 0x46d1f8
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
push 1
mov edx, eax
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0046a9d0
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
jne 0x46d0d2
lea ebx, [eax + 7]
jmp 0x46d200
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x10], edi
jle 0x46d150
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
lea esp, [esp]
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x46d10c
push edi
mov ecx, esi
call fcn.0046c040
mov ecx, dword [esp + 0x10]
add esp, 4
test eax, eax
jne 0x46d129
jmp 0x46d10e
xor eax, eax
mov edx, dword [ebx]
cmp edi, dword [edx]
jge 0x46d129
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [eax + edx + 4]
call fcn.00442590
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x46d138
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [ecx], eax
add dword [esp + 0x14], 0x18
inc edi
add ecx, 4
mov dword [esp + 0xc], ecx
cmp edi, dword [esp + 0x10]
jl 0x46d0f0
mov esi, dword [esp + 0x34]
nop
lea edi, [ebx + 0x18]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
nop
mov eax, dword [edi]
test eax, eax
js 0x46d1de
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x46d175
mov ecx, 0x5890ec
jmp 0x46d17e
mov ecx, dword [ebx + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x10]
mov dword [ecx + 8], edx
inc dword [esi]
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
je 0x46d19f
push esi
mov edx, 0xfffffff7
call fcn.0042e400
add esp, 4
jmp 0x46d1c7
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x46d1c0
push 0xfffffffffffffff7
push esi
mov edx, eax
mov ecx, ebx
call fcn.0042e590
add esp, 8
jmp 0x46d1c7
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf7
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [edi], 0xffffffff
add edi, 4
mov dword [esp + 0x14], ecx
cmp ecx, 2
jl 0x46d160
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x46d150
mov ecx, esi
call fcn.0046aa80
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46d228
push 1
mov edx, eax
mov ecx, edi
call fcn.00468ae0
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004fcf30
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebx + 4]
sub eax, 0x7c
je 0x46d263
dec eax
je 0x46d25c
dec eax
je 0x46d255
mov eax, str.UNION
jmp 0x46d268
mov eax, str.INTERSECT
jmp 0x46d268
mov eax, str.EXCEPT
jmp 0x46d268
mov eax, str.UNION_ALL
push eax
mov edx, str.LIMIT
test ecx, ecx
mov eax, str.ORDER_BY
cmove eax, edx
push eax
push str._s_clause_should_come_after__s_not_before
push esi
call fcn.0040f070
add esp, 0x10
mov ebx, 1
jmp 0x46d1fc