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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, edx
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x30]
movups xmm0, xmmword [edx]
mov dword [esp + 0x34], edx
push edi
mov edi, dword [ecx]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x28], esi
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x50], xmm0
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
test edx, edx
jne 0x1008c9c4
cmp dword [eax + 0x38], edx
jne 0x1008c9c4
mov edi, dword [ecx + 8]
mov dword [esp + 0x30], edi
test edi, edi
jne 0x1008c1c4
cmp dword [ecx + 0x78], edi
jne 0x1008c1b9
mov eax, dword [esp + 0x14]
test byte [eax + 0x44], 8
jne 0x1008c1b9
mov byte [ecx + 0x17], 1
call fcn.1004f440
mov edi, eax
mov dword [esp + 0x30], eax
mov dl, byte [esp + 0x40]
cmp dl, 0xc
jne 0x1008c1ea
mov eax, dword [esi]
mov edx, 0x6e
mov ecx, edi
push dword [eax]
push dword [esp + 0x48]
call fcn.1004f8f0
mov dl, 0xe
add esp, 8
mov byte [esp + 0x40], dl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x1008c20e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.1008c0a0
add esp, 4
mov esi, eax
jmp 0x1008c957
test eax, 0x2000
je 0x1008c22d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.1008b900
add esp, 4
jmp 0x1008c7f4
cmp dword [esi + 0x2c], 0
je 0x1008c25a
mov ecx, dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.1008cf50
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x30], 0
jne 0x1008c292
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x18]
call fcn.1004fc90
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x18]
call fcn.1004fc90
mov dl, byte [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x20]
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x1008c5e6
sub eax, 1
je 0x1008c4c4
sub eax, 1
je 0x1008c5e6
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x28], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6e
mov dword [esp + 0x34], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.1004f8f0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x1008c2ee
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1008c2e5
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x70], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.10090810
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1008c953
push eax
push dword [esp + 0x30]
lea edx, [eax + 0x6e]
mov ecx, edi
call fcn.1004f8f0
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x38]
movzx ecx, byte [esi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esp + 0x78], eax
call fcn.1008a220
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x24]
call fcn.1004fc90
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x84]
push eax
mov edx, esi
call fcn.10090810
mov dword [esp + 0x38], eax
add esp, 0x1c
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x1008c3bc
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x1008c3cc
mov ecx, dword [esp + 0x14]
call fcn.100657b0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.1004ff20
mov esi, eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.1004ff20
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push esi
mov dword [esp + 0x24], eax
call fcn.1008b610
add esp, 4
mov edx, 0x25
mov ecx, edi
push esi
push dword [esp + 0x28]
call fcn.1004f8f0
mov ecx, dword [esp + 0x18]
call fcn.1006c240
mov esi, eax
mov edx, 0x7c
push esi
push dword [esp + 0x30]
mov ecx, edi
call fcn.1004f8f0
mov ecx, dword [esp + 0x40]
mov edx, 0x1d
push 0
push esi
push dword [esp + 0x38]
mov edi, eax
push dword [esp + 0x48]
call fcn.1004fe10
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.1006c260
push dword [esp + 0x38]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
push esi
push eax
push 0
push 0
push dword [esp + 0x58]
call fcn.10089360
mov edx, esi
mov esi, dword [esp + 0x68]
mov ecx, esi
call fcn.1004ff70
push edi
mov edi, dword [esp + 0x60]
mov edx, 7
push edi
call fcn.1004f8f0
mov edx, dword [esp + 0x58]
add esp, 0x40
mov ecx, esi
call fcn.1004ff70
lea eax, [edi + 1]
mov edx, 0x72
push 0
push eax
call fcn.1004f8f0
push 0
push edi
mov edx, 0x72
mov ecx, esi
call fcn.1004f8f0
add esp, 0x10
jmp 0x1008c7e1
xor eax, eax
mov edx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x10]
push eax
call fcn.10090810
mov ecx, eax
mov dword [esi + 0x38], 0
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1008c953
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x1008c54b
push ecx
mov edx, 0x16
mov ecx, edi
call fcn.1004f880
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1008c54b
push ecx
inc ecx
mov edx, 0x95
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.1004f7a0
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x18]
call fcn.1004fc90
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
add esp, 0xc
mov edx, esi
push eax
call fcn.10090810
mov cx, word [esi + 6]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov dx, word [eax + 6]
call fcn.10033fe0
mov edx, dword [esp + 0x20]
mov word [esi + 6], ax
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x1008c5cc
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.10066c10
test eax, eax
je 0x1008c5cc
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x1008c5cc
cdq
push edx
push eax
call fcn.10034040
add esp, 8
cmp word [esi + 6], ax
jle 0x1008c5cc
mov word [esi + 6], ax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1008c7e5
mov edx, eax
mov ecx, edi
call fcn.100502c0
jmp 0x1008c7e5
cmp dl, 1
jne 0x1008c5f5
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jmp 0x1008c635
mov ecx, dword [esp + 0x10]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x28], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6e
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.1004f8f0
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x1008c62d
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1008c624
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x88], 1
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call fcn.10090810
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1008c953
cmp byte [esi + 4], 0x76
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
sete al
mov dword [esi + 0x38], ecx
inc al
movzx ecx, byte [esi + 4]
mov byte [esp + 0x84], al
call fcn.1008a220
push eax
push str._s_USING_TEMP_B_TREE
push 1
push dword [esp + 0x1c]
call fcn.1004fc90
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x94]
push eax
mov edx, esi
call fcn.10090810
mov edx, dword [esi + 0x2c]
add esp, 0x14
mov dword [esp + 0x1c], eax
test edx, edx
je 0x1008c6ec
mov ecx, dword [esp + 0x14]
call fcn.10066760
cmp byte [esi + 4], 0x74
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 0
jne 0x1008c718
mov dx, word [eax + 6]
mov cx, word [esi + 6]
call fcn.10033fe0
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x1008c728
mov ecx, dword [esp + 0x14]
call fcn.100657b0
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x38], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x1008c7e5
mov ecx, edi
call fcn.1004ff20
mov esi, eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.1004ff20
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, dword [esp + 0x10]
push esi
call fcn.1008b610
add esp, 4
mov edx, 0x25
push esi
push dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.1004f8f0
push dword [esp + 0x20]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esi + 0x88]
push edi
push eax
push 0
push 0
push dword [esp + 0x40]
call fcn.10089360
mov edx, edi
mov edi, dword [esp + 0x50]
mov ecx, edi
call fcn.1004ff70
push esi
mov esi, dword [esp + 0x48]
mov edx, 7
push esi
call fcn.1004f8f0
mov edx, dword [esp + 0x40]
mov ecx, edi
call fcn.1004ff70
push 0
push esi
mov edx, 0x72
call fcn.1004f8f0
add esp, 0x30
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x34], 0
jne 0x1008c7f4
mov ecx, dword [esp + 0x10]
call fcn.1004fcf0
test byte [esi + 8], 0x20
je 0x1008c953
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push 1
mov edi, dword [eax]
mov edx, edi
mov dword [esp + 0x28], edi
call fcn.1008a0a0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x1008c828
lea esi, [eax + 7]
jmp 0x1008c957
lea eax, [esi + 0x14]
mov dword [esp + 0x2c], eax
xor eax, eax
test edi, edi
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x28]
jle 0x1008c880
mov esi, dword [esp + 0x10]
push eax
mov edx, edi
mov ecx, esi
call fcn.1008b770
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x1008c861
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add ecx, 4
inc eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jl 0x1008c841
mov esi, dword [esp + 0x20]
nop dword [eax + eax]
lea eax, [edi + 0x14]
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
test eax, eax
js 0x1008c921
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
je 0x1008c8ac
mov ecx, 0x10142c24
jmp 0x1008c8b5
mov ecx, dword [edi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], edx
inc dword [esi]
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
je 0x1008c8d6
push esi
mov edx, 0xfffffff7
call fcn.10050470
add esp, 4
jmp 0x1008c8fe
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x1008c8f7
push 0xfffffffffffffff7
push esi
mov edx, eax
mov ecx, edi
call fcn.10050600
add esp, 8
jmp 0x1008c8fe
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x2c], eax
cmp ecx, 2
jl 0x1008c893
mov edi, dword [esp + 0x28]
mov edi, dword [edi + 0x30]
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1008c880
add dword [esi], 0xffffffff
jne 0x1008c953
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1008c9b9
cmp dword [ecx + 0x1d8], edi
je 0x1008c999
mov edx, esi
call fcn.1002f870
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1008c983
push 1
mov edx, eax
mov ecx, edi
call fcn.100883a0
add esp, 4
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100ae9aa
mov esp, ebp
pop ebp
ret
cmp esi, dword [ecx + 0x128]
jb 0x1008c9b9
cmp esi, dword [ecx + 0x12c]
jae 0x1008c9b9
mov eax, dword [ecx + 0x124]
mov dword [esi], eax
mov dword [ecx + 0x124], esi
jmp 0x1008c953
push esi
call fcn.1002f800
add esp, 4
jmp 0x1008c953
movzx eax, byte [esi + 4]
sub eax, 0x75
je 0x1008c9ec
sub eax, 1
je 0x1008c9e5
sub eax, 1
je 0x1008c9de
mov eax, str.UNION
jmp 0x1008c9f1
mov eax, str.INTERSECT
jmp 0x1008c9f1
mov eax, str.EXCEPT
jmp 0x1008c9f1
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.10032d30
add esp, 0x10
mov esi, 1
jmp 0x1008c95b