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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
push ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
je 0x1014c7d2
mov eax, dword [edi + 0x20]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x1014c7d2
cmp dword [eax + 0x1c], ebx
je 0x1014c7dc
movzx eax, byte [edi + 4]
sub eax, 0x6b
je 0x1014c7be
sub eax, 1
je 0x1014c7b7
sub eax, 1
je 0x1014c7b0
mov eax, str.UNION
jmp 0x1014c7c3
mov eax, str.INTERSECT
jmp 0x1014c7c3
mov eax, str.EXCEPT
jmp 0x1014c7c3
mov eax, str.UNION_ALL
push eax
push str.ORDER_BY_clause_should_come_after__s_not_before
push ebp
call fcn.10128e10
add esp, 0xc
mov ebx, 1
jmp 0x1014cfe5
cmp dword [eax + 0x2c], ebx
je 0x1014c803
movzx eax, byte [edi + 4]
call fcn.1014b780
push eax
push str.LIMIT_clause_should_come_after__s_not_before
push ebp
call fcn.10128e10
add esp, 0xc
mov ebx, 1
jmp 0x1014cfe5
push esi
push ebp
call fcn.1014c570
mov esi, eax
add esp, 4
test esi, esi
je 0x1014cdcb
mov dl, byte [esp + 0x34]
cmp dl, 9
jne 0x1014c844
mov eax, dword [esp + 0x38]
push 0
push eax
push 0x70
push esi
call fcn.10138ed0
mov dl, 8
add esp, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x34], dl
mov ecx, dword [edi + 0x1c]
mov al, byte [edi + 4]
mov dword [esp + 0xc], ecx
movzx ecx, al
add ecx, 0xffffff96
cmp ecx, 3
ja case.default.0x1014c85d
jmp dword [ecx*4 + 0x1014d000]
cmp dword [esp + 0xc], ebx
jne case.0x1014c85d.106
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x14]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x60]
mov ecx, dword [edi + 0x30]
push edx
push 0
push 0
mov dword [eax + 0x30], ecx
push 0
lea ecx, [esp + 0x44]
push ecx
push eax
push ebp
mov dword [esp + 0x3c], ebx
call fcn.1014dc10
mov ebx, eax
xor eax, eax
add esp, 0x1c
cmp ebx, eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
jne 0x1014cfe4
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, edx
test eax, eax
jl 0x1014c8d7
push eax
push 0x78
push esi
call fcn.10138eb0
add esp, 0xc
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x60]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x44]
push edx
push edi
push ebp
call fcn.1014dc10
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 0x1c
test ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi + 0x20], eax
jne 0x1014cfe4
cmp dword [esp + 0x20], ebx
je case.default.0x1014c85d
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.10139250
add esp, 8
jmp case.default.0x1014c85d
sub al, 0x6b
neg al
movzx edx, dl
mov dword [esp + 0x10], ebx
sbb eax, eax
and eax, 0xfffffff9
add eax, 8
cmp edx, eax
mov dword [esp + 0x20], eax
jne 0x1014c958
cmp dword [esp + 0xc], ebx
jne 0x1014c958
cmp dword [edi + 0x2c], ebx
jne 0x1014c958
cmp dword [edi + 0x30], ebx
jne 0x1014c958
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
jmp 0x1014c9ba
mov ebx, dword [ebp + 0x44]
push ebx
lea edx, [ebx + 1]
push edi
push ebp
mov dword [esp + 0x24], ebx
mov dword [ebp + 0x44], edx
call fcn.1014c370
add esp, 0xc
test eax, eax
jne 0x1014cdcb
push eax
push ebx
push 0x70
push esi
call fcn.10138ed0
add esp, 0x10
cmp dword [esp + 0x20], 8
jne 0x1014c99d
mov ecx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x2c], eax
add ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x1014c9a7
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x28]
mov byte [eax + 8], 1
mov ecx, dword [esp + 0xc]
push edi
mov eax, ebp
call fcn.1014c6e0
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
push edx
mov byte [esp + 0x48], al
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
mov byte [esp + 0x61], 0
call fcn.1014dc10
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x1014cfe4
movzx eax, byte [edi + 4]
sub eax, 0x6a
je 0x1014ca21
sub eax, 1
je 0x1014ca17
sub eax, 1
jne 0x1014ca29
mov dword [esp + 0x10], 2
jmp 0x1014ca29
mov dword [esp + 0x10], 8
jmp 0x1014ca29
mov dword [esp + 0x10], 1
mov ecx, dword [edi + 0x2c]
xor eax, eax
cmp dword [esp + 0xc], eax
mov dword [edi + 0x20], eax
setne dl
mov byte [edi + 9], dl
mov edx, dword [edi + 0x30]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x60]
push edx
push eax
push eax
push eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x24]
push edi
push ebp
mov byte [esp + 0x60], cl
call fcn.1014dc10
mov ecx, dword [edi + 0x1c]
mov ebx, eax
push ecx
mov dword [esp + 0x30], ebx
call fcn.1014f180
mov ecx, dword [edi + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push ecx
mov dword [edi + 0x20], edx
mov dword [edi + 0x1c], eax
call fcn.1014fd60
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [edi + 0x30], eax
or eax, 0xffffffff
add esp, 0x24
test ebx, ebx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
jne 0x1014cfe4
mov al, byte [esp + 0x34]
movzx ecx, al
cmp ecx, dword [esp + 0x20]
jne 0x1014cace
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x38]
je case.default.0x1014c85d
cmp al, 5
jne 0x1014caf8
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x1014cae9
jmp 0x1014cae0
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x1014cae0
mov eax, dword [ecx]
push eax
push 0
mov ecx, ebp
call fcn.1014b4f0
add esp, 8
push esi
call fcn.10138ef0
push esi
mov dword [esp + 0x28], eax
call fcn.10138ef0
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x30], eax
push edi
mov eax, ebp
call fcn.1014c5b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x74
push esi
call fcn.10138ed0
push esi
call fcn.10139090
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push 0
push ecx
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x64]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x54]
push ecx
push edx
push eax
push edi
mov eax, ebp
call fcn.1014aa50
mov eax, dword [esp + 0x70]
add esp, 0x4c
push eax
push esi
call fcn.10138f40
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push ecx
push edx
push 0x67
push esi
call fcn.10138ed0
mov eax, dword [esp + 0x38]
push eax
push esi
call fcn.10138f40
mov ecx, dword [esp + 0x38]
push 0
push ecx
push 0x20
push esi
call fcn.10138ed0
add esp, 0x30
jmp case.default.0x1014c85d
mov ebx, dword [ebp + 0x44]
push ebx
lea edx, [ebx + 2]
push edi
push ebp
mov dword [ebp + 0x44], edx
call fcn.1014c370
add esp, 0xc
test eax, eax
je 0x1014cbc7
mov dword [esp + 0x10], 1
jmp 0x1014cfe0
mov ecx, dword [esp + 0xc]
push edi
mov eax, ebp
call fcn.1014c6e0
push 0
push ebx
push 0x70
push esi
call fcn.10138ed0
mov ecx, dword [esp + 0x74]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x28]
mov byte [eax + 8], 1
xor eax, eax
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x68]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
mov byte [esp + 0x74], 1
mov dword [esp + 0x78], ebx
mov byte [esp + 0x75], 0
call fcn.1014dc10
add esp, 0x30
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1014cfe0
push eax
lea eax, [ebx + 1]
push eax
push 0x70
push esi
call fcn.10138ed0
mov edx, dword [edi + 0x2c]
xor ecx, ecx
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x70]
push edx
push ecx
mov dword [esp + 0x3c], eax
push ecx
lea eax, [ebx + 1]
push ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
push edi
push ebp
mov dword [edi + 0x20], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
call fcn.1014dc10
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 0x40]
push edx
mov dword [esp + 0x40], eax
mov dword [edi + 0x20], ecx
call fcn.1014fd60
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add esp, 0x30
cmp dword [esp + 0x10], 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
jne 0x1014cfe0
cmp byte [esp + 0x34], 5
jne 0x1014ccc8
mov eax, dword [edi + 0x20]
test eax, eax
mov ecx, edi
je 0x1014ccb9
jmp 0x1014ccb0
mov ecx, eax
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x1014ccb0
mov edx, dword [ecx]
push edx
push 0
mov ecx, ebp
call fcn.1014b4f0
add esp, 8
push esi
call fcn.10138ef0
push esi
mov dword [esp + 0x28], eax
call fcn.10138ef0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push eax
push edi
mov eax, ebp
call fcn.1014c5b0
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push 0x74
push esi
call fcn.10138ed0
push ebp
call fcn.1014fad0
push eax
push ebx
push 7
push esi
mov dword [esp + 0x58], eax
call fcn.10138ed0
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
push eax
lea eax, [ebx + 1]
push eax
push 0x23
push esi
call fcn.10138e00
mov ecx, dword [esp + 0x6c]
add esp, 0x48
push ecx
push ebp
call fcn.1014fb70
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
push 0
push edx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
mov edx, dword [eax]
push 0xffffffffffffffff
push ecx
push edx
push ebx
push eax
push edi
mov eax, ebp
call fcn.1014aa50
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.10138f40
mov ecx, dword [esp + 0x60]
push ecx
push ebx
push 0x67
push esi
call fcn.10138ed0
mov edx, dword [esp + 0x68]
add esp, 0x48
push edx
push esi
call fcn.10138f40
push 0
lea eax, [ebx + 1]
push eax
push 0x20
push esi
call fcn.10138ed0
push 0
push ebx
push 0x20
push esi
call fcn.10138ed0
mov ebx, dword [esp + 0x38]
add esp, 0x28
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [ecx]
cmp eax, dword [edx]
mov dword [esp + 0x18], eax
je 0x1014cdd5
movzx eax, byte [edi + 4]
call fcn.1014b780
push eax
push str.SELECTs_to_the_left_and_right_of__s_do_not_have_the_same_number_of_result_columns
push ebp
call fcn.10128e10
add esp, 0xc
mov ebx, 1
jmp 0x1014cfe4
cmp dword [esp + 0x1c], 0
je 0x1014ce05
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + eax*4 + 0x28]
sub eax, 1
push ecx
push edx
push esi
mov dword [esp + 0x28], eax
call fcn.101391d0
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x1014cde0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1014ce40
cmp byte [edi + 8], al
je 0x1014cfe4
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebp]
push edx
push eax
call fcn.1013c200
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x1014ce44
mov ebx, 7
jmp 0x1014cfe4
mov eax, dword [eax]
jmp 0x1014ce16
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x14]
mov dl, byte [ecx + 0x59]
mov ecx, dword [esp + 0x18]
mov byte [eax + 4], dl
mov dword [eax + 8], ecx
add eax, 0x10
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x1014ce92
push ebx
push edi
push ebp
call fcn.1014c710
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x1014ce84
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov dword [ecx], eax
add dword [esp + 0x14], 4
add ebx, 1
cmp ebx, dword [esp + 0x18]
jl 0x1014ce67
mov dword [esp + 0x20], edi
jmp 0x1014cea0
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], 0
add ebx, 0x3c
nop
mov ebp, dword [ebx]
test ebp, ebp
jl 0x1014ceec
mov edx, dword [esp + 0x18]
push edx
push ebp
push esi
call fcn.101391d0
mov eax, dword [esp + 0x28]
push 0xfffffffffffffffa
push eax
push ebp
push esi
call fcn.1013ac80
mov eax, dword [esp + 0x40]
add eax, 1
mov dword [ebx], 0xffffffff
add esp, 0x1c
add ebx, 4
cmp eax, 2
mov dword [esp + 0x24], eax
jl 0x1014ceb0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x20]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1014cea0
cmp dword [esp + 0xc], eax
je 0x1014cfd3
mov eax, dword [esp + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, edx
add edx, edx
lea ecx, [eax + ebx*4 + 0x10]
mov dword [esp + 0x28], edx
add edx, ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
push edx
add eax, 0x10
push eax
push ecx
call fcn.10091760
mov eax, dword [esp + 0x28]
add eax, 0x10
mov dword [esp + 0x20], eax
add esp, 0xc
xor eax, eax
test ebx, ebx
jle 0x1014cf93
mov edi, edi
mov ecx, dword [ebp]
test word [ecx + 2], 0x100
je 0x1014cf66
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
jmp 0x1014cf7a
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + ebx*4 + 0x10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov dl, byte [ebp + 8]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x14], 4
mov byte [ecx + eax], dl
add eax, 1
add ebp, 0xc
cmp eax, ebx
jl 0x1014cf50
mov edx, dword [edi + 0x1c]
mov eax, dword [edx]
mov ebp, dword [edi + 0x44]
add eax, 2
push eax
push ebp
push esi
call fcn.101391d0
mov eax, dword [esp + 0x28]
push 0xfffffffffffffff7
push eax
push ebp
push esi
mov dword [eax + 8], ebx
call fcn.1013ac80
mov edx, dword [edi]
mov eax, dword [edx]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x78]
push eax
push edi
push ecx
xor ebx, ebx
call fcn.1014af70
add esp, 0x2c
jmp 0x1014cfd7
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.1012ba80
add esp, 4
mov ebx, dword [esp + 0x10]
pop esi
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
pop ebp
mov eax, ebx
pop ebx
add esp, 0x48
ret