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

Disassembly:
sub esp, 0x64
mov edx, dword [esp + 0x70]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x10], eax
push ebx
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
push ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 0x34]
push esi
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x10]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x40], eax
cmp dword [ebx + 0x30], 0
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
jne 0x10028ff0
cmp dword [ebx + 0x3c], 0
jne 0x10028fe9
mov esi, dword [edi + 8]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x100288db
cmp dword [edi + 0x74], esi
jne 0x100288cc
test byte [ecx + 0x4c], 8
jne 0x100288cc
mov byte [edi + 0x17], 1
push edi
call fcn.1005cd00
add esp, 4
mov dword [esp + 0x14], eax
mov esi, eax
mov cl, byte [esp + 0x2c]
cmp cl, 0xc
jne 0x100288fe
mov eax, dword [ebp]
push dword [eax]
push dword [esp + 0x34]
push 0x71
push esi
call fcn.1005c490
mov cl, 0xe
add esp, 0x10
mov byte [esp + 0x2c], cl
mov eax, dword [ebp + 8]
test eax, 0x400
je 0x1002897f
mov ebx, dword [ebp + 0x3c]
xor ecx, ecx
mov eax, dword [ebp + 0x34]
test ebx, ebx
mov esi, 1
sete cl
test eax, eax
je 0x10028935
mov edi, edi
mov ebp, eax
add esi, ecx
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x10028920
mov eax, 0x1009069c
cmp esi, 1
jne 0x1002893a
mov eax, 0x1008c2f1
push eax
push esi
push str.SCAN__d_CONSTANT_ROW_s
push 0
push edi
call fcn.100646c0
add esp, 0x14
lea esp, [esp]
push 1
push 1
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0xffffffffffffffff
push ebp
push edi
call fcn.10033bc0
add esp, 0x20
test ebx, ebx
jne 0x10028978
mov word [ebp + 6], si
mov ebp, dword [ebp + 0x38]
test ebp, ebp
jne 0x10028950
xor ebx, ebx
jmp 0x10028fb3
test eax, 0x2000
je 0x1002899a
lea eax, [esp + 0x2c]
push eax
push ebp
push edi
call fcn.10024430
add esp, 0xc
jmp 0x10028e85
cmp dword [ebp + 0x30], 0
je 0x100289ba
mov ecx, dword [esp + 0x80]
push ecx
push ebp
push edi
call fcn.10029090
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [ebx + 0x34], 0
jne 0x100289e1
push str.COMPOUND_QUERY
push 1
push edi
call fcn.100646c0
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.100646c0
mov cl, byte [esp + 0x44]
add esp, 0x18
movzx eax, byte [ebp + 4]
sub eax, 0x7f
je 0x10028ccd
sub eax, 1
je 0x10028bbb
sub eax, 1
je 0x10028ccd
mov ecx, dword [edi + 0x28]
push 0
push ecx
push 0x71
lea eax, [ecx + 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
inc eax
push esi
mov dword [edi + 0x28], eax
call fcn.1005c490
push ebp
mov dword [ebp + 0x18], eax
call fcn.10021300
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push ebx
push edi
mov byte [esp + 0x64], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call fcn.100556a0
mov ecx, eax
add esp, 0x20
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10028faf
push eax
push dword [esp + 0x28]
push 0x71
push esi
call fcn.1005c490
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], eax
movzx eax, byte [ebp + 4]
push eax
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x3c], 0
call fcn.10034740
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.100646c0
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call fcn.100556a0
mov dword [esp + 0x40], eax
add esp, 0x30
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
mov dword [ebp + 0x34], ebx
movzx eax, word [ebx + 6]
cmp word [ebp + 6], ax
jle 0x10028adc
mov word [ebp + 6], ax
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x10028af0
push eax
push dword [esp + 0x1c]
call fcn.10042b80
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x3c], eax
mov ebp, dword [edi + 0x38]
dec ebp
push ebp
push dword [esp + 0x80]
lea ebx, [ebp - 1]
push edi
mov dword [edi + 0x38], ebx
call fcn.1001ad10
push ebp
push dword [esp + 0x2c]
push 0x24
push esi
call fcn.1005c490
push edi
call fcn.10048c80
mov esi, eax
push esi
push dword [esp + 0x40]
push 0x7f
push dword [esp + 0x40]
call fcn.1005c490
push 0
push esi
push ebx
push dword [esp + 0x60]
mov edi, eax
push 0x1c
push dword [esp + 0x58]
call fcn.1005c5d0
add esp, 0x48
push esi
mov esi, dword [esp + 0x7c]
push esi
call fcn.10053a60
push ebp
push ebx
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push dword [esp + 0x38]
push dword [esp + 0x9c]
push esi
call fcn.10033bc0
push ebx
mov ebx, dword [esp + 0x40]
push ebx
call fcn.100672a0
mov esi, dword [esp + 0x4c]
push edi
push esi
push 5
push ebx
call fcn.1005c490
add esp, 0x40
push ebp
push ebx
call fcn.100672a0
push 0
lea eax, [esi + 1]
push eax
push 0x75
push ebx
call fcn.1005c490
push 0
push esi
push 0x75
push ebx
call fcn.1005c490
mov ebp, dword [esp + 0xa4]
jmp 0x10028e6c
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push edi
call fcn.100556a0
mov ecx, eax
mov dword [ebp + 0x3c], 0
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10028faf
mov dword [ebp + 0x34], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
mov eax, dword [ebx + 0x10]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x10028c35
push ecx
push 0x14
push esi
call fcn.1005c430
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x10028c35
push ecx
inc ecx
push ecx
push dword [ebp + 0xc]
push 0x98
push esi
call fcn.1005c4f0
add esp, 0x14
push str.UNION_ALL
push 1
push edi
call fcn.100646c0
lea eax, [esp + 0x38]
push eax
push ebp
push edi
call fcn.100556a0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x38], eax
mov dword [ebp + 0x34], ebx
movzx eax, word [ebx + 6]
push eax
movzx eax, word [ebp + 6]
push eax
call fcn.1004cfe0
movzx ecx, ax
add esp, 0x20
mov word [ebp + 6], ax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x10028cb2
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0xc]
call fcn.10043820
add esp, 8
test eax, eax
je 0x10028cb2
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x10028cb2
cdq
push edx
push eax
call fcn.1004cf40
add esp, 8
cmp word [esp + 0x24], ax
jle 0x10028cb2
mov word [ebp + 6], ax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x10028e76
push eax
push esi
call fcn.10064d70
add esp, 8
jmp 0x10028e76
cmp cl, 1
jne 0x10028cdc
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
jmp 0x10028d08
mov ecx, dword [edi + 0x28]
push 0
push ecx
push 0x71
lea eax, [ecx + 1]
mov dword [esp + 0x28], ecx
push esi
mov dword [edi + 0x28], eax
call fcn.1005c490
push ebp
mov dword [ebp + 0x18], eax
call fcn.10021300
add esp, 0x14
or dword [eax + 8], 0x20
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
push eax
push ebx
push edi
mov byte [esp + 0x68], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.100556a0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10028faf
cmp byte [ebp + 4], 0x81
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x28], eax
sete al
inc al
mov dword [ebp + 0x3c], ecx
mov byte [esp + 0x5c], al
movzx eax, byte [ebp + 4]
push eax
call fcn.10034740
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.100646c0
lea eax, [esp + 0x70]
push eax
push ebp
push edi
call fcn.100556a0
mov dword [esp + 0x30], eax
add esp, 0x20
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x10028d9f
push eax
push dword [esp + 0x1c]
call fcn.10020380
add esp, 8
cmp byte [ebp + 4], 0x7f
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], 0
jne 0x10028dcc
movzx eax, word [ebx + 6]
push eax
movzx eax, word [ebp + 6]
push eax
call fcn.1004cfe0
add esp, 8
mov word [ebp + 6], ax
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x10028de0
push eax
push dword [esp + 0x1c]
call fcn.10042b80
add esp, 8
cmp byte [esp + 0x2c], 1
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
je 0x10028e76
mov ebx, dword [edi + 0x38]
mov eax, dword [esp + 0x78]
dec ebx
push ebx
push ebp
push eax
lea edi, [ebx - 1]
mov dword [eax + 0x38], edi
call fcn.1001ad10
push ebx
push dword [esp + 0x2c]
push 0x24
push esi
call fcn.1005c490
mov esi, dword [esi + 0x6c]
lea eax, [esp + 0x48]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x4c]
push ebp
push dword [esp + 0xb0]
call fcn.10033bc0
push edi
mov edi, dword [esp + 0x54]
push edi
call fcn.100672a0
add esp, 0x44
push esi
mov esi, dword [esp + 0x20]
push esi
push 5
push edi
call fcn.1005c490
push ebx
push edi
call fcn.100672a0
push 0
push esi
push 0x75
push edi
call fcn.1005c490
mov edi, dword [esp + 0xa0]
add esp, 0x28
cmp dword [ebp + 0x38], 0
jne 0x10028e85
push edi
call fcn.10064710
add esp, 4
test byte [ebp + 8], 0x20
je 0x10028faf
mov eax, dword [ebp]
push 1
mov eax, dword [eax]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x84], eax
call fcn.1004bbf0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
jne 0x10028ebc
lea ebx, [eax + 7]
jmp 0x10028fb3
mov edx, dword [esp + 0x78]
lea ebx, [esi + 0x14]
test edx, edx
jle 0x10028f00
xor esi, esi
lea esp, [esp]
push esi
push ebp
push edi
call fcn.10029040
add esp, 0xc
mov dword [ebx], eax
test eax, eax
jne 0x10028eea
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov edx, dword [esp + 0x78]
inc esi
add ebx, 4
cmp esi, edx
jl 0x10028ed0
mov esi, dword [esp + 0x24]
lea ebx, [ebx]
lea edi, [ebp + 0x18]
xor ebx, ebx
mov ebp, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [edi]
test eax, eax
js 0x10028f8b
lea ecx, [eax + eax*4]
mov eax, dword [ebp]
shl ecx, 2
cmp byte [eax + 0x51], 0
je 0x10028f2c
mov eax, 0x10095994
jmp 0x10028f31
mov eax, dword [ebp + 0x68]
add eax, ecx
mov dword [eax + 8], edx
inc dword [esi]
mov eax, dword [ebp]
cmp byte [eax + 0x51], 0
je 0x10028f54
push esi
push 0xfffffffffffffff7
push eax
call fcn.10022f30
mov edx, dword [esp + 0x84]
add esp, 0xc
jmp 0x10028f7c
mov eax, dword [ebp + 0x68]
add eax, ecx
cmp byte [eax + 1], 0
je 0x10028f75
push 0xfffffffffffffff7
push esi
push eax
push ebp
call fcn.10072b40
mov edx, dword [esp + 0x88]
add esp, 0x10
jmp 0x10028f7c
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf7
mov dword [edi], 0xffffffff
inc ebx
add edi, 4
cmp ebx, 2
jl 0x10028f10
mov ebp, dword [esp + 0x7c]
mov ebp, dword [ebp + 0x34]
mov dword [esp + 0x7c], ebp
test ebp, ebp
jne 0x10028f00
add dword [esi], 0xffffffff
jne 0x10028faf
push esi
push dword [esi + 0xc]
call fcn.1003ddd0
add esp, 8
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10028fdf
push 1
push eax
push dword [esp + 0x20]
call fcn.10018b80
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x64
ret
mov ecx, str.LIMIT
jmp 0x10028ff5
mov ecx, str.ORDER_BY
movzx eax, byte [ebp + 4]
sub eax, 0x80
je 0x1002901f
sub eax, 1
je 0x10029018
sub eax, 1
je 0x10029011
mov eax, str.UNION
jmp 0x10029024
mov eax, str.INTERSECT
jmp 0x10029024
mov eax, str.EXCEPT
jmp 0x10029024
mov eax, str.UNION_ALL
push eax
push ecx
push str._s_clause_should_come_after__s_not_before
push edi
call fcn.1003fb40
add esp, 0x10
mov ebx, 1
jmp 0x10028fb3