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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edi
mov edi, edx
xor edx, edx
mov dword [esp + 0x28], edx
movdqu xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [edi + 0x34]
movdqu xmmword [esp + 0x40], xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], edi
cmp dword [edx + 0x30], 0
mov dword [esp + 0x18], edx
je 0x49e975
movzx eax, byte [edi + 4]
sub eax, 0x74
je 0x49e957
dec eax
je 0x49e950
dec eax
je 0x49e949
mov eax, str.UNION
jmp 0x49e95c
mov eax, str.INTERSECT
jmp 0x49e95c
mov eax, str.EXCEPT
jmp 0x49e95c
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ecx
call fcn.0044d140
add esp, 0xc
mov esi, 1
jmp 0x49f18f
cmp dword [edx + 0x3c], 0
je 0x49e9bd
movzx eax, byte [edi + 4]
sub eax, 0x74
je 0x49e99f
dec eax
je 0x49e998
dec eax
je 0x49e991
mov eax, str.UNION
jmp 0x49e9a4
mov eax, str.INTERSECT
jmp 0x49e9a4
mov eax, str.EXCEPT
jmp 0x49e9a4
mov eax, str.UNION_ALL
push eax
push str.LIMIT_clause_should_come_after__s_not_before
push ecx
call fcn.0044d140
add esp, 0xc
mov esi, 1
jmp 0x49f18f
call fcn.0049ded0
cmp byte [esp + 0x40], 0xc
mov esi, eax
mov dword [esp + 0x14], esi
jne 0x49e9fd
mov eax, dword [edi]
mov edx, 0x38
mov ecx, esi
push dword [eax]
push dword [esp + 0x48]
call fcn.00469310
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x49e9f8
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov byte [esp + 0x40], 0xe
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [edx]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x49ea51
test byte [edi + 6], 0x80
je 0x49ea2c
push str.all_VALUES_must_have_the_same_number_of_terms
push dword [esp + 0x10]
call fcn.0044d140
add esp, 8
mov esi, 1
jmp 0x49f18f
movzx ecx, byte [edi + 4]
call fcn.0049cb70
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push dword [esp + 0x14]
call fcn.0044d140
add esp, 0xc
mov esi, 1
jmp 0x49f18f
mov eax, 0x800
test word [edi + 6], ax
je 0x49ea74
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, edi
call fcn.0049e280
add esp, 4
jmp 0x49f011
cmp dword [edi + 0x30], 0
je 0x49ea92
mov ecx, dword [ebp + 8]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0049f690
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x73
je 0x49edf8
dec eax
je 0x49ecf0
dec eax
je 0x49edf8
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x28], edx
push edx
lea eax, [edx + 1]
mov edx, 0x38
mov dword [esp + 0x3c], eax
inc eax
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.00469310
mov ecx, edi
mov dword [edi + 0x10], eax
call fcn.0049b050
mov edx, dword [esp + 0x20]
or word [eax + 6], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov word [esp + 0x70], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.004a3740
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49f18b
push eax
push dword [esp + 0x38]
lea edx, [eax + 0x38]
mov ecx, esi
call fcn.00469310
mov dword [edi + 0x14], eax
mov edx, edi
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.004a3740
mov edx, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x34], eax
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
cmp dword [edi + 0x1c], eax
jb 0x49ebb5
ja 0x49ebaf
cmp dword [edi + 0x18], ecx
jbe 0x49ebb5
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x20]
call fcn.0047b670
cmp byte [esp + 0x40], 9
mov eax, dword [esp + 0x38]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x40], eax
jne 0x49ebf9
mov eax, dword [edi + 0x34]
mov ecx, edi
test eax, eax
je 0x49ebe9
nop
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x49ebe0
push dword [ecx]
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.0049d690
add esp, 4
mov ecx, esi
call fcn.004695a0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.004695a0
mov ecx, dword [esp + 0xc]
mov edx, edi
push esi
mov dword [esp + 0x1c], eax
call fcn.0049df20
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x6a
push esi
push dword [esp + 0x28]
call fcn.00469310
mov ecx, dword [esp + 0x14]
call fcn.00480700
mov ecx, dword [esp + 0x1c]
mov esi, eax
push esi
push dword [esp + 0x30]
mov edx, 0x63
call fcn.00469310
mov ecx, dword [esp + 0x24]
mov edx, 0x42
push 0
push esi
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x50]
call fcn.004694f0
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.00480720
push dword [esp + 0x58]
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
push esi
push eax
push 0
push 0
push dword [esp + 0x58]
push dword [edx]
call fcn.0049be60
add esp, 0x3c
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00469610
push edi
mov edi, dword [esp + 0x28]
mov edx, 9
push edi
call fcn.00469310
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.00469610
lea eax, [edi + 1]
mov edx, 0x3b
push 0
push eax
call fcn.00469310
push 0
push edi
mov edx, 0x3b
mov ecx, esi
call fcn.00469310
add esp, 0x18
jmp 0x49f00d
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.004a3740
mov ecx, eax
mov dword [edi + 0x3c], 0
add esp, 4
mov dword [esp + 0x10], ecx
mov dword [edi + 0x40], 0
test ecx, ecx
jne 0x49f18b
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x34], eax
mov edx, dword [ecx + 8]
mov dword [edi + 8], edx
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
test edx, edx
je 0x49ed72
push edx
mov edx, 0x89
mov ecx, esi
call fcn.004692a0
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
mov edx, edi
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.004a3740
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [edi + 0x34]
mov dword [edi + 0x34], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x18]
add dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edi + 0x1c], eax
mov ecx, dword [ecx + 0x3c]
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x49edde
lea edx, [esp + 0x3c]
call fcn.0047c600
test eax, eax
je 0x49edde
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x49edde
cdq
cmp dword [edi + 0x1c], edx
jb 0x49edde
ja 0x49edd8
cmp dword [edi + 0x18], eax
jbe 0x49edde
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x49f011
mov edx, eax
mov ecx, esi
call fcn.00469910
jmp 0x49f011
cmp byte [esp + 0x40], 1
jne 0x49ee09
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jmp 0x49ee43
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x44]
mov dword [esp + 0x28], edx
push edx
lea eax, [edx + 1]
mov edx, 0x38
mov dword [ecx + 0x44], eax
mov ecx, esi
call fcn.00469310
add esp, 8
mov dword [edi + 0x10], eax
mov ecx, edi
call fcn.0049b050
mov edx, dword [esp + 0x18]
or word [eax + 6], 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xc]
mov word [esp + 0x7c], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, eax
call fcn.004a3740
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x49f18b
cmp byte [edi + 4], 0x75
mov edx, edi
mov dword [edi + 0x34], ecx
mov ecx, dword [edi + 0x3c]
sete al
inc al
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x40]
mov byte [esp + 0x7c], al
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov ecx, dword [eax + 0x1d4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, eax
call fcn.004a3740
mov edx, dword [edi + 0x30]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.0047c380
cmp byte [edi + 4], 0x73
mov edx, dword [edi + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], 0
jne 0x49ef14
mov eax, dword [ecx + 0x18]
add dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edi + 0x1c], eax
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x20]
call fcn.0047b670
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x40], eax
mov al, byte [esp + 0x40]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp al, 1
je 0x49f011
cmp al, 9
jne 0x49ef6e
mov eax, dword [edi + 0x34]
mov ecx, edi
test eax, eax
je 0x49ef5e
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x49ef55
push dword [ecx]
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.0049d690
add esp, 4
mov ecx, esi
call fcn.004695a0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x38], esi
call fcn.004695a0
mov edx, dword [esp + 0x1c]
mov edi, eax
mov ecx, dword [esp + 0xc]
push esi
call fcn.0049df20
add esp, 4
mov edx, 0x6a
push esi
push dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00469310
push dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
mov esi, dword [esi + 0x20]
push edi
push eax
mov eax, dword [esp + 0x30]
mov edx, eax
push 0
push 0
push dword [esp + 0x40]
push dword [eax]
call fcn.0049be60
mov ecx, dword [esp + 0x38]
add esp, 0x24
mov edx, edi
call fcn.00469610
mov edi, dword [esp + 0x24]
mov edx, 9
push esi
push edi
mov esi, ecx
call fcn.00469310
mov edx, dword [esp + 0x40]
mov ecx, esi
call fcn.00469610
push 0
push edi
mov edx, 0x3b
call fcn.00469310
add esp, 0x10
mov edi, dword [esp + 0x1c]
movzx edx, byte [edi + 4]
xor eax, eax
cmp byte [edi + 4], 0x74
mov ecx, dword [esp + 0xc]
setne al
push eax
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.0049cbf0
add esp, 0xc
test byte [edi + 6], 8
je 0x49f18b
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x38], eax
call fcn.0049ca40
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x49f067
lea esi, [eax + 7]
jmp 0x49f18f
xor eax, eax
add ecx, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], eax
jle 0x49f0c0
mov esi, dword [esp + 0xc]
mov edi, edi
push eax
mov edx, edi
mov ecx, esi
call fcn.0049e0b0
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x49f0a0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
add ecx, 4
inc eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x34]
jl 0x49f080
mov esi, dword [esp + 0x14]
lea ebx, [ebx]
lea eax, [edi + 0x10]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov edi, eax
mov eax, dword [edi]
test eax, eax
js 0x49f167
cmp dword [esi + 0x20], eax
jbe 0x49f0f2
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
mov esi, dword [esp + 0x34]
mov dword [ecx + edx*4 + 8], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc dword [ecx]
cmp dword [esi + 4], 0
mov edx, dword [esi]
mov dword [esp + 0x30], edx
je 0x49f136
cmp byte [edx + 0x40], 0
jne 0x49f136
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 + 0x10]
movsx edx, byte [ecx + eax*4 + 1]
lea esi, [ecx + eax*4]
mov ecx, dword [esp + 0x34]
call fcn.00469940
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov byte [esi + 1], 0xfa
mov esi, dword [esp + 0x18]
jmp 0x49f147
push ecx
mov ecx, dword [esi]
mov edx, 0xfffffffa
call fcn.00469940
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
add esp, 4
inc edx
mov dword [edi], 0xffffffff
add edi, 4
mov dword [esp + 0x38], edx
cmp edx, 2
jl 0x49f0d1
jmp 0x49f16b
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edi, dword [edi + 0x34]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x49f0c0
dec dword [ecx]
jne 0x49f18b
push ecx
call fcn.0044a740
add esp, 4
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49f1c0
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.0049adc0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
call fcn.0044a7e0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret