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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x30], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x34], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x38], esi
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push edi
mov edi, ecx
mov edx, dword [edi + 0x34]
xor ecx, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
test eax, eax
jne 0x101d48c0
cmp dword [edx + 0x3c], eax
jne 0x101d48bc
mov esi, dword [ebx + 8]
test esi, esi
jne 0x101d3ff9
cmp dword [ebx + 0x74], esi
jne 0x101d3fee
test byte [ecx + 0x4c], 8
jne 0x101d3fee
mov byte [ebx + 0x17], 1
push ebx
call fcn.10166f40
add esp, 4
mov esi, eax
cmp byte [esp + 0x30], 0xc
jne 0x101d401d
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
push 0
push edx
push eax
push 0x64
push esi
call fcn.1015e0f0
add esp, 0x14
mov byte [esp + 0x30], 0xe
test dword [edi + 4], 0x400
je 0x101d404a
lea ecx, [esp + 0x30]
push ecx
push ebx
mov eax, edi
call fcn.101d00c0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jns 0x101d490e
mov dword [esp + 0x10], 0
test dword [edi + 4], 0x2000
je 0x101d4068
lea edx, [esp + 0x30]
push edx
push edi
mov eax, ebx
call fcn.101d0160
add esp, 8
jmp 0x101d477d
cmp dword [edi + 0x30], 0
je 0x101d4083
mov eax, dword [ebp + 0xc]
push eax
push edi
push ebx
call fcn.101ab820
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x34], 0
jne 0x101d40ad
push str.COMPOUND_QUERY
push 1
push ebx
call fcn.1016d0a0
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push ebx
call fcn.1016d0a0
add esp, 0xc
movzx eax, byte [edi]
sub eax, 0x84
je 0x101d4518
dec eax
je 0x101d439d
dec eax
je 0x101d4518
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
add eax, 2
mov dword [ebx + 0x28], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x101d40f7
mov edx, dword [esp + 0xc]
push 0
push 0
push edx
push 0x64
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
xor edx, edx
jmp 0x101d4128
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x64
mov dword [eax + 0x14], edx
mov eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 0x38]
mov eax, edi
cmp ecx, edx
je 0x101d413d
mov eax, ecx
mov ecx, dword [eax + 0x38]
cmp ecx, edx
jne 0x101d4134
or dword [eax + 4], 0x20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x50], eax
xor eax, eax
push edx
push ebx
mov byte [esp + 0x54], 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.101d70d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x101d490e
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x101d419d
push eax
push eax
mov eax, dword [esp + 0x14]
inc eax
push eax
mov dword [esp + 0x30], eax
push 0x64
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
jmp 0x101d41d3
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0xc]
inc edx
mov dword [eax + 4], edx
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x64
mov dword [eax + 0x14], edx
mov eax, ecx
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x24]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
movzx eax, byte [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], edx
call fcn.1011b490
push eax
push str._s_USING_TEMP_B_TREE
push 1
push ebx
call fcn.1016d0a0
lea eax, [esp + 0x58]
push eax
push edi
push ebx
call fcn.101d70d0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x34], eax
movzx eax, word [eax + 2]
add esp, 0x1c
mov dword [esp + 0x1c], ecx
cmp word [edi + 2], ax
jle 0x101d4232
mov word [edi + 2], ax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x101d4247
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.10143ba0
add esp, 8
mov eax, dword [esp + 0x20]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x38]
dec eax
lea ecx, [eax - 1]
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
mov dword [ebx + 0x38], ecx
call fcn.10170ea0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
push 0x25
push esi
call fcn.1015e0f0
add esp, 0x1c
mov ecx, ebx
call fcn.1011c1d0
mov ebx, eax
mov eax, dword [esp + 0xc]
push 0
push ebx
push eax
push 0x7e
push esi
mov dword [esp + 0x34], ebx
call fcn.1015e0f0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x28], eax
push 0
push 0x1d
mov eax, ebx
inc edx
call fcn.10166d70
mov edx, ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.1011c1b0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push eax
dec eax
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push edx
push edi
mov ecx, ebx
call fcn.101c83c0
mov eax, dword [esp + 0x38]
add esp, 0x24
dec eax
mov ecx, esi
call fcn.1015e0c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 5
push esi
call fcn.1015e0f0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov ecx, esi
call fcn.1015e0c0
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x101d4332
mov eax, dword [esp + 0xc]
push 0
inc eax
push 0
push eax
push 0x74
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
xor ecx, ecx
jmp 0x101d435d
mov ecx, dword [esi + 0x68]
lea edx, [eax + 1]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x6c], edx
inc ecx
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x74
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x101d437f
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
push 0x74
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
jmp 0x101d4770
lea edx, [eax + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0xc]
jmp 0x101d475c
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x3c]
lea edx, [esp + 0x30]
push edx
push eax
push ebx
mov dword [esp + 0x2c], 0
mov dword [eax + 0x3c], ecx
call fcn.101d70d0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [edi + 0x3c], 0
test eax, eax
jne 0x101d490e
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov eax, ecx
mov dword [edi + 0xc], edx
mov dword [esp + 0x28], eax
test eax, eax
je 0x101d4478
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x101d4419
push 0
push 0
push eax
push 0x14
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
jmp 0x101d444a
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x14
mov dword [eax + 0x14], edx
mov eax, ecx
push str.Jump_ahead_if_LIMIT_reached
push esi
mov dword [esp + 0x28], eax
call fcn.10166d20
mov eax, dword [edi + 0xc]
add esp, 8
test eax, eax
je 0x101d4478
push eax
inc eax
push eax
mov eax, dword [edi + 8]
push eax
push 0x98
push esi
call fcn.1015e0f0
add esp, 0x14
push str.UNION_ALL
push 1
push ebx
call fcn.1016d0a0
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push edi
push ebx
call fcn.101d70d0
mov edx, dword [edi + 0x34]
mov cx, word [edi + 2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x34], eax
mov ax, word [eax + 2]
add esp, 0xc
mov dword [esp + 0x1c], edx
call fcn.1011fd30
mov word [esp + 0xc], ax
mov word [edi + 2], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x101d44fd
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.1011c560
add esp, 8
test eax, eax
je 0x101d44fd
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x101d44fd
cdq
push edx
push eax
call fcn.1011fc80
add esp, 8
cmp word [esp + 0xc], ax
jle 0x101d44fd
mov word [edi + 2], ax
cmp dword [esp + 0x20], 0
je 0x101d4770
mov eax, dword [esp + 0x20]
mov edx, esi
call fcn.10129df0
jmp 0x101d4770
cmp byte [esp + 0x30], 1
jne 0x101d4529
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
jmp 0x101d459f
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], eax
inc eax
mov dword [ebx + 0x28], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x101d4555
mov ecx, dword [esp + 0xc]
push 0
push 0
push ecx
push 0x64
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
xor edx, edx
jmp 0x101d4586
lea edx, [ecx + 1]
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x68]
lea eax, [ecx + ecx*2]
lea eax, [edx + eax*8]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x64
mov dword [eax + 0x14], edx
mov eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 0x38]
mov eax, edi
cmp ecx, edx
je 0x101d459b
mov eax, ecx
mov ecx, dword [eax + 0x38]
cmp ecx, edx
jne 0x101d4592
or dword [eax + 4], 0x20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x68], eax
xor eax, eax
push edx
push ebx
mov byte [esp + 0x6c], 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call fcn.101d70d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x101d490e
mov cl, byte [edi]
mov edx, dword [edi + 0x3c]
cmp cl, 0x86
sete al
inc al
mov byte [esp + 0x60], al
movzx eax, cl
mov dword [edi + 0x34], 0
mov dword [esp + 0x2c], edx
mov dword [edi + 0x3c], 0
call fcn.1011b490
push eax
push str._s_USING_TEMP_B_TREE
push 1
push ebx
call fcn.1016d0a0
lea eax, [esp + 0x70]
push eax
push edi
push ebx
call fcn.101d70d0
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x30]
add esp, 0x1c
test eax, eax
je 0x101d463a
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.10146ba0
add esp, 8
cmp byte [edi], 0x84
mov edx, dword [edi + 0x34]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], 0
jne 0x101d4667
mov ecx, eax
mov ax, word [ecx + 2]
mov cx, word [edi + 2]
call fcn.1011fd30
mov word [edi + 2], ax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x101d467c
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.10143ba0
add esp, 8
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x3c], eax
xor eax, eax
cmp byte [esp + 0x30], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
je 0x101d4770
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x51], al
jne 0x101d4770
mov eax, dword [ebx + 0x38]
dec eax
push eax
lea ecx, [eax - 1]
push edi
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x38], ecx
call fcn.10170ea0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
push 0x25
push esi
call fcn.1015e0f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
add esp, 0x1c
push eax
dec eax
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push 0
push 0
push eax
mov dword [esp + 0x44], ecx
push edi
mov ecx, ebx
call fcn.101c83c0
mov eax, dword [esp + 0x30]
add esp, 0x1c
dec eax
mov ecx, esi
call fcn.1015e0c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
push 5
push esi
call fcn.1015e0f0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov ecx, esi
call fcn.1015e0c0
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jg 0x101d4743
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
push 0x74
mov eax, esi
call fcn.1015b8e0
add esp, 0x10
jmp 0x101d4770
lea ecx, [eax + 1]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x68]
mov dword [esi + 0x6c], ecx
lea eax, [eax + edx*8]
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [eax + 2], cx
mov dword [eax + 0x14], ecx
mov word [eax], 0x74
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], edx
cmp dword [edi + 0x38], 0
jne 0x101d477d
mov edx, ebx
call fcn.10129e20
cmp dword [ebx + 0x24], 0
jne 0x101d490e
test byte [edi + 4], 0x20
je 0x101d490e
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
push 1
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x20]
call fcn.10153970
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x101d47be
mov dword [esp + 0x10], 7
jmp 0x101d490e
mov ecx, dword [esp + 0x14]
add ecx, 0x14
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], ecx
jle 0x101d480e
mov edx, dword [esp + 0x20]
push edx
push edi
push ebx
call fcn.1018a110
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [ecx], eax
test eax, eax
jne 0x101d47fa
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0xc], 4
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x24]
jl 0x101d47d8
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
add edi, 0x14
mov eax, dword [edi]
test eax, eax
js 0x101d4897
mov edx, dword [esi]
cmp byte [edx + 0x51], 0
je 0x101d4830
mov ecx, 0x10299328
jmp 0x101d4839
mov edx, dword [esi + 0x68]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x14]
inc dword [edx]
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x101d485c
mov eax, edx
mov edx, 0xfffffff7
call fcn.10145340
jmp 0x101d4888
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*2]
cmp byte [ecx + eax*8 + 1], 0
lea ecx, [ecx + eax*8]
je 0x101d4881
mov edx, dword [esp + 0x14]
push edx
push esi
mov eax, 0xfffffff7
call fcn.10158e30
add esp, 8
jmp 0x101d4888
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 0xf7
mov dword [edi], 0xffffffff
inc ebx
add edi, 4
cmp ebx, 2
jl 0x101d481b
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x101d4812
mov eax, dword [esp + 0x14]
dec dword [eax]
jne 0x101d490e
mov ecx, dword [eax + 0xc]
call fcn.101364b0
jmp 0x101d490e
test eax, eax
je 0x101d48c7
mov ecx, str.ORDER_BY
jmp 0x101d48cc
mov ecx, str.LIMIT
movzx eax, byte [edi]
sub eax, 0x85
je 0x101d48f1
dec eax
je 0x101d48ea
dec eax
je 0x101d48e3
mov eax, str.UNION
jmp 0x101d48f6
mov eax, str.INTERSECT
jmp 0x101d48f6
mov eax, str.EXCEPT
jmp 0x101d48f6
mov eax, str.UNION_ALL
push eax
push ecx
push str._s_clause_should_come_after__s_not_before
push ebx
call fcn.1015fc10
add esp, 0x10
mov dword [esp + 0x10], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x101d4937
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.10142ae0
add esp, 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret