Function at 0x10097b10
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
push esi
push edi
mov edi, edx
mov dword [esp + 8], ecx
mov ecx, 0x10103106
mov dword [esp + 0x18], edi
call fcn.100d96c4
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
movups xmm0, xmmword [edx]
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x34]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x10], eax
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x40], xmm0
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x100983ac
cmp dword [eax + 0x3c], edx
jne 0x100983ac
mov esi, dword [ecx + 8]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10097b9d
cmp dword [ecx + 0x74], esi
jne 0x10097b92
mov eax, dword [esp + 0x1c]
test byte [eax + 0x4c], 8
jne 0x10097b92
mov byte [ecx + 0x17], 1
call fcn.1005e350
mov esi, eax
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x30]
cmp dl, 0xc
jne 0x10097bc5
mov eax, dword [edi]
mov edx, 0x71
push 0
mov ecx, esi
push dword [eax]
push dword [esp + 0x3c]
call fcn.1005e520
mov dl, 0xe
add esp, 0xc
mov byte [esp + 0x30], dl
mov eax, dword [edi + 8]
test eax, 0x400
je 0x10097c5e
mov eax, dword [edi + 0x3c]
xor edx, edx
test eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x34]
mov ecx, 1
sete dl
mov dword [esp + 0x28], ecx
test eax, eax
je 0x10097c00
mov edi, eax
add ecx, edx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x10097bf1
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 8]
cmp ecx, 1
mov edx, 0x100ed9d4
mov eax, 0x100eac98
cmovne eax, edx
push eax
push ecx
push str.SCAN__d_CONSTANT_ROW_s
push 0
push esi
call fcn.1005e8e0
add esp, 0x14
push 1
push 1
lea eax, [esp + 0x38]
mov edx, edi
push eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.100955c0
add esp, 0x18
cmp dword [esp + 0x20], 0
jne 0x10097c57
mov eax, dword [esp + 0x28]
mov word [edi + 6], ax
mov edi, dword [edi + 0x38]
test edi, edi
jne 0x10097c26
xor esi, esi
jmp 0x1009837b
test eax, 0x2000
je 0x10097c7f
mov esi, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
mov edx, edi
mov ecx, esi
call fcn.100976e0
add esp, 4
jmp 0x10098218
cmp dword [edi + 0x30], 0
je 0x10097c9c
push dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.10098710
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x34], 0
jne 0x10097cd4
push str.COMPOUND_QUERY
push 1
push dword [esp + 0x10]
call fcn.1005e8e0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push dword [esp + 0x10]
call fcn.1005e8e0
mov dl, byte [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
movzx eax, byte [edi + 4]
sub eax, 0x7f
je 0x10098017
sub eax, 1
je 0x10097ed9
sub eax, 1
je 0x10098017
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [esp + 0x30], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, esi
call fcn.1005e680
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.10094990
push dword [esp + 0x28]
mov edx, 1
lea ecx, [esp + 0x5c]
or dword [eax + 8], 0x20
call fcn.100947b0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x14]
add esp, 0xc
push eax
call fcn.1009b590
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x10098377
push eax
push dword [esp + 0x2c]
lea edx, [eax + 0x71]
mov ecx, esi
call fcn.1005e680
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x3c]
movzx ecx, byte [edi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov dword [esp + 0x5c], eax
call fcn.100962b0
mov esi, dword [esp + 0x10]
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.1005e8e0
lea eax, [esp + 0x68]
mov edx, edi
push eax
mov ecx, esi
call fcn.1009b590
mov dword [esp + 0x28], eax
add esp, 0x1c
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
movzx eax, word [eax + 6]
cmp word [edi + 6], ax
jle 0x10097dd9
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x1c]
call fcn.10073850
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [edi + 0x3c], eax
mov edx, edi
mov esi, dword [ecx + 0x38]
dec esi
push esi
mov dword [esp + 0x14], esi
lea eax, [esi - 1]
mov dword [ecx + 0x38], eax
call fcn.10097400
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
call fcn.1005e680
mov ecx, dword [esp + 0x10]
call fcn.100799b0
mov ecx, dword [esp + 0x1c]
mov esi, eax
push esi
push dword [esp + 0x2c]
mov edx, 0x7f
call fcn.1005e680
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
mov edx, 0x1c
push 0
push esi
dec eax
push eax
push dword [esp + 0x44]
call fcn.1005e9e0
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.100799e0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push eax
lea esi, [eax - 1]
push esi
lea eax, [esp + 0x58]
push eax
push 0
push 0
push dword [esp + 0x54]
call fcn.100955c0
mov edx, esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.1005eaf0
push edi
mov edi, dword [esp + 0x5c]
mov edx, 5
push edi
mov ecx, esi
call fcn.1005e680
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ecx, esi
call fcn.1005eaf0
lea eax, [edi + 1]
mov edx, 0x75
push 0
push eax
mov ecx, esi
call fcn.1005e680
push 0
push edi
mov edx, 0x75
mov ecx, esi
call fcn.1005e680
add esp, 0x10
jmp 0x100981d0
xor eax, eax
mov edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0x3c], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 8]
push eax
call fcn.1009b590
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x10098377
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
test ecx, ecx
je 0x10097f60
push ecx
mov edx, 0x14
mov ecx, esi
call fcn.1005e610
mov ecx, dword [edi + 0x10]
add esp, 4
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x10097f60
push ecx
inc ecx
mov edx, 0x98
push ecx
push dword [edi + 0xc]
mov ecx, esi
call fcn.1005e520
add esp, 0xc
push str.UNION_ALL
push 1
push dword [esp + 0x10]
call fcn.1005e8e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
add esp, 0xc
mov edx, edi
push eax
call fcn.1009b590
mov cx, word [edi + 6]
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dx, word [eax + 6]
call fcn.100434f0
mov edx, dword [esp + 0x10]
mov word [edi + 6], ax
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x10097ffd
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x2c]
call fcn.10074cb0
test eax, eax
je 0x10097ffd
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x10097ffd
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
call fcn.10043580
add esp, 8
cmp word [edi + 6], ax
jle 0x10097ffd
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.10043580
add esp, 8
mov word [edi + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100981d4
mov edx, eax
mov ecx, esi
call fcn.1005ee10
jmp 0x100981d4
cmp dl, 1
jne 0x10098026
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
jmp 0x1009805b
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x24], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [ecx + 0x28], eax
mov ecx, esi
call fcn.1005e680
add esp, 8
mov dword [edi + 0x18], eax
mov ecx, edi
call fcn.10094990
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x20]
push eax
mov edx, 1
lea ecx, [esp + 0x6c]
call fcn.100947b0
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x6c]
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, esi
push eax
call fcn.1009b590
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x10098377
cmp byte [edi + 4], 0x81
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
sete al
mov dword [edi + 0x3c], ecx
inc al
movzx ecx, byte [edi + 4]
mov byte [esp + 0x68], al
call fcn.100962b0
push eax
push str._s_USING_TEMP_B_TREE
push 1
push esi
call fcn.1005e8e0
lea eax, [esp + 0x78]
mov edx, edi
push eax
mov ecx, esi
call fcn.1009b590
mov edx, dword [edi + 0x30]
add esp, 0x14
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
call fcn.10074960
cmp byte [edi + 4], 0x7f
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
jne 0x10098110
mov dx, word [eax + 6]
mov cx, word [edi + 6]
call fcn.100434f0
mov word [edi + 6], ax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x1c]
call fcn.10073850
cmp byte [esp + 0x30], 1
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
je 0x100981d8
mov esi, dword [esi + 0x38]
mov eax, dword [esp + 8]
dec esi
mov edx, dword [esp + 0x18]
mov ecx, eax
push esi
mov dword [esp + 0x2c], esi
lea edi, [esi - 1]
mov dword [eax + 0x38], edi
call fcn.10097400
add esp, 4
mov edx, 0x24
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.1005e680
push dword [esp + 0x30]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x6c]
push edi
push eax
push 0
push 0
push dword [esp + 0x3c]
call fcn.100955c0
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.1005eaf0
push esi
mov esi, dword [esp + 0x44]
mov edx, 5
push esi
mov ecx, edi
call fcn.1005e680
mov edx, dword [esp + 0x50]
mov ecx, edi
call fcn.1005eaf0
push 0
push esi
mov edx, 0x75
mov ecx, edi
call fcn.1005e680
add esp, 0x30
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 8]
cmp dword [edi + 0x38], 0
jne 0x10098218
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x100981ec
xor eax, eax
jmp 0x10098212
mov edx, dword [esi + 8]
test ecx, ecx
jns 0x100981f7
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x10098206
mov eax, 0x10101774
jmp 0x1009820f
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [esi + 0xd4], eax
test byte [edi + 8], 0x20
je 0x10098377
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
push 1
mov edx, dword [eax]
mov dword [esp + 0x24], edx
call fcn.10096160
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x10098248
lea esi, [eax + 7]
jmp 0x1009837b
mov edx, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x28], eax
test edx, edx
jle 0x100982a0
nop dword [eax]
push eax
mov edx, edi
mov ecx, esi
call fcn.10097570
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x10098280
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
add ecx, 4
mov edx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
cmp eax, edx
jl 0x10098260
nop dword [eax + eax]
mov esi, dword [esp + 0x14]
lea eax, [edi + 0x18]
mov edi, dword [esp + 8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
js 0x10098351
lea ecx, [eax + eax*4]
mov eax, dword [esi]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x100982df
mov eax, 0x10101774
jmp 0x100982e4
mov eax, dword [esi + 0x68]
add eax, ecx
mov dword [eax + 8], edx
inc dword [edi]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x10098307
push edi
mov edx, 0xfffffff7
mov ecx, eax
call fcn.1005eee0
mov edx, dword [esp + 0x24]
add esp, 4
jmp 0x1009832e
mov eax, dword [esi + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x10098327
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.1005f0a0
mov edx, dword [esp + 0x28]
add esp, 8
jmp 0x1009832e
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 2
jl 0x100982c0
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x100982a0
mov eax, dword [esp + 8]
add dword [eax], 0xffffffff
jne 0x10098377
mov ecx, dword [eax + 0xc]
mov edx, eax
call fcn.1003eb40
mov esi, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100983a4
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 1
call fcn.100946b0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x80
je 0x100983d6
sub eax, 1
je 0x100983cf
sub eax, 1
je 0x100983c8
mov eax, str.UNION
jmp 0x100983db
mov eax, str.INTERSECT
jmp 0x100983db
mov eax, str.EXCEPT
jmp 0x100983db
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.100420b0
add esp, 0x10
mov esi, 1
jmp 0x1009837b