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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
push ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 4]
push ebp
mov ebp, dword [esp + 0x5c]
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push esi
push edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
je 0x437939
mov eax, dword [ebp + 0x20]
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x437939
cmp dword [eax + 0x1c], ecx
je 0x43795f
movzx eax, byte [ebp + 4]
sub eax, 0x6b
je 0x437924
sub eax, 1
je 0x43791d
sub eax, 1
je 0x437916
mov eax, str.UNION
jmp 0x437929
mov eax, str.INTERSECT
jmp 0x437929
mov eax, str.EXCEPT
jmp 0x437929
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
mov esi, ebx
call fcn.00405450
add esp, 8
mov dword [esp + 0x64], 1
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x58]
pop ebx
add esp, 0x4c
ret
cmp dword [eax + 0x2c], ecx
je 0x437975
movzx eax, byte [ebp + 4]
call fcn.00436520
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x43792f
call fcn.00437640
mov esi, eax
test esi, esi
je 0x437939
mov dl, byte [esp + 0x38]
cmp dl, 9
jne 0x4379ae
mov ecx, dword [esp + 0x3c]
push 0
push 0
push ecx
push 0x70
call fcn.004159c0
mov dl, 8
add esp, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 1
mov byte [esp + 0x38], dl
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov al, byte [ebp + 4]
movzx ecx, al
add ecx, 0xffffff96
cmp ecx, 3
ja case.default.0x4379c7
jmp dword [ecx*4 + 0x43816c]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x437a84
mov ecx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x30]
push ecx
push edi
push edi
mov dword [eax + 0x30], edx
push edi
lea edx, [esp + 0x48]
push edx
push eax
push ebx
mov dword [esp + 0x44], edi
call fcn.00439070
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x64], eax
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edi
jne 0x437941
mov dword [ebp + 0x20], edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x34]
test eax, eax
mov dword [ebp + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [ebp + 0x38], ecx
jl 0x437a41
push 0
push 0
push eax
push 0x78
call fcn.004159c0
add esp, 0x10
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x6c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
push ebp
push ebx
call fcn.00439070
add esp, 0x1c
test eax, eax
mov dword [esp + 0x64], eax
mov dword [ebp + 0x20], edi
jne 0x437941
mov eax, dword [esp + 0x28]
test eax, eax
je case.default.0x4379c7
mov ecx, esi
call fcn.00415e00
jmp case.default.0x4379c7
xor edi, edi
sub al, 0x6b
neg al
movzx ecx, dl
mov dword [esp + 0x20], edi
sbb eax, eax
and eax, 0xfffffff9
add eax, 8
cmp ecx, eax
mov dword [esp + 0x28], eax
jne 0x437ab9
cmp dword [esp + 0x14], edi
jne 0x437ab9
cmp dword [ebp + 0x2c], edi
jne 0x437ab9
cmp dword [ebp + 0x30], edi
jne 0x437ab9
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], edi
jmp 0x437b1b
mov edi, dword [ebx + 0x44]
push edi
lea edx, [edi + 1]
push ebp
push ebx
mov dword [esp + 0x28], edi
mov dword [ebx + 0x44], edx
call fcn.004372a0
add esp, 0xc
test eax, eax
jne 0x437939
push eax
push eax
push edi
push 0x70
call fcn.004159c0
add esp, 0x10
cmp dword [esp + 0x28], 8
jne 0x437afe
mov ecx, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x30], eax
add ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x437b08
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x28]
mov byte [eax + 8], 1
mov edx, dword [esp + 0x14]
push ebp
mov ecx, ebx
call fcn.00437830
mov eax, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x6c]
push ecx
mov byte [esp + 0x4c], al
xor eax, eax
push eax
push eax
push eax
lea edx, [esp + 0x58]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x28]
push edx
push eax
push ebx
mov dword [esp + 0x68], edi
mov byte [esp + 0x65], 0
call fcn.00439070
add esp, 0x1c
test eax, eax
mov dword [esp + 0x64], eax
jne 0x437941
movzx eax, byte [ebp + 4]
sub eax, 0x6a
je 0x437b80
sub eax, 1
je 0x437b76
sub eax, 1
jne 0x437b88
mov dword [esp + 0x20], 2
jmp 0x437b88
mov dword [esp + 0x20], 8
jmp 0x437b88
mov dword [esp + 0x20], 1
mov edx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x2c]
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x6c]
push edx
push eax
push eax
push eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
lea eax, [esp + 0x58]
setne cl
push eax
mov byte [ebp + 9], cl
mov cl, byte [esp + 0x34]
push ebp
push ebx
mov byte [esp + 0x64], cl
call fcn.00439070
mov ecx, dword [ebp + 0x1c]
add esp, 0x1c
push ecx
mov dword [esp + 0x68], eax
call fcn.0041f9b0
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 4
push ecx
mov dword [ebp + 0x20], edx
mov dword [ebp + 0x1c], eax
call fcn.0041efb0
mov edx, dword [esp + 0x30]
or eax, 0xffffffff
add esp, 4
cmp dword [esp + 0x64], 0
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edx
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
jne 0x437941
mov al, byte [esp + 0x38]
movzx ecx, al
cmp ecx, dword [esp + 0x28]
jne 0x437c2c
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x3c]
je case.default.0x4379c7
cmp al, 5
jne 0x437c56
mov eax, dword [ebp + 0x20]
test eax, eax
mov ecx, ebp
je 0x437c49
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x437c40
mov ecx, dword [ecx]
push 0
push ebx
call fcn.00436210
add esp, 8
mov eax, esi
call fcn.00415a90
mov edi, eax
mov eax, esi
call fcn.00415a90
mov dword [esp + 0x28], eax
push edi
push ebp
mov eax, ebx
call fcn.00437670
mov eax, dword [esp + 0x24]
push 0
push edi
push eax
push 0x74
call fcn.004159c0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
mov eax, dword [ebp]
push 0
push edi
push edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x4c]
push ecx
push edx
push eax
push ebp
push ebx
call fcn.00435650
mov edx, dword [esp + 0x6c]
add esp, 0x44
mov ecx, esi
call fcn.00415b00
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
push 0x67
call fcn.004159c0
mov edx, edi
mov ecx, esi
call fcn.00415b00
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push 0x20
call fcn.004159c0
add esp, 0x20
jmp case.default.0x4379c7
mov edi, dword [ebx + 0x44]
push edi
lea eax, [edi + 2]
push ebp
push ebx
mov dword [ebx + 0x44], eax
call fcn.004372a0
add esp, 0xc
test eax, eax
jne 0x437939
mov edx, dword [esp + 0x14]
push ebp
mov ecx, ebx
call fcn.00437830
add esp, 4
push 0
push 0
push edi
push 0x70
call fcn.004159c0
mov edx, dword [esp + 0x7c]
mov ecx, dword [ebp + 0x28]
push edx
mov dword [ebp + 0x3c], eax
xor eax, eax
push eax
mov byte [ecx + 8], 1
mov ecx, dword [esp + 0x30]
push eax
push eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push eax
push ecx
push ebx
mov byte [esp + 0x74], 1
mov dword [esp + 0x78], edi
mov byte [esp + 0x75], 0
call fcn.00439070
add esp, 0x2c
test eax, eax
mov dword [esp + 0x64], eax
jne 0x437941
push eax
push eax
lea eax, [edi + 1]
push eax
push 0x70
call fcn.004159c0
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x7c]
push edx
push ecx
mov dword [esp + 0x40], eax
push ecx
lea eax, [edi + 1]
push ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
push eax
push ebp
push ebx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], ecx
call fcn.00439070
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x44]
add esp, 0x2c
push edx
mov dword [esp + 0x68], eax
mov dword [ebp + 0x20], ecx
call fcn.0041efb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x64], 0
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], ecx
jne 0x437941
cmp byte [esp + 0x38], 5
jne 0x437e16
mov eax, dword [ebp + 0x20]
test eax, eax
mov ecx, ebp
je 0x437e09
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x437e00
mov ecx, dword [ecx]
push 0
push ebx
call fcn.00436210
add esp, 8
mov eax, esi
call fcn.00415a90
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.00415a90
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x2c], eax
push ebp
mov eax, ebx
call fcn.00437670
mov eax, dword [esp + 0x28]
push 0
push eax
push edi
push 0x74
call fcn.004159c0
mov ecx, ebx
call fcn.00423050
push 0
push eax
push edi
push 7
mov dword [esp + 0x44], eax
call fcn.004159c0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x58], eax
push edx
lea eax, [edi + 1]
push eax
push 0x23
call fcn.004159c0
mov edx, dword [esp + 0x54]
mov eax, ebx
call fcn.004230f0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov eax, dword [ebp]
push 0
push ecx
push edx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [eax]
push 0xffffffffffffffff
push edx
push ecx
push edi
push eax
push ebp
push ebx
call fcn.00435650
mov edx, dword [esp + 0x8c]
add esp, 0x64
mov ecx, esi
call fcn.00415b00
mov edx, dword [esp + 0x2c]
push 0
push edx
push edi
push 0x67
call fcn.004159c0
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.00415b00
push 0
push 0
lea eax, [edi + 1]
push eax
push 0x20
call fcn.004159c0
push 0
push 0
push edi
push 0x20
call fcn.004159c0
add esp, 0x30
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
mov edi, dword [eax]
mov edx, dword [ecx]
cmp edi, dword [edx]
mov dword [esp + 0x20], edi
je 0x437f19
movzx eax, byte [ebp + 4]
call fcn.00436520
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
jmp 0x43792f
mov edx, dword [esp + 0x24]
test edx, edx
je 0x437f43
mov eax, dword [esp + edx*4 + 0x2c]
sub edx, 1
test eax, eax
jl 0x437f3f
cmp dword [esi + 0xc], eax
jle 0x437f3f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x437f3f
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 8], edi
test edx, edx
jne 0x437f21
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x437f7d
cmp byte [ebp + 8], al
je 0x437941
mov ecx, dword [esp + 0x60]
lea eax, [eax + edi + 4]
mov edi, dword [ecx]
lea ebx, [eax + eax*4]
call fcn.004036d0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x2c], ebx
jne 0x437f81
mov dword [esp + 0x64], 7
jmp 0x437941
mov eax, dword [eax]
jmp 0x437f54
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x14]
mov al, byte [edx + 0x59]
mov ecx, dword [esp + 0x20]
mov byte [ebx + 4], al
xor edi, edi
test ecx, ecx
lea eax, [ebx + 0x10]
mov dword [ebx + 8], ecx
mov dword [esp + 0x18], eax
jle 0x437fdd
mov ecx, dword [esp + 0x60]
push edi
push ebp
push ecx
call fcn.00437870
mov edx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
mov dword [edx], eax
jne 0x437fcf
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [eax], edx
add dword [esp + 0x18], 4
add edi, 1
cmp edi, dword [esp + 0x20]
jl 0x437fa7
mov dword [esp + 0x28], ebp
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], 0
add edi, 0x3c
mov eax, dword [edi]
test eax, eax
jl 0x438039
cmp dword [esi + 0xc], eax
jle 0x438011
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x438011
mov ebx, dword [esp + 0x20]
lea edx, [eax + eax*4]
mov dword [ecx + edx*4 + 8], ebx
mov ebx, dword [esp + 0x2c]
push ebx
push esi
mov ecx, 0xfffffffa
call fcn.00415f10
mov eax, dword [esp + 0x2c]
add eax, 1
mov dword [edi], 0xffffffff
add esp, 8
add edi, 4
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x437ff0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x437fe1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43815b
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x24], eax
lea eax, [ebx + eax*4 + 0x10]
lea edx, [ecx + eax]
push ecx
lea ecx, [ebx + 0x10]
push ecx
push eax
mov dword [esp + 0x38], edx
mov dword [ebx + 0xc], edx
call fcn.00471220
lea eax, [ebx + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x24], eax
jle 0x4380d4
mov ecx, dword [edi]
test word [ecx + 2], 0x100
je 0x4380a5
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
jmp 0x4380b9
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x24]
lea ecx, [ebx + ecx*4 + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dl, byte [edi + 8]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x18], 4
mov byte [ecx + eax], dl
add eax, 1
add edi, 0xc
cmp eax, dword [esp + 0x24]
jl 0x438090
mov eax, dword [ebp + 0x44]
test eax, eax
jl 0x4380f6
cmp dword [esi + 0xc], eax
jle 0x4380f6
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4380f6
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx]
add edx, 2
lea edi, [eax + eax*4]
mov dword [ecx + edi*4 + 8], edx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x438133
mov edx, dword [esi]
cmp byte [edx + 0x1e], 0
jne 0x438133
test eax, eax
jge 0x438118
mov eax, dword [esi + 0xc]
sub eax, 1
js 0x43813f
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
movsx eax, byte [edi + 1]
mov ecx, dword [edi + 0x10]
call fcn.00415e20
mov dword [edi + 0x10], ebx
mov byte [edi + 1], 0xfa
jmp 0x43813f
mov ecx, ebx
mov eax, 0xfffffff7
call fcn.00415e20
mov edx, dword [ebp]
mov eax, dword [edx]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x64]
push eax
push esi
push ebp
push ecx
xor ebx, ebx
call fcn.00435bb0
add esp, 0x14
push ebx
call fcn.004032c0
add esp, 4
jmp 0x437941