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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, edx
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0x24], edi
mov ecx, dword [eax]
movdqu xmm0, xmmword [esi]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x3c]
movdqu xmmword [esp + 0x40], xmm0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x38], edx
je 0x47f13d
movzx ecx, byte [edi + 4]
sub ecx, 0x71
je 0x47f11f
dec ecx
je 0x47f118
dec ecx
je 0x47f111
mov ecx, str.UNION
jmp 0x47f124
mov ecx, str.INTERSECT
jmp 0x47f124
mov ecx, str.EXCEPT
jmp 0x47f124
mov ecx, str.UNION_ALL
push ecx
push str.ORDER_BY_clause_should_come_after__s_not_before
push eax
call fcn.00433620
add esp, 0xc
mov esi, 1
jmp 0x47f8e6
cmp dword [ecx + 0x48], edx
je 0x47f184
movzx ecx, byte [edi + 4]
sub ecx, 0x71
je 0x47f166
dec ecx
je 0x47f15f
dec ecx
je 0x47f158
mov ecx, str.UNION
jmp 0x47f16b
mov ecx, str.INTERSECT
jmp 0x47f16b
mov ecx, str.EXCEPT
jmp 0x47f16b
mov ecx, str.UNION_ALL
push ecx
push str.LIMIT_clause_should_come_after__s_not_before
push eax
call fcn.00433620
add esp, 0xc
mov esi, 1
jmp 0x47f8e6
mov ecx, eax
call fcn.0047ee50
cmp byte [esp + 0x40], 9
mov esi, eax
mov dword [esp + 0x20], esi
jne 0x47f1c6
mov eax, dword [edi]
mov edx, 0x33
mov ecx, esi
push dword [eax]
push dword [esp + 0x48]
call fcn.0044e020
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x47f1c1
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov byte [esp + 0x40], 8
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [edx]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x47f21a
test byte [edi + 6], 0x80
je 0x47f1f5
push str.all_VALUES_must_have_the_same_number_of_terms
push dword [esp + 0xc]
call fcn.00433620
add esp, 8
mov esi, 1
jmp 0x47f8e6
movzx ecx, byte [edi + 4]
call fcn.0047da40
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push dword [esp + 0x10]
call fcn.00433620
add esp, 0xc
mov esi, 1
jmp 0x47f8e6
cmp dword [edi + 0x38], 0
je 0x47f244
mov ecx, dword [esp + 0x38]
mov edx, edi
push ecx
mov ecx, dword [esp + 0xc]
call fcn.0047fdf0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 4]
sub eax, 0x70
je 0x47f5ac
dec eax
je 0x47f4a4
dec eax
je 0x47f5ac
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x33
mov dword [esp + 0x34], eax
inc eax
mov dword [ecx + 0x48], eax
mov ecx, esi
call fcn.0044e020
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x44]
or word [eax + 6], 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], ecx
mov word [esp + 0x64], 1
mov dword [esp + 0x6c], 0
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
mov dword [esp + 0x74], 0
call fcn.00483f70
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47f8d8
push eax
push dword [esp + 0x30]
lea edx, [eax + 0x33]
mov ecx, esi
call fcn.0044e020
mov dword [edi + 0x14], eax
mov edx, edi
mov eax, dword [edi + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
call fcn.00483f70
mov edx, dword [edi + 0x3c]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x3c], eax
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
cmp dword [edi + 0x24], eax
jb 0x47f363
ja 0x47f35d
cmp dword [edi + 0x20], ecx
jbe 0x47f363
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
mov edx, dword [edi + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.0045eaf0
cmp byte [esp + 0x40], 5
mov eax, dword [esp + 0xc]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x4c], eax
jne 0x47f3a9
mov eax, dword [edi + 0x3c]
mov ecx, edi
test eax, eax
je 0x47f399
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x47f390
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0047e570
add esp, 4
mov ecx, esi
call fcn.0044e200
mov ecx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.0044e200
mov ecx, dword [esp + 8]
mov edx, edi
push esi
mov dword [esp + 0x1c], eax
call fcn.0047eec0
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, 0x65
push esi
push dword [esp + 0x18]
call fcn.0044e020
mov ecx, dword [esp + 0x10]
call fcn.004633a0
mov ecx, dword [esp + 0x28]
mov esi, eax
push esi
push dword [esp + 0x20]
mov edx, 0x5c
call fcn.0044e020
mov ecx, dword [esp + 0x30]
mov edx, 0x3c
push 0
push esi
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x48]
call fcn.0044e190
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.004633c0
push dword [esp + 0x2c]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x64]
mov esi, dword [esp + 0x3c]
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x40]
push 0
push 0
push dword [eax]
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.0047d240
add esp, 0x40
mov edx, esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0044e260
push edi
mov edi, dword [esp + 0x18]
mov edx, 7
push edi
call fcn.0044e020
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.0044e260
lea eax, [edi + 1]
mov edx, 0x36
push 0
push eax
call fcn.0044e020
push 0
push edi
mov edx, 0x36
mov ecx, esi
call fcn.0044e020
add esp, 0x18
jmp 0x47f7c0
xor eax, eax
mov dword [esp + 0xc], 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 + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00483f70
mov ecx, eax
mov dword [edi + 0x48], 0
add esp, 4
mov dword [esp + 0x1c], ecx
mov dword [edi + 0x4c], 0
test ecx, ecx
jne 0x47f8e2
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x3c], 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 0x47f526
push edx
mov edx, 0x80
mov ecx, esi
call fcn.0044dfc0
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov edx, edi
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00483f70
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [edi + 0x3c]
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x20]
add dword [edi + 0x20], eax
mov eax, dword [ecx + 0x24]
adc dword [edi + 0x24], eax
mov ecx, dword [ecx + 0x48]
mov dword [esp + 0x34], edx
test ecx, ecx
je 0x47f592
lea edx, [esp + 0x3c]
call fcn.0045f8b0
test eax, eax
je 0x47f592
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x47f592
cdq
cmp dword [edi + 0x24], edx
jb 0x47f592
ja 0x47f58c
cmp dword [edi + 0x20], eax
jbe 0x47f592
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47f7c4
mov edx, eax
mov ecx, esi
call fcn.0044e450
jmp 0x47f7c4
cmp byte [esp + 0x40], 1
jne 0x47f5c9
cmp dword [edi + 0x48], 0
jne 0x47f5c9
cmp dword [edi + 0x4c], 0
jne 0x47f5c9
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jmp 0x47f5ff
mov ecx, dword [esp + 8]
push 0
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x18], edx
push edx
lea eax, [edx + 1]
mov edx, 0x33
mov dword [ecx + 0x48], eax
mov ecx, esi
call fcn.0044e020
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x44]
or word [eax + 6], 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 8]
mov word [esp + 0x6c], 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.00483f70
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x47f8e2
cmp byte [edi + 4], 0x72
mov edx, edi
mov dword [edi + 0x3c], ecx
mov ecx, dword [edi + 0x48]
sete al
inc al
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x4c]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.00483f70
mov edx, dword [edi + 0x38]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.0045f690
cmp byte [edi + 4], 0x70
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], 0
jne 0x47f6c7
mov eax, dword [ecx + 0x20]
add dword [edi + 0x20], eax
mov eax, dword [ecx + 0x24]
adc dword [edi + 0x24], eax
mov edx, dword [edi + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.0045eaf0
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x4c], eax
mov al, byte [esp + 0x40]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp al, 1
je 0x47f7c4
cmp al, 5
jne 0x47f721
mov eax, dword [edi + 0x3c]
mov ecx, edi
test eax, eax
je 0x47f711
mov ecx, eax
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x47f708
push dword [ecx]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0047e570
add esp, 4
mov ecx, esi
call fcn.0044e200
mov ecx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.0044e200
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, dword [esp + 8]
push esi
call fcn.0047eec0
add esp, 4
mov edx, 0x65
push esi
push dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0044e020
push dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x4c]
mov esi, dword [esi + 0x1c]
push edi
push edx
mov eax, dword [ecx]
mov edx, ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push dword [eax]
push dword [esp + 0x34]
push eax
call fcn.0047d240
mov edx, edi
mov edi, dword [esp + 0x48]
mov ecx, edi
call fcn.0044e260
push esi
mov esi, dword [esp + 0x40]
mov edx, 7
push esi
call fcn.0044e020
mov edx, dword [esp + 0x3c]
mov ecx, edi
call fcn.0044e260
push 0
push esi
mov edx, 0x36
call fcn.0044e020
add esp, 0x38
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 8]
xor eax, eax
cmp byte [edi + 4], 0x71
mov ecx, esi
movzx edx, byte [edi + 4]
setne al
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.0047dac0
add esp, 0xc
test byte [edi + 6], 8
je 0x47f8e2
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x28], eax
call fcn.0047d940
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x47f815
lea esi, [eax + 7]
jmp 0x47f8e6
add eax, 0xc
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0xc], eax
cmp dword [esp + 0x28], eax
jle 0x47f860
push eax
mov edx, edi
mov ecx, esi
call fcn.0047f060
mov ecx, dword [esp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x47f848
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
add ecx, 4
inc eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x28]
jl 0x47f828
mov edi, edi
lea esi, [edi + 0x10]
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x20]
nop
mov edx, dword [esi]
test edx, edx
js 0x47f8b4
cmp dword [edi + 0x1c], edx
jbe 0x47f88d
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x20]
push 0xfffffffffffffffa
push dword [esp + 0x30]
mov ecx, edi
call fcn.0044e560
mov eax, dword [esp + 0x14]
add esp, 8
inc eax
mov dword [esi], 0xffffffff
add esi, 4
mov dword [esp + 0xc], eax
cmp eax, 2
jl 0x47f870
mov edi, dword [esp + 0x24]
mov edi, dword [edi + 0x3c]
mov dword [esp + 0x24], edi
test edi, edi
jne 0x47f860
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x2c]
call fcn.00431240
mov esi, dword [esp + 0x1c]
jmp 0x47f8ea
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
jmp 0x47f8ea
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
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 0x47f918
mov edx, eax
mov ecx, edi
call fcn.0047c420
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.00431240
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret