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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
push ebx
xor ebx, ebx
cmp edi, ebx
push ebp
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
je 0x10030274
mov ebp, dword [edi + 0x20]
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x10030274
cmp dword [ebp + 0x1c], ebx
je 0x10030282
movzx eax, byte [edi + 4]
sub eax, 0x6b
je 0x10030260
sub eax, 1
je 0x10030259
sub eax, 1
je 0x10030252
mov eax, str.UNION
jmp 0x10030265
mov eax, str.INTERSECT
jmp 0x10030265
mov eax, str.EXCEPT
jmp 0x10030265
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ecx
call fcn.10017590
add esp, 0xc
mov ebx, 1
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
cmp dword [ebp + 0x28], ebx
je 0x10030298
movzx eax, byte [edi + 4]
call fcn.10006ea0
push eax
push str.LIMIT_clause_should_come_after__s_not_before
jmp 0x1003026b
mov eax, ecx
push eax
call fcn.1000ee80
mov esi, eax
add esp, 4
test esi, esi
je 0x10030274
cmp dword [esp + 0x38], 8
jne 0x100302d6
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push 0x78
push esi
call fcn.10011e00
add esp, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x38], 7
mov al, byte [edi + 4]
mov edx, dword [edi + 0x1c]
movzx ecx, al
add ecx, 0xffffff96
cmp ecx, 3
mov dword [esp + 0xc], edx
ja case.default.0x100302ef
jmp dword [ecx*4 + 0x10030a60]
test edx, edx
jne case.0x100302ef.106
mov ecx, dword [esp + 0x40]
mov edx, dword [edi + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
mov dword [ebp + 0x28], edx
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 0x48]
push 0
push edx
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x4c]
push eax
push ebp
push ecx
mov dword [esp + 0x34], ebx
call fcn.10030c70
mov ebx, eax
xor eax, eax
add esp, 0x20
cmp ebx, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
jne 0x10030279
mov dword [edi + 0x20], eax
mov edx, dword [ebp + 0x30]
mov dword [edi + 0x30], edx
mov eax, dword [ebp + 0x34]
mov dword [edi + 0x34], eax
mov eax, edx
test eax, eax
jl 0x1003036a
push 0
push eax
push 0x76
push esi
call fcn.10011e00
add esp, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
push edx
push eax
push edi
push ecx
call fcn.10030c70
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x20], ebp
jne 0x10030279
mov eax, dword [esp + 0x14]
test eax, eax
je case.default.0x100302ef
push eax
push esi
call fcn.100054d0
add esp, 8
jmp case.default.0x100302ef
sub al, 0x6b
neg al
mov dword [esp + 0x1c], ebx
sbb eax, eax
and eax, 0xfffffffa
add eax, 7
cmp dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
jne 0x100303e7
test edx, edx
jne 0x100303e7
cmp dword [edi + 0x28], ebx
jne 0x100303e7
cmp dword [edi + 0x2c], ebx
jne 0x100303e7
mov ebp, dword [esp + 0x3c]
jmp 0x10030454
cmp dword [esp + 0xc], 0
mov ebx, dword [esp + 0x34]
mov ebp, dword [ebx + 0x1c]
lea edx, [ebp + 1]
mov dword [ebx + 0x1c], edx
je 0x10030415
mov eax, dword [esp + 0xc]
push 1
push ebp
push eax
push edi
push ebx
call fcn.1002ff70
add esp, 0x14
test eax, eax
jne 0x10030274
push 0
push ebp
push 0x78
push esi
call fcn.10011e00
add esp, 0x10
cmp dword [esp + 0x14], 7
jne 0x1003043b
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0x28], eax
add ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x10030445
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x38], eax
mov byte [ecx + 8], 1
mov ecx, dword [esp + 0xc]
push edi
mov eax, ebx
call fcn.10015b60
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push ebp
push eax
push ecx
push edx
call fcn.10030c70
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x10030279
movzx eax, byte [edi + 4]
sub eax, 0x6a
je 0x100304a8
sub eax, 1
je 0x1003049e
sub eax, 1
jne 0x100304b0
mov dword [esp + 0x1c], 2
jmp 0x100304b0
mov dword [esp + 0x1c], 7
jmp 0x100304b0
mov dword [esp + 0x1c], 1
mov edx, dword [edi + 0x28]
xor eax, eax
cmp dword [esp + 0xc], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x40]
push edx
push eax
push eax
setne cl
push eax
mov byte [edi + 9], cl
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x2c]
push ebp
push eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x4c]
push edi
push ecx
call fcn.10030c70
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x40], ebx
mov dword [edi + 0x20], edx
mov dword [edi + 0x1c], eax
call fcn.1000d3b0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [edi + 0x2c], eax
or eax, 0xffffffff
add esp, 0x24
test ebx, ebx
mov dword [edi + 0x28], edx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
jne 0x10030279
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x14]
jne 0x10030542
cmp ebp, dword [esp + 0x3c]
je case.default.0x100302ef
cmp dword [esp + 0x38], 4
jne 0x1003056b
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x1003055b
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x10030552
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
push 0
call fcn.1000eb30
add esp, 4
push esi
call fcn.10011eb0
mov ebx, eax
push esi
mov dword [esp + 0x28], ebx
call fcn.10011eb0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push ebx
mov eax, edi
call fcn.10026570
push ebx
push ebp
push 0x7c
push esi
call fcn.10011e00
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x64]
push 0xffffffffffffffff
push edx
push ebp
push eax
mov eax, dword [eax]
push edi
push ecx
call fcn.10015440
mov ebx, eax
add esp, 0x48
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x10030274
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.10005450
mov eax, dword [esp + 0x2c]
push eax
push ebp
push 0x6d
push esi
call fcn.10011e00
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.10005450
push ebx
push ebp
push 0x1e
push esi
call fcn.10011e00
add esp, 0x30
jmp case.default.0x100302ef
mov eax, dword [esp + 0x34]
mov ebp, dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
test ecx, ecx
lea edx, [ebp + 2]
mov dword [eax + 0x1c], edx
je 0x1003063a
push 1
push ebp
push ecx
push edi
push eax
call fcn.1002ff70
add esp, 0x14
test eax, eax
jne 0x10030274
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
push edi
mov eax, ebx
call fcn.10015b60
push 0
push ebp
push 0x78
push esi
call fcn.10011e00
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
push ecx
push 0
push 0
push 0
push ebp
push 1
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x24]
push edx
push ebx
mov byte [eax + 8], 1
call fcn.10030c70
mov ebx, eax
add esp, 0x34
test ebx, ebx
jne 0x10030279
push eax
lea ebx, [ebp + 1]
push ebx
push 0x78
push esi
call fcn.10011e00
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
push ecx
mov dword [edi + 0x3c], eax
xor eax, eax
push eax
push eax
push eax
push ebx
push 1
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
call fcn.10030c70
mov ecx, dword [edi + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x48]
push ecx
mov dword [edi + 0x20], eax
call fcn.1000d3b0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add esp, 0x34
test ebx, ebx
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
jne 0x10030279
cmp dword [esp + 0x38], 4
jne 0x10030719
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x10030709
nop
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x10030700
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
push 0
call fcn.1000eb30
add esp, 4
push esi
call fcn.10011eb0
mov ebx, eax
push esi
mov dword [esp + 0x28], ebx
call fcn.10011eb0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
push ebx
mov eax, edi
call fcn.10026570
push ebx
push ebp
push 0x7c
push esi
call fcn.10011e00
push 0
push ebp
push 8
push esi
call fcn.10011e00
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x54], eax
lea eax, [ebp + 1]
push eax
push 0x21
push esi
call fcn.10011e00
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x78]
mov eax, dword [edi]
push 0
push ebx
push edx
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x84]
push 0xffffffffffffffff
push ecx
push ebp
push eax
mov eax, dword [eax]
push edi
push edx
call fcn.10015440
mov ebx, eax
add esp, 0x68
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x10030274
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.10005450
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push 0x6d
push esi
call fcn.10011e00
mov edx, dword [esp + 0x38]
push edx
push esi
call fcn.10005450
push ebx
lea eax, [ebp + 1]
push eax
push 0x1e
push esi
call fcn.10011e00
push ebx
push ebp
push 0x1e
push esi
call fcn.10011e00
add esp, 0x40
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
mov edx, dword [ecx]
cmp eax, dword [edx]
mov dword [esp + 0x14], eax
je 0x1003080f
movzx eax, byte [edi + 4]
call fcn.10006ea0
push eax
mov eax, dword [esp + 0x38]
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push eax
jmp 0x1003026c
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1003083a
jmp 0x10030820
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + ebp*4 + 0x24]
sub ebp, 1
push ecx
push edx
push esi
call fcn.100054a0
add esp, 0xc
test ebp, ebp
jne 0x10030820
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10030876
cmp byte [edi + 8], al
je 0x10030279
mov ecx, dword [esp + 0x14]
add eax, ecx
lea edx, [eax + eax*4 + 0x10]
push 1
push edx
call fcn.1000acb0
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1003087a
pop esi
mov ebx, 7
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
mov eax, dword [eax]
jmp 0x1003084b
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + 0x14]
mov cl, byte [edx + 0x79]
mov byte [eax], cl
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x100308d6
nop
mov edx, dword [esp + 0x34]
push ebp
push edi
push edx
call fcn.10026740
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x100308c8
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
add dword [esp + 0x10], 4
add ebp, 1
cmp ebp, dword [esp + 0x14]
jl 0x100308a0
mov dword [esp + 0x10], edi
lea ebx, [ebx]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], 0
add ebp, 0x38
nop
mov eax, dword [ebp]
test eax, eax
jl 0x1003093d
cmp dword [esi + 0x10], eax
jle 0x10030912
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10030912
mov ebx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov dword [ecx + edx*4 + 8], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffffa
push ecx
push eax
push esi
call fcn.1000ce50
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [ebp], 0xffffffff
add esp, 0x10
add ebp, 4
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x100308f0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x100308e0
cmp dword [esp + 0xc], eax
je 0x10030a49
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
add eax, eax
lea edx, [ecx + ebp*4 + 0xc]
add eax, eax
mov dword [esp + 0x24], edx
add edx, eax
push eax
lea eax, [ecx + 0xc]
mov dword [esp + 0x24], edx
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.10041060
mov eax, dword [esp + 0x24]
add eax, 0xc
mov dword [esp + 0x1c], eax
add esp, 0xc
xor eax, eax
test ebp, ebp
jle 0x100309e9
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test word [ecx + 2], 0x100
je 0x100309b6
mov edx, dword [ecx + 4]
jmp 0x100309c4
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ebp*4 + 0xc]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 4
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov cl, byte [edx + 8]
mov edx, dword [esp + 0x20]
add dword [esp + 0x1c], 0xc
mov byte [edx + eax], cl
add eax, 1
cmp eax, ebp
jl 0x100309a3
mov eax, dword [edi + 0x40]
test eax, eax
mov dword [esp + 0x24], eax
jl 0x10030a12
cmp dword [esi + 0x10], eax
jle 0x10030a12
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10030a12
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [eax + eax*4]
add edx, 2
mov dword [ecx + eax*4 + 8], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff7
push ecx
push eax
push esi
mov dword [ecx + 4], ebp
call fcn.1000ce50
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [edi]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x4c]
push ecx
push edi
push edx
call fcn.10015830
add esp, 0x24
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.100417c0
add esp, 4
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret